Ejemplo n.º 1
0
 public function onSolrQuery(&$p)
 {
     $ip =& $p['inputParams'];
     $class = null;
     if (!empty($ip['from']) && $ip['from'] == 'tree') {
         return;
     }
     switch (@$ip['view']['type']) {
         case 'grid':
             $class = new Grid();
             break;
         case 'formEditor':
             $class = new FormEditor();
             break;
         default:
             return;
     }
     return $class->onSolrQuery($p);
 }
Ejemplo n.º 2
0
 /**
  * @copydoc Grid::build
  */
 public function build()
 {
     if ($this->getState() == 'editForm') {
         $result = $this->form->build();
     } elseif ($this->getState() == 'showResult') {
         $result = $this->results->build();
     } else {
         $result = parent::build();
     }
     return $result;
 }