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