Exemplo n.º 1
0
 public function save()
 {
     if (!$this->getMailKey()) {
         $this->setMailKey(Filesystem::readRandomCharacters(20));
     }
     return parent::save();
 }
Exemplo n.º 2
0
 public function getConfiguration()
 {
     return array(self::CONFIG_AUX_PHID => true, self::CONFIG_TIMESTAMPS => false) + parent::getConfiguration();
 }
Exemplo n.º 3
0
 protected function getConfiguration()
 {
     return array(self::CONFIG_COLUMN_SCHEMA => array('version' => 'uint32', 'title' => 'sort', 'slug' => 'text128', 'content' => 'text', 'changeType' => 'uint32', 'changeRef' => 'uint32?', 'description' => 'text?'), self::CONFIG_KEY_SCHEMA => array('documentID' => array('columns' => array('documentID', 'version'), 'unique' => true), 'authorPHID' => array('columns' => array('authorPHID')), 'slug' => array('columns' => array('slug')))) + parent::getConfiguration();
 }