コード例 #1
0
 public function save()
 {
     if (!$this->getMailKey()) {
         $this->setMailKey(Filesystem::readRandomCharacters(20));
     }
     return parent::save();
 }
コード例 #2
0
 protected function getConfiguration()
 {
     return array(self::CONFIG_KEY_SCHEMA => array('pollID' => array('columns' => array('pollID')), 'authorPHID' => array('columns' => array('authorPHID')))) + parent::getConfiguration();
 }
コード例 #3
0
 public function getConfiguration()
 {
     return array(self::CONFIG_AUX_PHID => true) + parent::getConfiguration();
 }
コード例 #4
0
 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();
 }
コード例 #5
0
 protected function getConfiguration()
 {
     return array(self::CONFIG_COLUMN_SCHEMA => array('name' => 'text255'), self::CONFIG_KEY_SCHEMA => array('pollID' => array('columns' => array('pollID')))) + parent::getConfiguration();
 }