You are here

class Notifications_Node in Notifications 7

Node objects

Hierarchy

Expanded class hierarchy of Notifications_Node

1 string reference to 'Notifications_Node'
notifications_notifications in ./notifications.module
Implementation of hook_notifications()

File

./notifications.object.inc, line 296
Drupal Notifications Framework - Default class file

View source
class Notifications_Node extends Notifications_Drupal_Object {
  public $type = 'node';

  /**
   * Load related object or data
   */
  public static function object_load($value) {
    return node_load($value);
  }

  /**
   * Get object name, unfiltered string
   */
  public static function object_name($node) {
    return $node->title;
  }

  /**
   * Get object key
   */
  public static function object_value($node) {
    return $node->nid;
  }

  /**
   * Check user access
   */
  function user_access($account) {
    if ($node = $this
      ->get_object()) {
      return node_access('view', $node, $account);
    }
  }

}

Members

Namesort descending Modifiers Type Description Overrides
Notifications_Drupal_Object::get_title public function 1
Notifications_Node::$type public property
Notifications_Node::object_load public static function Load related object or data Overrides Notifications_Drupal_Object::object_load
Notifications_Node::object_name public static function Get object name, unfiltered string Overrides Notifications_Drupal_Object::object_name
Notifications_Node::object_value public static function Get object key Overrides Notifications_Drupal_Object::object_value
Notifications_Node::user_access function Check user access