コード例 #1
0
 /**
  * @see Page::readData()
  */
 public function readData()
 {
     parent::readData();
     // set default values
     if (!count($_POST)) {
         $this->title = $this->rule->title;
         $this->logicalOperator = $this->rule->logicalOperator;
         $this->enabled = intval(!$this->rule->disabled);
         $this->ruleAction = $this->rule->ruleAction;
         $this->ruleDestination = $this->rule->ruleDestination;
         // conditions
         foreach ($this->rule->getConditions() as $condition) {
             $this->ruleConditions[] = array('type' => $condition->ruleConditionType, 'condition' => $condition->ruleCondition, 'value' => $condition->ruleConditionValue);
         }
     }
 }