4
* Represents a support level
6
abstract class Support_Level
9
* Holds the parent CRM object.
16
* Holds the database connection this object should use.
20
protected $connection;
26
protected $description;
28
protected $maximum_response_time;
30
public function __construct(CRM &$crm, $level_id)
33
$this->connection =& $crm->getConnection();
34
$this->level_id = $level_id;
40
abstract protected function load();
42
public function getName()
47
public function getLevelID()
49
return $this->level_id;
52
public function getDescription()
54
return $this->description;
57
public function getMaximumResponseTime()
59
return $this->maximum_response_time;
66
class SupportLevelNotFoundException extends CRMException
68
public function __construct($level_id, Exception $previous=null) {
69
parent::__construct("Support Level '" . $level_id. "' not found", 0, $previous);
b'\\ No newline at end of file'