コード例 #1
0
ファイル: Abstract.php プロジェクト: ares333/php-api-system
 /**
  * find the latest usable version
  *
  * @return self
  */
 static function getInstance()
 {
     if (!\ApiModel::isInitialized()) {
         return parent::getInstance();
     }
     $name = preg_replace('/Api(\\\\\\w+)?\\\\(V\\dd\\dd\\d\\\\)?Action\\\\/', '', get_called_class());
     $name = substr($name, 0, -5);
     return \ApiModel::getInstance()->getObject(\ApiModel::TYPE_ACTION, $name);
 }
コード例 #2
0
ファイル: Abstract.php プロジェクト: ares333/php-api-system
 /**
  *
  * @return self
  */
 static function getInstance()
 {
     return parent::getInstanceOri();
 }
コード例 #3
0
ファイル: Abstract.php プロジェクト: ares333/php-api-system
 function apiInit()
 {
     parent::apiInit();
     $this->checkLogin();
 }
コード例 #4
0
ファイル: User.php プロジェクト: ares333/php-api-system
 function getSession()
 {
     return parent::getSessionByName(__CLASS__);
 }