Example #1
0
 /**
  * @return ZInput
  */
 public static final function &getInstance()
 {
     if (!self::$m_instance) {
         self::$m_instance = new self();
     }
     return self::$m_instance;
 }
Example #2
0
 public function &__get($a_name)
 {
     $r = strtolower(trim((string) $a_name));
     $ret = null;
     switch ($r) {
         case 'input':
             $ret = ZInput::getInstance();
             break;
         case 'get':
         case 'post':
         case 'request':
         case 'cookie':
         case 'session':
             $ret = ZInput::getInstance()->{$r};
             break;
     }
     return $ret;
 }