private function getStatus() { $status = array(); $result = Host\Record::getStatus(); foreach ($result as $k => $v) { array_push($status, array('label' => $v, 'value' => $k)); } return $status; }
public function apply($value) { return Host\Record::getStatus($value) === false ? false : true; }