Example #1
0
 public function save()
 {
     if (!$this->getMailKey()) {
         $this->setMailKey(Filesystem::readRandomCharacters(20));
     }
     return parent::save();
 }
Example #2
0
 public function getConfiguration()
 {
     return array(self::CONFIG_AUX_PHID => true) + parent::getConfiguration();
 }
Example #3
0
 protected function getConfiguration()
 {
     return array(self::CONFIG_AUX_PHID => true, self::CONFIG_COLUMN_SCHEMA => array('voteCount' => 'sint32', 'content' => 'text', 'contentSource' => 'text?'), self::CONFIG_KEY_SCHEMA => array('key_phid' => null, 'phid' => array('columns' => array('phid'), 'unique' => true), 'key_oneanswerperquestion' => array('columns' => array('questionID', 'authorPHID'), 'unique' => true), 'questionID' => array('columns' => array('questionID')), 'authorPHID' => array('columns' => array('authorPHID')))) + parent::getConfiguration();
 }