コード例 #1
0
ファイル: User.php プロジェクト: aaronleslie/aaronunix
 /**
  * Gets a code for when the user is persisted to a cookie or session which identifies the user.
  * @return string
  */
 public function getPersistCode()
 {
     if (!$this->persist_code) {
         return parent::getPersistCode();
     }
     return $this->persist_code;
 }
コード例 #2
0
ファイル: User.php プロジェクト: nnmer/october
 /**
  * Gets a code for when the user is persisted to a cookie or session which identifies the user.
  * @return string
  */
 public function getPersistCode()
 {
     // Option A: @todo config
     // return parent::getPersistCode();
     // Option B:
     if (!$this->persist_code) {
         return parent::getPersistCode();
     }
     return $this->persist_code;
 }
コード例 #3
0
ファイル: User.php プロジェクト: rainlab/user-plugin
 /**
  * Gets a code for when the user is persisted to a cookie or session which identifies the user.
  * @return string
  */
 public function getPersistCode()
 {
     $block = UserSettings::get('block_persistence', false);
     if ($block || !$this->persist_code) {
         return parent::getPersistCode();
     }
     return $this->persist_code;
 }