* @return mixed
*/
public static function alterAPIPermissions($entity, $action, &$params, &$permissions) {
- return self::singleton()->invoke(4, $entity, $action, $params, $permissions,
+ return self::singleton()->invoke(array('entity', 'action', 'params', 'permissions'), $entity, $action, $params, $permissions,
self::$_nullObject, self::$_nullObject,
'civicrm_alterAPIPermissions'
);
*/
public static function postSave(&$dao) {
$hookName = 'civicrm_postSave_' . $dao->getTableName();
- return self::singleton()->invoke(1, $dao,
+ return self::singleton()->invoke(array('dao'), $dao,
self::$_nullObject, self::$_nullObject, self::$_nullObject, self::$_nullObject, self::$_nullObject,
$hookName
);
* @return mixed
*/
public static function summaryActions(&$actions, $contactID = NULL) {
- return self::singleton()->invoke(2, $actions, $contactID,
+ return self::singleton()->invoke(array('actions', 'contactID'), $actions, $contactID,
self::$_nullObject, self::$_nullObject, self::$_nullObject, self::$_nullObject,
'civicrm_summaryActions'
);
* modify the header and values object to pass the data you need
*/
public static function searchColumns($objectName, &$headers, &$rows, &$selector) {
- return self::singleton()->invoke(4, $objectName, $headers, $rows, $selector,
+ return self::singleton()->invoke(array('objectName', 'headers', 'rows', 'selector'), $objectName, $headers, $rows, $selector,
self::$_nullObject, self::$_nullObject,
'civicrm_searchColumns'
);
* @return null
*/
public static function buildUFGroupsForModule($moduleName, &$ufGroups) {
- return self::singleton()->invoke(2, $moduleName, $ufGroups,
+ return self::singleton()->invoke(array('moduleName', 'ufGroups'), $moduleName, $ufGroups,
self::$_nullObject, self::$_nullObject, self::$_nullObject, self::$_nullObject,
'civicrm_buildUFGroupsForModule'
);
* @return null
*/
public static function emailProcessorContact($email, $contactID, &$result) {
- return self::singleton()->invoke(3, $email, $contactID, $result,
+ return self::singleton()->invoke(array('email', 'contactID', 'result'), $email, $contactID, $result,
self::$_nullObject, self::$_nullObject, self::$_nullObject,
'civicrm_emailProcessorContact'
);
* @return mixed
*/
public static function alterMailingLabelParams(&$args) {
- return self::singleton()->invoke(1, $args,
+ return self::singleton()->invoke(array('args'), $args,
self::$_nullObject, self::$_nullObject,
self::$_nullObject, self::$_nullObject, self::$_nullObject,
'civicrm_alterMailingLabelParams'
* @return mixed
*/
public static function alterContent(&$content, $context, $tplName, &$object) {
- return self::singleton()->invoke(4, $content, $context, $tplName, $object,
+ return self::singleton()->invoke(array('content', 'context', 'tplName', 'object'), $content, $context, $tplName, $object,
self::$_nullObject, self::$_nullObject,
'civicrm_alterContent'
);
* @return mixed
*/
public static function alterTemplateFile($formName, &$form, $context, &$tplName) {
- return self::singleton()->invoke(4, $formName, $form, $context, $tplName,
+ return self::singleton()->invoke(array('formName', 'form', 'context', 'tplName'), $formName, $form, $context, $tplName,
self::$_nullObject, self::$_nullObject,
'civicrm_alterTemplateFile'
);
* @return mixed
*/
public static function triggerInfo(&$info, $tableName = NULL) {
- return self::singleton()->invoke(2, $info, $tableName,
+ return self::singleton()->invoke(array('info', 'tableName'), $info, $tableName,
self::$_nullObject, self::$_nullObject, self::$_nullObject,
self::$_nullObject,
'civicrm_triggerInfo'
* @return mixed
*/
public static function alterLogTables(&$logTableSpec) {
- return self::singleton()->invoke(1, $logTableSpec, $_nullObject,
+ return self::singleton()->invoke(array('logTableSpec'), $logTableSpec, $_nullObject,
self::$_nullObject, self::$_nullObject, self::$_nullObject,
self::$_nullObject,
'civicrm_alterLogTables'