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); }