class RedhenEngagementScoreUIController in RedHen CRM 7
UI Controller for Redhen engagement scores. Adds the score column.
Hierarchy
Expanded class hierarchy of RedhenEngagementScoreUIController
1 string reference to 'RedhenEngagementScoreUIController'
- redhen_engagement_entity_info in modules/
redhen_engagement/ redhen_engagement.module - Implements hook_entity_info().
File
- modules/
redhen_engagement/ lib/ redhen_engagement_score.ui_controller.inc, line 6
View source
class RedhenEngagementScoreUIController extends EntityDefaultUIController {
/**
* Override parent to set the score header.
*/
protected function overviewTableHeaders($conditions, $rows, $additional_header = array()) {
$additional_header[] = t('Score');
return parent::overviewTableHeaders($conditions, $rows, $additional_header);
}
/**
* Override parent to set the score column.
*/
protected function overviewTableRow($conditions, $id, $entity, $additional_cols = array()) {
$additional_cols[] = $entity->score;
return parent::overviewTableRow($conditions, $id, $entity, $additional_cols);
}
}
Members
Name | Modifiers | Type | Description | Overrides |
---|---|---|---|---|
EntityDefaultUIController:: |
protected | property | ||
EntityDefaultUIController:: |
protected | property | ||
EntityDefaultUIController:: |
protected | property | ||
EntityDefaultUIController:: |
public | property | Defines the number of entries to show per page in overview table. | |
EntityDefaultUIController:: |
public | function | Applies an operation to the given entity. | |
EntityDefaultUIController:: |
public | function | Entity submit builder invoked via entity_ui_form_submit_build_entity(). | |
EntityDefaultUIController:: |
public | function | Provides definitions for implementing hook_forms(). | |
EntityDefaultUIController:: |
public | function | Provides definitions for implementing hook_menu(). | 1 |
EntityDefaultUIController:: |
protected | function | Returns the operation count for calculating colspans. | |
EntityDefaultUIController:: |
public | function | Builds the operation form. | |
EntityDefaultUIController:: |
public | function | Operation form submit callback. | 1 |
EntityDefaultUIController:: |
public | function | Operation form validation callback. | |
EntityDefaultUIController:: |
public | function | Builds the entity overview form. | |
EntityDefaultUIController:: |
public | function | Overview form submit callback. | |
EntityDefaultUIController:: |
public | function | Overview form validation callback. | |
EntityDefaultUIController:: |
public | function | Generates the render array for a overview table for arbitrary entities matching the given conditions. | |
EntityDefaultUIController:: |
public | function | ||
RedhenEngagementScoreUIController:: |
protected | function |
Override parent to set the score header. Overrides EntityDefaultUIController:: |
|
RedhenEngagementScoreUIController:: |
protected | function |
Override parent to set the score column. Overrides EntityDefaultUIController:: |