コード例 #1
0
ファイル: VkAuthTicket.php プロジェクト: chervand/yii-vk-auth
 protected function beforeSave()
 {
     if (parent::beforeSave()) {
         if ($this->isNewRecord) {
             $this->ticket = $this->createTicket();
             $this->ip = $this->retrieveClientIp();
         }
         return true;
     }
     return false;
 }
コード例 #2
0
ファイル: VkAuthToken.php プロジェクト: chervand/yii-vk-auth
 public static function model($className = __CLASS__)
 {
     return parent::model($className);
 }