Example #1
0
File: Form.php Project: visapi/amun
 private function getStatus()
 {
     $status = array();
     $result = Host\Record::getStatus();
     foreach ($result as $k => $v) {
         array_push($status, array('label' => $v, 'value' => $k));
     }
     return $status;
 }
Example #2
0
 public function apply($value)
 {
     return Host\Record::getStatus($value) === false ? false : true;
 }