You are here

class WatchdogEntityController in Better Watchdog UI 8

Same name and namespace in other branches
  1. 7.3 better_watchdog_ui_entity/better_watchdog_ui_entity.module \WatchdogEntityController
  2. 7 better_watchdog_ui_entity/better_watchdog_ui_entity.module \WatchdogEntityController
  3. 7.2 better_watchdog_ui_entity/better_watchdog_ui_entity.module \WatchdogEntityController

Watchdog Controller class.

Hierarchy

Expanded class hierarchy of WatchdogEntityController

1 string reference to 'WatchdogEntityController'
better_watchdog_ui_entity_entity_info in better_watchdog_ui_entity/better_watchdog_ui_entity.module
Implements hook_entity_info().

File

better_watchdog_ui_entity/better_watchdog_ui_entity.module, line 304
Provides a basic wrapper to database log entries, so they can be accessed as entities.

View source
class WatchdogEntityController extends EntityAPIController {

  /**
   * Override default delete function to invoke rules.
   */
  public function delete($ids, DatabaseTransaction $transaction = NULL) {
    if (module_exists('better_watchdog_ui_rules')) {
      rules_invoke_event('better_watchdog_ui_watchdog_before_delete', current($this->entityCache));
    }
    parent::delete($ids, $transaction);
    if (module_exists('better_watchdog_ui_rules')) {
      rules_invoke_event('better_watchdog_ui_watchdog_after_delete', current($this->entityCache));
    }
  }

}

Members

Namesort descending Modifiers Type Description Overrides
WatchdogEntityController::delete public function Override default delete function to invoke rules.