You are here

class Notifications_Drupal_Object in Notifications 7

Wrapper for generic Drupal objects

This basically implements abstract methods with some defaults

@todo Get some information from entities

Hierarchy

Expanded class hierarchy of Notifications_Drupal_Object

2 string references to 'Notifications_Drupal_Object'
notifications_object in ./notifications.module
Create a wrapped object and keep a static cache of created objects.
Notifications_Object::build in ./notifications.object.inc
Build from type, value (can be a plain value or a Drupal object)

File

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

View source
class Notifications_Drupal_Object extends Notifications_Object {
  public function get_title() {
    return t('Object');
  }

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

  /**
   * Get name for object
   */
  public static function object_name($object) {
    return t('unknown');
  }

  /**
   * Map object to value (key)
   */
  public static function object_value($object) {
    return NULL;
  }

}

Members

Namesort descending Modifiers Type Description Overrides
Notifications_Drupal_Object::get_title public function 1
Notifications_Drupal_Object::object_load public static function Load related object or data 3
Notifications_Drupal_Object::object_name public static function Get name for object 3
Notifications_Drupal_Object::object_value public static function Map object to value (key) 3