<?php
/*
+--------------------------------------------------------------------+
- | CiviCRM version 4.4 |
+ | CiviCRM version 4.5 |
+--------------------------------------------------------------------+
- | Copyright CiviCRM LLC (c) 2004-2013 |
+ | Copyright CiviCRM LLC (c) 2004-2014 |
+--------------------------------------------------------------------+
| This file is a part of CiviCRM. |
| |
/**
*
* @package CRM
- * @copyright CiviCRM LLC (c) 2004-2013
+ * @copyright CiviCRM LLC (c) 2004-2014
* $Id$
*
*/
protected $_queryObjects = NULL;
/**
- * singleton function used to manage this object
+ * Singleton function used to manage this object
*
* @return object
* @static
return $this->_queryObjects;
}
+ /**
+ * @return array
+ */
public function &getFields() {
$extFields = array();
foreach (self::getSearchQueryObjects() as $obj) {
return $extFields;
}
+ /**
+ * @param $apiEntities
+ * @param $fieldOptions
+ */
public function alterSearchBuilderOptions(&$apiEntities, &$fieldOptions) {
foreach (self::getSearchQueryObjects() as $obj) {
$obj->alterSearchBuilderOptions($apiEntities, $fieldOptions);
}
}
+ /**
+ * @param $query
+ * @param string $fnName
+ */
public function alterSearchQuery(&$query, $fnName) {
foreach (self::getSearchQueryObjects() as $obj) {
$obj->$fnName($query);
}
}
+ /**
+ * @param string $fieldName
+ * @param $mode
+ * @param $side
+ *
+ * @return string
+ */
public function buildSearchfrom($fieldName, $mode, $side) {
$from = '';
foreach (self::getSearchQueryObjects() as $obj) {
return $from;
}
+ /**
+ * @param $tables
+ */
public function setTableDependency(&$tables) {
foreach (self::getSearchQueryObjects() as $obj) {
$obj->setTableDependency($tables);
}
}
+ /**
+ * @param $panes
+ */
public function registerAdvancedSearchPane(&$panes) {
foreach (self::getSearchQueryObjects() as $obj) {
$obj->registerAdvancedSearchPane($panes);
}
}
+ /**
+ * @param $panes
+ */
public function getPanesMapper(&$panes) {
foreach (self::getSearchQueryObjects() as $obj) {
$obj->getPanesMapper($panes);
}
}
+ /**
+ * @param CRM_Core_Form $form
+ * @param $type
+ */
public function buildAdvancedSearchPaneForm(&$form, $type) {
foreach (self::getSearchQueryObjects() as $obj) {
$obj->buildAdvancedSearchPaneForm($form, $type);
}
}
+ /**
+ * @param $paneTemplatePathArray
+ * @param $type
+ */
public function setAdvancedSearchPaneTemplatePath(&$paneTemplatePathArray, $type) {
foreach (self::getSearchQueryObjects() as $obj) {
$obj->setAdvancedSearchPaneTemplatePath($paneTemplatePathArray, $type);