Example #1
0
 /**
  * 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);
 }
Example #2
0
 /**
  *
  * @return self
  */
 static function getInstance()
 {
     return parent::getInstanceOri();
 }
Example #3
0
 function apiInit()
 {
     parent::apiInit();
     $this->checkLogin();
 }
Example #4
0
 function getSession()
 {
     return parent::getSessionByName(__CLASS__);
 }