Commit 8eb2d849 authored by Erwan Normand's avatar Erwan Normand
Browse files

Contents contents arrays

parent 68561fb5
......@@ -2,19 +2,31 @@
class Contents
{
private static $tabwidth = 40;
private static $tabheight = 31;
private $mapwidth;
private $mapheight;
private $contentsRaw;
private $contents;
public function __construct() {
$this->contents = null;
$this->contentsRaw = null;
$this->mapwidth = 5;
$this->mapheight = 5;
$this->contents = array(
array(array(), array(), array(), array(), array()),
array(array(), array(), array(), array(), array()),
array(array(), array(), array(), array(), array()),
array(array(), array(), array(), array(), array()),
array(array(), array(), array(), array(), array())); // coucou :)
}
public function importXML($string) {
$xml = simplexml_load_string($string);
$this->content = $xml->Data->contents->__toString();
$this->contentsRaw = $xml->Data->contents->__toString();
$contents = explode(',', $this->contentsRaw);
}
public function setContents($contents) {
......
......@@ -431,4 +431,4 @@
echo 'coucou';
$contents = new Contents();
$contents->importXML($xml);
echo 'coucou';
\ No newline at end of file
//echo 'coucou';
\ No newline at end of file
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment