예제 #1
0
 /**
  * Returns array containing conditions in the collection
  *
  * Output example:
  * array(
  *   'type'=>'combine',
  *   'operator'=>'ALL',
  *   'value'=>'TRUE',
  *   'conditions'=>array(
  *     {condition::asArray},
  *     {combine::asArray},
  *     {quote_item_combine::asArray}
  *   )
  * )
  *
  * @return array
  */
 public function asArray(array $arrAttributes = array())
 {
     $out = parent::asArray();
     foreach ($this->getConditions() as $condition) {
         $out['conditions'][] = $condition->asArray();
     }
     return $out;
 }