Add admin UI/backend for adding a new Service
This commit is contained in:
@@ -9,6 +9,16 @@ class StatusBoard_Service extends StatusBoard_DatabaseObject {
|
||||
protected $_db_description;
|
||||
|
||||
protected $sites = null;
|
||||
|
||||
public static function newService($name, $description) {
|
||||
$new_service = new self();
|
||||
$new_service->name = $name;
|
||||
$new_service->description = $description;
|
||||
|
||||
$new_service->create();
|
||||
|
||||
return $new_service;
|
||||
}
|
||||
|
||||
public function sites($ignore_cache = false) {
|
||||
if ($this->sites === null || $ignore_cache) {
|
||||
|
||||
Reference in New Issue
Block a user