2011-03-22 21:22:40 +01:00
|
|
|
<?php
|
|
|
|
|
2012-03-14 00:21:04 +01:00
|
|
|
final class HeraldCondition extends HeraldDAO {
|
2011-03-22 21:22:40 +01:00
|
|
|
|
|
|
|
protected $ruleID;
|
|
|
|
|
|
|
|
protected $fieldName;
|
2011-03-24 19:07:36 +01:00
|
|
|
protected $fieldCondition;
|
2011-03-22 21:22:40 +01:00
|
|
|
protected $value;
|
|
|
|
|
|
|
|
protected function getConfiguration() {
|
|
|
|
return array(
|
|
|
|
self::CONFIG_SERIALIZATION => array(
|
|
|
|
'value' => self::SERIALIZATION_JSON,
|
2011-03-24 19:07:36 +01:00
|
|
|
),
|
|
|
|
self::CONFIG_TIMESTAMPS => false,
|
2014-10-01 16:53:12 +02:00
|
|
|
self::CONFIG_COLUMN_SCHEMA => array(
|
|
|
|
'fieldName' => 'text255',
|
|
|
|
'fieldCondition' => 'text255',
|
|
|
|
'value' => 'text',
|
|
|
|
),
|
|
|
|
self::CONFIG_KEY_SCHEMA => array(
|
|
|
|
'ruleID' => array(
|
|
|
|
'columns' => array('ruleID'),
|
|
|
|
),
|
|
|
|
),
|
2011-03-22 21:22:40 +01:00
|
|
|
) + parent::getConfiguration();
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|