コード例 #1
0
 public function save()
 {
     if (!$this->getMailKey()) {
         $this->setMailKey(Filesystem::readRandomCharacters(20));
     }
     return parent::save();
 }
コード例 #2
0
 public function save()
 {
     if (!$this->getSecretKey()) {
         $this->setSecretKey($this->generateSecretKey());
     }
     return parent::save();
 }
コード例 #3
0
 public function save()
 {
     $hash = PhabricatorHash::digestForIndex($this->getURI());
     $this->setURIIndex($hash);
     return parent::save();
 }