public function save() { if (!$this->getSecretKey()) { $this->setSecretKey(Filesystem::readRandomCharacters(20)); } return parent::save(); }
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('version' => 'uint32', 'title' => 'text255', 'text' => 'text?'), self::CONFIG_KEY_SCHEMA => array('key_document' => array('columns' => array('documentPHID', 'version'), 'unique' => true))) + parent::getConfiguration(); }