mirror of
https://github.com/CachetHQ/Cachet.git
synced 2025-01-17 21:49:01 +01:00
Docbloc some things
This commit is contained in:
parent
defac177fd
commit
8d4bf3f5ea
@ -1,6 +1,10 @@
|
||||
<?php
|
||||
|
||||
class HomeController extends Controller {
|
||||
/**
|
||||
* Returns the rendered Blade templates.
|
||||
* @return View
|
||||
*/
|
||||
public function showIndex() {
|
||||
return View::make('index');
|
||||
}
|
||||
|
@ -1,6 +1,10 @@
|
||||
<?php
|
||||
|
||||
class Component extends Eloquent {
|
||||
/**
|
||||
* Looks up the human readable version of the status.
|
||||
* @return string
|
||||
*/
|
||||
public function getHumanStatusAttribute() {
|
||||
switch ($this->status) {
|
||||
case 1: return 'Operational';
|
||||
@ -10,6 +14,10 @@
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Color of the label for each status.
|
||||
* @return string HTML class name
|
||||
*/
|
||||
public function getColorAttribute() {
|
||||
switch ($this->status) {
|
||||
case 1: return 'text-success';
|
||||
|
Loading…
x
Reference in New Issue
Block a user