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