Example #1
0
 /**
  * @return Z_Application
  */
 public static function getInstance()
 {
     if (Z::getGlobal('@Z.Application')) {
         return Z::getGlobal('@Z.Application');
     }
     Z::setGlobal('@Z.Application', Z::createApplication(NULL));
     return Z::getGlobal('@Z.Application');
 }
Example #2
0
 public static function getConfig($class = '')
 {
     if ($class == '') {
         return Z::getGlobal(Z_CONFIG);
     }
     $config = Z::getGlobal(Z_CONFIG);
     if (!isset($config->{$class})) {
         $config->{$class} = new stdClass();
     }
     return $config->{$class};
 }