Skip to content
Snippets Groups Projects
Unverified Commit f4407ddb authored by Rich Lott's avatar Rich Lott Committed by GitHub
Browse files

Update hook_civicrm_aclWhereClause.md

Explain what the `$type` parameter means/relates to.
parent 6075322f
No related branches found
No related tags found
No related merge requests found
...@@ -21,7 +21,14 @@ query is performed. Those will join onto the ...@@ -21,7 +21,14 @@ query is performed. Those will join onto the
## Parameters ## Parameters
- $type - type of permission needed - $type - Integer type of permission needed, matching these class constants:
- `CRM_Core_Permission::EDIT`
- `CRM_Core_Permission::VIEW`
- `CRM_Core_Permission::DELETE`
- `CRM_Core_Permission::CREATE`
- `CRM_Core_Permission::SEARCH`
- `CRM_Core_Permission::ALL`
- `CRM_Core_Permission::ADMIN`
- array $tables - (reference ) add the tables that are needed for the - array $tables - (reference ) add the tables that are needed for the
select clause select clause
- array $whereTables - (reference ) add the tables that are needed - array $whereTables - (reference ) add the tables that are needed
...@@ -84,4 +91,4 @@ query is performed. Those will join onto the ...@@ -84,4 +91,4 @@ query is performed. Those will join onto the
if ( ! empty( $clauses ) ) { if ( ! empty( $clauses ) ) {
$where .= ' AND (' . implode( ' OR ', $clauses ) . ')'; $where .= ' AND (' . implode( ' OR ', $clauses ) . ')';
} }
} }
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment