예제 #1
0
 public function toArray()
 {
     $values = array();
     if (!is_null($this->getMin())) {
         $values['min'] = $this->getMin();
     }
     if (!is_null($this->getMax())) {
         $values['max'] = $this->getMax();
     }
     return array_merge(parent::toArray(), $values);
 }
 /**
  * (non-PHPdoc)
  * @see App_ListFilter_FilterAbstract::toArray()
  */
 public function toArray()
 {
     $result = $this->_toArrayResult;
     if (is_null($result)) {
         $result = array();
         foreach ($this->getFilters() as $filterName => $filter) {
             if (!is_int($filterName)) {
                 $result[$filterName] = $filter->toArray();
             } else {
                 $result[$filter->getFieldName()] = $filter->toArray();
             }
         }
         ksort($result);
         $this->_toArrayResult = $result;
     }
     return parent::toArray() + array('filters' => $result);
 }
예제 #3
0
 public function toArray()
 {
     return parent::toArray() + array('value' => $this->getValue());
 }