You are here

class ACKNodeSticky in Access Control Kit 7

Controls access to a node based on its "sticky" property.

Hierarchy

Expanded class hierarchy of ACKNodeSticky

1 string reference to 'ACKNodeSticky'
AckNodeAccessTest::testStickyAccess in ack_node/ack_node.test
Test controlling access by stickiness.

File

ack_node/handlers/ack_node_sticky.inc, line 11
Contains the handler class for the "sticky" flag on nodes.

View source
class ACKNodeSticky extends AccessControlKitHandler {

  /**
   * Overrides AccessControlKitHandler::description().
   */
  public function description() {
    return t('Access will be based on whether or not the content is sticky.');
  }

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

}

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
ACKNodeSticky::description public function Overrides AccessControlKitHandler::description(). Overrides AccessControlKitHandler::description
ACKNodeSticky::objectRealms public function Overrides AccessControlKitHandler::objectRealms(). Overrides AccessControlKitHandler::objectRealms