Ejemplo n.º 1
0
 public function save()
 {
     if (!$this->mailKey) {
         $this->mailKey = Filesystem::readRandomCharacters(20);
     }
     return parent::save();
 }
Ejemplo n.º 2
0
 public function save()
 {
     AlmanacNames::validateName($this->getName());
     $this->nameIndex = PhabricatorHash::digestForIndex($this->getName());
     if (!$this->mailKey) {
         $this->mailKey = Filesystem::readRandomCharacters(20);
     }
     return parent::save();
 }
Ejemplo n.º 3
0
 public function save()
 {
     $hash = PhabricatorHash::digestForIndex($this->getFieldName());
     $this->setFieldIndex($hash);
     return parent::save();
 }