コード例 #1
0
 public function save()
 {
     if (!$this->getSecretKey()) {
         $this->setSecretKey(Filesystem::readRandomCharacters(20));
     }
     return parent::save();
 }
コード例 #2
0
 public function getConfiguration()
 {
     return array(self::CONFIG_AUX_PHID => true) + parent::getConfiguration();
 }
コード例 #3
0
 protected function getConfiguration()
 {
     return array(self::CONFIG_AUX_PHID => true, self::CONFIG_COLUMN_SCHEMA => array('version' => 'uint32', 'title' => 'text255', 'text' => 'text?'), self::CONFIG_KEY_SCHEMA => array('key_document' => array('columns' => array('documentPHID', 'version'), 'unique' => true))) + parent::getConfiguration();
 }