keesschepers

Untitled

Jul 9th, 2014
175
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.55 KB | None | 0 0
  1.         $queryOptions = $this->query->getOptions($this->getValue());
  2.         if (!is_array($queryOptions) && empty($queryOptions)) {
  3.         return null;
  4.     }
  5.  
  6.         foreach ($queryOptions as $id => $queryOption) {
  7.             $this->returnData[$id]['fieldType'] = self::FIELD_TYPE;
  8.             $this->returnData[$id]['id'] = $queryOption->getName();
  9.             $this->returnData[$id]['label'] = $queryOption->getLabel();
  10.             $this->returnData[$id]['selected'] = $this->isSelected($queryOption->getName());
  11.         }
  12.  
  13.         return $this->returnData;
Advertisement
Add Comment
Please, Sign In to add comment