You are here

class ACKNodeAuthor in Access Control Kit 7

Controls access to a node based on its author.

Hierarchy

Expanded class hierarchy of ACKNodeAuthor

1 string reference to 'ACKNodeAuthor'
AckNodeAccessTest::testAuthorAccess in ack_node/ack_node.test
Test controlling access by author.

File

ack_node/handlers/ack_node_author.inc, line 11
Contains the handler class for the author property on nodes.

View source
class ACKNodeAuthor extends AccessControlKitHandler {

  /**
   * Overrides AccessControlKitHandler::description().
   */
  public function description() {
    return t('Allows you to grant a user access to content authored by certain other users (for example, User A could be granted access to all content written by Users B, C, and D).');
  }

  /**
   * Overrides AccessControlKitHandler::objectRealms().
   */
  public function objectRealms($object_type, $node) {
    return array(
      $node->uid,
    );
  }

}

Members

Namesort descending Modifiers Type Description Overrides
AccessControlKitHandler::$settings protected property The access handler configuration.
AccessControlKitHandler::getSettings public function Implements AccessControlKitHandlerInterface::getSettings(). Overrides AccessControlKitHandlerInterface::getSettings
AccessControlKitHandler::objectFormAlter public function Implements AccessControlKitHandlerInterface::objectFormAlter(). Overrides AccessControlKitHandlerInterface::objectFormAlter 3
AccessControlKitHandler::objectFormSubmit public function Implements AccessControlKitHandlerInterface::objectFormSubmit(). Overrides AccessControlKitHandlerInterface::objectFormSubmit 1
AccessControlKitHandler::objectFormValidate public function Implements AccessControlKitHandlerInterface::objectFormValidate(). Overrides AccessControlKitHandlerInterface::objectFormValidate
AccessControlKitHandler::settingsForm public function Implements AccessControlKitHandlerInterface::settingsForm(). Overrides AccessControlKitHandlerInterface::settingsForm 3
AccessControlKitHandler::viewsDataAlter public function Implements AccessControlKitHandlerInterface::viewsDataAlter(). Overrides AccessControlKitHandlerInterface::viewsDataAlter 1
AccessControlKitHandler::__construct public function Implements AccessControlKitHandlerInterface::__construct(). Overrides AccessControlKitHandlerInterface::__construct 3
ACKNodeAuthor::description public function Overrides AccessControlKitHandler::description(). Overrides AccessControlKitHandler::description
ACKNodeAuthor::objectRealms public function Overrides AccessControlKitHandler::objectRealms(). Overrides AccessControlKitHandler::objectRealms