modules/SNIP/utils.php
Functions
get_beans_by_email_addr(
array $module_dir
)
:
array
Get query fetching all objects that have same email address as current email object, excluding those that are connected to this email explicitly by direct relation The email is specified by current controller's bean object
Parameters
Returns
Name | Type | Description |
---|---|---|
$module_dir | array | 'module' has required module dir name |
Type | Description |
---|---|
array |
get_unlinked_email_query_via_link(
array $params
)
:
array
Get the query that produces emails related to certain object via link to certain other object E.g. having Account fetch Contacts related to it and then get all emails that have some address as one of these contacts
Parameters
Returns
Name | Type | Description |
---|---|---|
$params | array | 'link' is the relation name to use |
Type | Description |
---|---|
array | Array representing the query |