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