+--------------------------------------------------------------------+
| CiviCRM version 4.6 |
+--------------------------------------------------------------------+
- | Copyright CiviCRM LLC (c) 2004-2014 |
+ | Copyright CiviCRM LLC (c) 2004-2015 |
+--------------------------------------------------------------------+
| This file is a part of CiviCRM. |
| |
| GNU Affero General Public License or the licensing of CiviCRM, |
| see the CiviCRM license FAQ at http://civicrm.org/licensing |
+--------------------------------------------------------------------+
-*/
+ */
/**
* Class CRM_Utils_Weight
* @return CRM_Core_DAO
* objet that holds the results of the query
*/
- static function &query(
+ public static function &query(
$queryType,
$daoName,
$fieldValues = NULL,
require_once str_replace('_', DIRECTORY_SEPARATOR, $daoName) . ".php";
- $dao = new $daoName;
+ $dao = new $daoName();
$table = $dao->getTablename();
$fields = &$dao->fields();
$fieldlist = array_keys($fields);
'userContext' => $url,
));
}
+
}