コード例 #1
0
 public function needsUpdate()
 {
     return parent::needsUpdate() || $this->params !== $this->getDefaultParams();
 }
コード例 #2
0
ファイル: PasswordFactory.php プロジェクト: whysasse/kmwiki
 /**
  * Determine whether a password object needs updating
  *
  * Check whether the given password is of the default type. If it is,
  * pass off further needsUpdate checks to Password::needsUpdate.
  *
  * @param Password $password
  *
  * @return bool True if needs update, false otherwise
  */
 public function needsUpdate(Password $password)
 {
     if ($password->getType() !== $this->default) {
         return true;
     } else {
         return $password->needsUpdate();
     }
 }