Beispiel #1
0
 public function save()
 {
     if (!$this->getMailKey()) {
         $this->setMailKey(Filesystem::readRandomCharacters(20));
     }
     return parent::save();
 }
Beispiel #2
0
 protected function getConfiguration()
 {
     return array(self::CONFIG_AUX_PHID => true, self::CONFIG_SERIALIZATION => array('configData' => self::SERIALIZATION_JSON), self::CONFIG_COLUMN_SCHEMA => array('name' => 'text64', 'description' => 'text', 'domain' => 'text128?', 'joinPolicy' => 'policy?', 'editPolicy' => 'policy?', 'viewPolicy' => 'policy?'), self::CONFIG_KEY_SCHEMA => array('key_phid' => null, 'phid' => array('columns' => array('phid'), 'unique' => true), 'domain' => array('columns' => array('domain'), 'unique' => true))) + parent::getConfiguration();
 }
Beispiel #3
0
 public function getConfiguration()
 {
     return array(self::CONFIG_AUX_PHID => true, self::CONFIG_SERIALIZATION => array('configData' => self::SERIALIZATION_JSON)) + parent::getConfiguration();
 }
Beispiel #4
0
 protected function getConfiguration()
 {
     return array(self::CONFIG_AUX_PHID => true, self::CONFIG_SERIALIZATION => array('configData' => self::SERIALIZATION_JSON), self::CONFIG_COLUMN_SCHEMA => array('title' => 'text255', 'phameTitle' => 'sort64', 'visibility' => 'uint32', 'blogPHID' => 'phid?', 'body' => 'text?', 'configData' => 'text?', 'datePublished' => 'epoch'), self::CONFIG_KEY_SCHEMA => array('key_phid' => null, 'phid' => array('columns' => array('phid'), 'unique' => true), 'phameTitle' => array('columns' => array('bloggerPHID', 'phameTitle'), 'unique' => true), 'bloggerPosts' => array('columns' => array('bloggerPHID', 'visibility', 'datePublished', 'id')))) + parent::getConfiguration();
 }