/** * Returns rule as an array for admin interface * * @deprecated after 1.6.2.0 * * @param array $arrAttributes * * Output example: * array( * 'name'=>'Example rule', * 'conditions'=>{condition_combine::toArray} * 'actions'=>{action_collection::toArray} * ) * * @return array */ public function toArray(array $arrAttributes = array()) { return parent::toArray($arrAttributes); }
/** * Returns rule as an array for admin interface * * Output example: * array( * 'name'=>'Example rule', * 'conditions'=>{condition_combine::toArray} * 'actions'=>{action_collection::toArray} * ) * * @return array */ public function toArray(array $arrAttributes = array()) { $out = parent::toArray($arrAttributes); $out['customer_registered'] = $this->getCustomerRegistered(); $out['customer_new_buyer'] = $this->getCustomerNewBuyer(); return $out; }