Beispiel #1
0
 function RD_CacheCycle()
 {
     $args = func_get_args();
     return RDC::call_object(RDM_Cache::$Self, 'CacheCycle', $args);
 }
Beispiel #2
0
 public static function SGetUser()
 {
     if (!isset(self::$Self)) {
         throw new RDE('RDM_User: cant use static SGetUser() before construction');
     }
     $inst = self::$Self;
     return RDC::call_object($inst, 'GetUser');
 }
Beispiel #3
0
 public function __call($name, $arguments)
 {
     if (isset($this->main)) {
         return RDC::call_object($this->main, $name, $arguments);
     }
     return;
 }
Beispiel #4
0
 public function __call($name, $arguments)
 {
     RDD::Log('RD::__call(' . $name . ',Array(' . count($arguments) . '))', TRACE, 1001);
     if ($this->MethodExists('_' . $name)) {
         return RDC::call_object($this, '_' . $name, $arguments);
     } elseif (array_key_exists($name, $this->ModulesCoreFunctions)) {
         return RDC::call_object($this->Modules[$this->ModulesCoreFunctions[$name]], $name, $arguments);
     } elseif (array_key_exists($name, $this->ModulesFunctions)) {
         return RDC::call_object($this->Modules[$this->ModulesFunctions[$name]], $name, $arguments);
     } else {
         foreach ($this->ModulesFunctionSpaces as $FunctionSpace => $Module) {
             if (substr($name, 0, strlen($FunctionSpace)) == $FunctionSpace) {
                 if ($this->Modules[$Module]->MethodExists($name)) {
                     return RDC::call_object($this->Modules[$Module], $name, $arguments);
                 } else {
                     throw new RDE('RD: module ' . $Module . ' is unable to handle this method');
                 }
             }
         }
         if (empty($this->LoadedModules)) {
             throw new RDE('RD: framework cant find function ' . $name . ' (probably cause no modules are loaded)');
         } else {
             throw new RDE('RD: framework cant find function ' . $name);
         }
     }
 }
Beispiel #5
0
 function store()
 {
     $args = func_get_args();
     return RDC::call_object(RDM_Store::$Self, 'Store', $args);
 }