public function save() { if (!$this->getMailKey()) { $this->setMailKey(Filesystem::readRandomCharacters(20)); } return parent::save(); }
protected function getConfiguration() { return array(self::CONFIG_KEY_SCHEMA => array('pollID' => array('columns' => array('pollID')), 'authorPHID' => array('columns' => array('authorPHID')))) + parent::getConfiguration(); }
public function getConfiguration() { return array(self::CONFIG_AUX_PHID => true) + parent::getConfiguration(); }
protected function getConfiguration() { return array(self::CONFIG_AUX_PHID => true, self::CONFIG_COLUMN_SCHEMA => array('question' => 'text255', 'responseVisibility' => 'uint32', 'shuffle' => 'uint32', 'method' => 'uint32', 'description' => 'text', 'isClosed' => 'bool'), self::CONFIG_KEY_SCHEMA => array('key_phid' => null, 'phid' => array('columns' => array('phid'), 'unique' => true))) + parent::getConfiguration(); }
protected function getConfiguration() { return array(self::CONFIG_COLUMN_SCHEMA => array('name' => 'text255'), self::CONFIG_KEY_SCHEMA => array('pollID' => array('columns' => array('pollID')))) + parent::getConfiguration(); }