protected function getConfiguration()
 {
     // Ugh. Too much of a mess to deal with.
     return array(self::CONFIG_AUX_PHID => true, self::CONFIG_TIMESTAMPS => false, self::CONFIG_SERIALIZATION => array('objectTranscript' => self::SERIALIZATION_PHP, 'ruleTranscripts' => self::SERIALIZATION_PHP, 'conditionTranscripts' => self::SERIALIZATION_PHP, 'applyTranscripts' => self::SERIALIZATION_PHP)) + parent::getConfiguration();
 }
Example #2
0
 public function delete()
 {
     // TODO:
     //    $this->openTransaction();
     queryfx($this->establishConnection('w'), 'DELETE FROM %T WHERE ruleID = %d', id(new HeraldCondition())->getTableName(), $this->getID());
     queryfx($this->establishConnection('w'), 'DELETE FROM %T WHERE ruleID = %d', id(new HeraldAction())->getTableName(), $this->getID());
     parent::delete();
     //    $this->saveTransaction();
 }
Example #3
0
 public function delete()
 {
     $this->openTransaction();
     queryfx($this->establishConnection('w'), 'DELETE FROM %T WHERE ruleID = %d', id(new HeraldCondition())->getTableName(), $this->getID());
     queryfx($this->establishConnection('w'), 'DELETE FROM %T WHERE ruleID = %d', id(new HeraldActionRecord())->getTableName(), $this->getID());
     $result = parent::delete();
     $this->saveTransaction();
     return $result;
 }
Example #4
0
 protected function getConfiguration()
 {
     return array(self::CONFIG_SERIALIZATION => array('target' => self::SERIALIZATION_JSON), self::CONFIG_TIMESTAMPS => false) + parent::getConfiguration();
 }
Example #5
0
 protected function getConfiguration()
 {
     return array(self::CONFIG_SERIALIZATION => array('target' => self::SERIALIZATION_JSON), self::CONFIG_TIMESTAMPS => false, self::CONFIG_COLUMN_SCHEMA => array('action' => 'text255', 'target' => 'text'), self::CONFIG_KEY_SCHEMA => array('ruleID' => array('columns' => array('ruleID')))) + parent::getConfiguration();
 }
 protected function getConfiguration()
 {
     // Ugh. Too much of a mess to deal with.
     return array(self::CONFIG_AUX_PHID => true, self::CONFIG_TIMESTAMPS => false, self::CONFIG_SERIALIZATION => array('objectTranscript' => self::SERIALIZATION_PHP, 'ruleTranscripts' => self::SERIALIZATION_PHP, 'conditionTranscripts' => self::SERIALIZATION_PHP, 'applyTranscripts' => self::SERIALIZATION_PHP), self::CONFIG_BINARY => array('objectTranscript' => true, 'ruleTranscripts' => true, 'conditionTranscripts' => true, 'applyTranscripts' => true), self::CONFIG_COLUMN_SCHEMA => array('time' => 'epoch', 'host' => 'text255', 'duration' => 'double', 'dryRun' => 'bool', 'garbageCollected' => 'bool'), self::CONFIG_KEY_SCHEMA => array('key_phid' => null, 'phid' => array('columns' => array('phid'), 'unique' => true), 'objectPHID' => array('columns' => array('objectPHID')), 'garbageCollected' => array('columns' => array('garbageCollected', 'time')))) + parent::getConfiguration();
 }