コード例 #1
0
 public function save()
 {
     if (!$this->verificationCode) {
         $this->setVerificationCode(Filesystem::readRandomCharacters(24));
     }
     return parent::save();
 }
コード例 #2
0
 public function save()
 {
     if (!$this->getAccountSecret()) {
         $this->setAccountSecret(Filesystem::readRandomCharacters(32));
     }
     return parent::save();
 }
コード例 #3
0
 public function save()
 {
     if (!$this->getVerificationHash()) {
         $hash = PhabricatorHash::digestForIndex($this->getVerificationCode());
         $this->setVerificationHash($hash);
     }
     return parent::save();
 }
コード例 #4
0
 public function save()
 {
     if (!$this->conduitCertificate) {
         $this->conduitCertificate = $this->generateConduitCertificate();
     }
     $result = parent::save();
     PhabricatorSearchUserIndexer::indexUser($this);
     return $result;
 }
コード例 #5
0
 public function save()
 {
     if (!$this->getConduitCertificate()) {
         $this->setConduitCertificate($this->generateConduitCertificate());
     }
     if (!strlen($this->getAccountSecret())) {
         $this->setAccountSecret(Filesystem::readRandomCharacters(64));
     }
     $result = parent::save();
     if ($this->profile) {
         $this->profile->save();
     }
     $this->updateNameTokens();
     id(new PhabricatorSearchIndexer())->queueDocumentForIndexing($this->getPHID());
     return $result;
 }
コード例 #6
0
 protected function getConfiguration()
 {
     return array(self::CONFIG_COLUMN_SCHEMA => array('title' => 'text255', 'blurb' => 'text', 'profileImagePHID' => 'phid?', 'icon' => 'text32'), self::CONFIG_KEY_SCHEMA => array('userPHID' => array('columns' => array('userPHID'), 'unique' => true))) + parent::getConfiguration();
 }
コード例 #7
0
 public function getConfiguration()
 {
     return array(self::CONFIG_SERIALIZATION => array('preferences' => self::SERIALIZATION_JSON), self::CONFIG_TIMESTAMPS => false) + parent::getConfiguration();
 }
コード例 #8
0
 public function save()
 {
     $this->cacheIndex = Filesystem::digestForIndex($this->getCacheKey());
     return parent::save();
 }
コード例 #9
0
 public function getConfiguration()
 {
     return array(self::CONFIG_SERIALIZATION => array('oldValue' => self::SERIALIZATION_JSON, 'newValue' => self::SERIALIZATION_JSON, 'details' => self::SERIALIZATION_JSON)) + parent::getConfiguration();
 }
コード例 #10
0
 public function save()
 {
     if (!$this->getConduitCertificate()) {
         $this->setConduitCertificate($this->generateConduitCertificate());
     }
     $result = parent::save();
     $this->updateNameTokens();
     PhabricatorSearchUserIndexer::indexUser($this);
     return $result;
 }
コード例 #11
0
 protected function getConfiguration()
 {
     return array(self::CONFIG_SERIALIZATION => array('preferences' => self::SERIALIZATION_JSON), self::CONFIG_TIMESTAMPS => false, self::CONFIG_KEY_SCHEMA => array('userPHID' => array('columns' => array('userPHID'), 'unique' => true))) + parent::getConfiguration();
 }
コード例 #12
0
 protected function getConfiguration()
 {
     return array(self::CONFIG_AUX_PHID => true, self::CONFIG_SERIALIZATION => array('preferences' => self::SERIALIZATION_JSON), self::CONFIG_COLUMN_SCHEMA => array('userPHID' => 'phid?', 'builtinKey' => 'text32?'), self::CONFIG_KEY_SCHEMA => array('key_user' => array('columns' => array('userPHID'), 'unique' => true), 'key_builtin' => array('columns' => array('builtinKey'), 'unique' => true))) + parent::getConfiguration();
 }
コード例 #13
0
 protected function getConfiguration()
 {
     return array(self::CONFIG_SERIALIZATION => array('oldValue' => self::SERIALIZATION_JSON, 'newValue' => self::SERIALIZATION_JSON, 'details' => self::SERIALIZATION_JSON), self::CONFIG_COLUMN_SCHEMA => array('actorPHID' => 'phid?', 'action' => 'text64', 'remoteAddr' => 'text64', 'session' => 'bytes40?'), self::CONFIG_KEY_SCHEMA => array('actorPHID' => array('columns' => array('actorPHID', 'dateCreated')), 'userPHID' => array('columns' => array('userPHID', 'dateCreated')), 'action' => array('columns' => array('action', 'dateCreated')), 'dateCreated' => array('columns' => array('dateCreated')), 'remoteAddr' => array('columns' => array('remoteAddr', 'dateCreated')), 'session' => array('columns' => array('session', 'dateCreated')))) + parent::getConfiguration();
 }