function el()
 {
     $args = func_get_args();
     return RDC::CallObject(RD::$Self, 'Element', $args);
 }
Beispiel #2
0
 function link()
 {
     $args = func_get_args();
     return RDC::CallObject(RD::$Self, 'Link', $args);
 }
 public function __call($name, $arguments)
 {
     return RDC::CallObject($this->main, $name, $arguments);
 }
Beispiel #4
0
 protected function LoadDriver($Driver)
 {
     if (!isset($this->CacheCache[$Driver])) {
         $ClassName = 'RD_Cache_' . $Driver;
         RD::RequireClass($ClassName);
         $this->CacheCache[$Driver] = RDC::CreateObject($ClassName, array($this->main));
         $this->CacheCache[$Driver]->Setup();
     }
     return;
 }
Beispiel #5
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 #6
0
 function dao()
 {
     $args = func_get_args();
     return RDC::call_static('RDM_Dao', 'SDB', $args);
 }
Beispiel #7
0
 public static function EchoDebugDump($var)
 {
     if (self::$Debug && !RD_Util::IsCLI()) {
         $Callback = self::$HTTPDebugFunction;
         if (self::$EchoHTTPDebugFunction) {
             echo RDC::Call($Callback, array($var));
         } else {
             RDC::Call($Callback, array($var));
         }
     } elseif (RD_Util::IsCLI()) {
         $Func = self::$CLIDebugFunction;
         if (self::$EchoCLIDebugFunction) {
             echo $Func($var);
         } else {
             $Func($var);
         }
     }
 }
Beispiel #8
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 #9
0
 public function __call($name, $arguments)
 {
     if (isset($this->main)) {
         return RDC::call_object($this->main, $name, $arguments);
     }
     return;
 }
Beispiel #10
0
 function store()
 {
     $args = func_get_args();
     return RDC::call_object(RDM_Store::$Self, 'Store', $args);
 }
Beispiel #11
0
 function model()
 {
     $args = func_get_args();
     return RDC::CallObject(RD::$Self, 'Model', $args);
 }