Commit 7603656e authored by Erwan Normand's avatar Erwan Normand
Browse files

Import xml contents

parent 8b4f4f33
<?php
class Content
{
private $content;
public function __construct() {
$this->content = null;
}
public function setXML($xml) {
}
public function setContent($content) {
$this->content = $content;
}
public function getContent() {
return $this->content;
}
public function getTab($x, $y) {
}
}
\ No newline at end of file
<?php
class Contents
{
private $mapwidth;
private $mapheight;
private $contents;
public function __construct() {
$this->contents = null;
$this->mapwidth = 5;
$this->mapheight = 5;
}
public function importXML($string) {
$xml = simplexml_load_string($string);
$this->content = $xml->Data->contents->__toString();
}
public function setContents($contents) {
$this->contents = $contents;
}
public function getContents() {
return $this->contents;
}
public function getTab($x, $y) {
}
}
\ No newline at end of file
This diff is collapsed.
Markdown is supported
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