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