/** * return values as array * * @return array */ public function toArray() { $conditions = array(); foreach ($this->_conditions as $condition) { $conditions[] = $condition->toArray(); } $action = $this->_action->toArray(); return array('conditions' => $conditions, 'action_type' => $action['type'], 'action_argument' => $action['argument'], 'enabled' => (int) $this->_enabled, 'id' => $this->_id); }