Docbloc some things
This commit is contained in:
@@ -1,6 +1,10 @@
|
|||||||
<?php
|
<?php
|
||||||
|
|
||||||
class HomeController extends Controller {
|
class HomeController extends Controller {
|
||||||
|
/**
|
||||||
|
* Returns the rendered Blade templates.
|
||||||
|
* @return View
|
||||||
|
*/
|
||||||
public function showIndex() {
|
public function showIndex() {
|
||||||
return View::make('index');
|
return View::make('index');
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,6 +1,10 @@
|
|||||||
<?php
|
<?php
|
||||||
|
|
||||||
class Component extends Eloquent {
|
class Component extends Eloquent {
|
||||||
|
/**
|
||||||
|
* Looks up the human readable version of the status.
|
||||||
|
* @return string
|
||||||
|
*/
|
||||||
public function getHumanStatusAttribute() {
|
public function getHumanStatusAttribute() {
|
||||||
switch ($this->status) {
|
switch ($this->status) {
|
||||||
case 1: return 'Operational';
|
case 1: return 'Operational';
|
||||||
@@ -10,6 +14,10 @@
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Color of the label for each status.
|
||||||
|
* @return string HTML class name
|
||||||
|
*/
|
||||||
public function getColorAttribute() {
|
public function getColorAttribute() {
|
||||||
switch ($this->status) {
|
switch ($this->status) {
|
||||||
case 1: return 'text-success';
|
case 1: return 'text-success';
|
||||||
|
|||||||
Reference in New Issue
Block a user