You are here

class Notifications_Taxonomy_Term in Notifications 7

Taxonomy term object

Hierarchy

Expanded class hierarchy of Notifications_Taxonomy_Term

1 string reference to 'Notifications_Taxonomy_Term'
notifications_tags_notifications in notifications_tags/notifications_tags.module
Implementation of hook_notifications().

File

notifications_tags/notifications_tags.inc, line 10
Drupal Notifications Framework - Default class file

View source
class Notifications_Taxonomy_Term extends Notifications_Object {
  public $type = 'taxonomy_term';

  /**
   * Title
   */
  public function get_title() {
    return t('Taxonomy term');
  }

  /**
   * Token type
   */
  public function get_token_type() {
    return 'term';
  }

  /**
   * Load object
   */
  public static function object_load($value) {
    return taxonomy_term_load($value);
  }

  /**
   * Get name for object
   */
  public static function object_name($term) {
    return $term->name;
  }

  /**
   * Get value for object
   */
  public static function object_value($term) {
    return $term->tid;
  }

}

Members

Namesort descending Modifiers Type Description Overrides
Notifications_Taxonomy_Term::$type public property
Notifications_Taxonomy_Term::get_title public function Title
Notifications_Taxonomy_Term::get_token_type public function Token type
Notifications_Taxonomy_Term::object_load public static function Load object
Notifications_Taxonomy_Term::object_name public static function Get name for object
Notifications_Taxonomy_Term::object_value public static function Get value for object