daux.io/libs/Tree/Content.php

22 lines
414 B
PHP
Raw Normal View History

<?php namespace Todaymade\Daux\Tree;
use Todaymade\Daux\DauxHelper;
2015-04-23 00:32:30 +02:00
class Content extends Entry
{
public $title;
2015-04-23 00:32:30 +02:00
public function __construct($path = '', $parents = array())
{
parent::__construct($path, $parents);
$this->value = $this->uri;
}
2015-04-23 00:32:30 +02:00
protected function getFilename($file)
{
$file = DauxHelper::pathinfo($file);
return $file['filename'];
}
}