You are here

public function Notifications_Object::get_object in Notifications 7

Get object value

4 calls to Notifications_Object::get_object()
Notifications_Object::get_fields in ./notifications.object.inc
Get fields for this object type
Notifications_Object::get_name in ./notifications.object.inc
Get object name (user name, node title, etc)
Notifications_Object::invoke_all in ./notifications.object.inc
Run module_invoke_all('notifications_object_[type]') with this (Drupal) object
Notifications_Object::user_access in ./notifications.object.inc
Check user access. By default it will be true if object can be loaded

File

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

Class

Notifications_Object
Wrapper for Drupal objects

Code

public function get_object() {
  if (!isset($this->object)) {
    $object = isset($this->value) ? $this
      ->object_load($this->value) : NULL;
    $this->object = $object ? $object : FALSE;
  }
  return $this->object;
}