Exemple #1
0
 protected static function factory($class)
 {
     if (!self::$instance) {
         self::$instance = new $class();
     }
     return self::$instance;
 }
 public static function login_attempt($security_key)
 {
     return moojon_server::is_post() && moojon_post::has($security_key);
 }
 public static function method()
 {
     return moojon_post::has(moojon_config::get('method_key')) ? moojon_post::get(moojon_config::get('method_key')) : self::get_or_null('REQUEST_METHOD');
 }