You are here

protected function AckMenuMap::mappedLinks in Access Control Kit 7

Finds the mapped links for a realm.

Parameters

int $realm: A realm value.

Return value

array An array of menu link IDs.

3 calls to AckMenuMap::mappedLinks()
AckMenuMap::objectFormAlter in ack_menu/handlers/ack_menu_map.inc
Overrides AccessControlKitHandler::objectFormAlter().
AckMenuMap::realmLinks in ack_menu/handlers/ack_menu_map.inc
Implements AckMenuHandlerInterface::realmLinks().
AckMenuMap::realmMenu in ack_menu/handlers/ack_menu_map.inc
Implements AckMenuHandlerInterface::realmMenu().

File

ack_menu/handlers/ack_menu_map.inc, line 50
Contains the handler class for mapping menu links to access realms.

Class

AckMenuMap
Controls access to menu links based on realm mapping.

Code

protected function mappedLinks($realm) {
  return db_query('SELECT mlid FROM {ack_menu_map} WHERE scheme = :scheme AND realm = :realm', array(
    ':scheme' => $this->schemeMachineName,
    ':realm' => $realm,
  ))
    ->fetchCol();
}