* the corresponding action description
*/
public static function description($mask) {
- if (!isset($_description)) {
+ if (!isset(self::$_description)) {
self::$_description = array_flip(self::$_names);
}
return 'get';
}
// If you get this exception try adding more cases above.
- throw new Exception("Cannot determine api action for " . get_class($this));
+ throw new Exception("Cannot determine api action for " . get_class($this) . '.' . 'CRM_Core_Action "' . CRM_Core_Action::description($action) . '" not recognized.');
}
/**
* @throws Exception
*/
public function getDefaultEntity() {
- throw new Exception("Cannot determine default entity. The form class should implement getDefaultEntity().");
+ throw new Exception("Cannot determine default entity. " . get_class($this) . " should implement getDefaultEntity().");
}
/**
* @throws Exception
*/
public function getDefaultContext() {
- throw new Exception("Cannot determine default context. The form class should implement getDefaultContext().");
+ throw new Exception("Cannot determine default context. " . get_class($this) . " should implement getDefaultContext().");
}
/**