class Notifications_Node in Notifications 7
Node objects
Hierarchy
- class \Notifications_Drupal_Object extends \Notifications_Object
- class \Notifications_Node
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
Name | Modifiers | Type | Description | Overrides |
---|---|---|---|---|
Notifications_Drupal_Object:: |
public | function | 1 | |
Notifications_Node:: |
public | property | ||
Notifications_Node:: |
public static | function |
Load related object or data Overrides Notifications_Drupal_Object:: |
|
Notifications_Node:: |
public static | function |
Get object name, unfiltered string Overrides Notifications_Drupal_Object:: |
|
Notifications_Node:: |
public static | function |
Get object key Overrides Notifications_Drupal_Object:: |
|
Notifications_Node:: |
function | Check user access |