class SqlTriggers

Class SqlTriggers

Methods

rebuild(string $tableName = NULL, bool $force = FALSE)

Build a list of triggers via hook and add them to (err, reconcile them with) the database.

createTriggers(array $info, string $onlyTableName = NULL)

No description

dropTriggers(string $tableName = NULL)

Wrapper function to drop triggers.

enqueueQuery(string $triggerSQL, array $params = array())

Enqueue a query which alters triggers.

NULL|string
getFile()

No description

Details

at line 55
rebuild(string $tableName = NULL, bool $force = FALSE)

Build a list of triggers via hook and add them to (err, reconcile them with) the database.

Parameters

string $tableName the specific table requiring a rebuild; or NULL to rebuild all tables.
bool $force

See also

CRM-9716

at line 79
createTriggers(array $info, string $onlyTableName = NULL)

Parameters

array $info per hook_civicrm_triggerInfo.
string $onlyTableName the specific table requiring a rebuild; or NULL to rebuild all tables.

at line 183
dropTriggers(string $tableName = NULL)

Wrapper function to drop triggers.

Parameters

string $tableName the specific table requiring a rebuild; or NULL to rebuild all tables.

at line 204
enqueueQuery(string $triggerSQL, array $params = array())

Enqueue a query which alters triggers.

As this requires a high permission level we funnel the queries through here to facilitate them being taken 'offline'.

Parameters

string $triggerSQL The sql to run to create or drop the triggers.
array $params Optional parameters to interpolate into the string.

at line 232
NULL|string getFile()

Return Value

NULL|string