public function LdapAuthorizationConsumerAbstract::populateConsumersFromConsumerIds in Lightweight Directory Access Protocol (LDAP) 7.2
Same name and namespace in other branches
- 8.2 ldap_authorization/LdapAuthorizationConsumerAbstract.class.php \LdapAuthorizationConsumerAbstract::populateConsumersFromConsumerIds()
Populate consumer side of $consumers array.
Parameters
array $consumers: as associative array keyed on $consumer_id with values of $consumer. $consumer_id and $consumer have structure in LdapAuthorizationConsumerAbstractClass::createConsumer when values are $consumer['exists'] != TRUE need to be populated by consumer object.
bool $create_missing_consumers: indicates if consumers (drupal roles, og groups, etc) should be created if values are NULL, object will be created if.
Return value
$consumers by reference
2 methods override LdapAuthorizationConsumerAbstract::populateConsumersFromConsumerIds()
- LdapAuthorizationConsumerDrupalRole::populateConsumersFromConsumerIds in ldap_authorization/
ldap_authorization_drupal_role/ LdapAuthorizationConsumerRole.class.php - LdapAuthorizationConsumerOG::populateConsumersFromConsumerIds in ldap_authorization/
ldap_authorization_og/ LdapAuthorizationConsumerOG.class.php
File
- ldap_authorization/
LdapAuthorizationConsumerAbstract.class.php, line 200 - Abstract class to represent an ldap_authorization consumer behavior such as drupal_role, og_group, etc. each authorization comsumer will extend this class with its own class named LdapAuthorizationConsumer<consumer type> such as…
Class
Code
public function populateConsumersFromConsumerIds(&$consumers, $create_missing_consumers = FALSE) {
// Method must be overridden.
}