示例#1
0
文件: loader.php 项目: vgrish/xblib
 /**
  * @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);
 }
示例#2
0
 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;
 }