daux.io/libs/Tree/Content.php

21 lines
391 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)
{
2015-04-23 21:04:00 +02:00
return DauxHelper::pathinfo($file)['filename'];
}
}