You are here

public function LdapAuthorizationConsumerAbstract::populateConsumersFromConsumerIds in Lightweight Directory Access Protocol (LDAP) 8.2

Same name and namespace in other branches
  1. 7.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

boolean $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 168
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

LdapAuthorizationConsumerAbstract
@file

Code

public function populateConsumersFromConsumerIds(&$consumers, $create_missing_consumers = FALSE) {

  // method must be overridden
}