class Notifications_Taxonomy_Term in Notifications 7
Taxonomy term object
Hierarchy
- class \Notifications_Taxonomy_Term extends \Notifications_Object
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
Name![]() |
Modifiers | Type | Description | Overrides |
---|---|---|---|---|
Notifications_Taxonomy_Term:: |
public | property | ||
Notifications_Taxonomy_Term:: |
public | function | Title | |
Notifications_Taxonomy_Term:: |
public | function | Token type | |
Notifications_Taxonomy_Term:: |
public static | function | Load object | |
Notifications_Taxonomy_Term:: |
public static | function | Get name for object | |
Notifications_Taxonomy_Term:: |
public static | function | Get value for object |