Refactored all classes into single files.
This commit is contained in:
parent
948aba4436
commit
d0cdfe2e69
6 changed files with 351 additions and 280 deletions
31
lib/enko/dokuwiki/objectrepresentation/DokuWikiPage.php
Executable file
31
lib/enko/dokuwiki/objectrepresentation/DokuWikiPage.php
Executable file
|
@ -0,0 +1,31 @@
|
|||
<?php
|
||||
/**
|
||||
* Created by PhpStorm.
|
||||
* User: tim
|
||||
* Date: 12.06.14
|
||||
* Time: 21:55
|
||||
*/
|
||||
|
||||
namespace enko\dokuwiki\objectrepresentation;
|
||||
|
||||
|
||||
class DokuWikiPage extends DokuWikiNode
|
||||
{
|
||||
/**
|
||||
* @param $filename
|
||||
* @param null $parent
|
||||
*/
|
||||
public function __construct($filename, $parent = null)
|
||||
{
|
||||
parent::__construct($filename, $parent);
|
||||
$this->content = file_get_contents($this->filename);
|
||||
if (($this->name == 'start') && ($this->parent->name != 'root')) {
|
||||
$this->parent->content = $this->content;
|
||||
}
|
||||
$metadata = p_get_metadata($this->getFullID());
|
||||
foreach ($metadata as $key => $value) {
|
||||
$this->setMetaData($key, $value);
|
||||
}
|
||||
|
||||
}
|
||||
}
|
Reference in a new issue