* @license PHP License * @package WB * @subpackage datasource */ /** * Datasource TreeMenu Child * * Base class for other TreeMenu children * * @version 1.0.0 * @package WB * @subpackage datasource */ class WBDatasource_TreeMenu_Child extends WBStdClass { protected $nodePrototype = array( 'id' => 'child', 'menu' => '', 'path' => '', 'urlid' => 0, 'url' => '[[SERVICE_HTML]]', 'linktext' => 'Linktext', 'tooltip' => 'Tooltip', 'class' => '', 'requireuser' => 'anybody', 'requiregroup' => 0, 'position' => 0, 'created' => '1970-01-01 00:00:00', 'changed' => '1970-01-01 00:00:00', ); /** * Check URL dictionary record * * Return menu record * * @param string * @return bool */ public function checkUrl($url) { return false; } /** * Check URL dictionary record * * Return menu record * * @param string $urlid * @param string $url * @return array */ public function getNode($urlid, $url) { return array(); } /** * Get menu child nodes * * Return menu records * * @param string $url * @return array */ public function getChildren($url) { return array(); } /** * Get parent nodes until normal tree menu * * List parent nodes until normal (tree manu) parent nodes are reached. * The tree menu class will merge parents together * * @param array $child * @return array */ public function getParents($child) { return array(); } }