Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Normand Erwan
VVVVVV_level_merger
Commits
7603656e
Commit
7603656e
authored
Jun 01, 2015
by
Erwan Normand
Browse files
Import xml contents
parent
8b4f4f33
Changes
3
Expand all
Show whitespace changes
Inline
Side-by-side
model/Content.class.php
deleted
100644 → 0
View file @
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
model/Contents.class.php
0 → 100644
View file @
7603656e
<?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
test.php
View file @
7603656e
This diff is collapsed.
Click to expand it.
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment