/** * @param string $v * @param string $module * @return xbNodeCache */ protected function _obj($v, $module = '') { $name = ''; $path = array(); if (!empty($v)) { $F = explode('/', $v); $name = array_shift($F); $path = $F; } $path = implode('/', $path); return xbNode::create($module, 'cache', $name, $this, $path); }
public function execute($module, $unit, $action) { if ($unit = xbNode::create($module, 'unit', $unit)) { if (method_exists($unit, 'execute')) { return $unit->execute($action); } } if (method_exists($this, 'notImplemented')) { $this->notImplemented($module, $unit, $action); } return false; }