public function getValueFromData($data, $default = null)
    {
        $fieldName = $this->valueFrom ?: $this->fieldName;
        return $this->getFieldNameFromData($fieldName, $data, $default);
    }
public function getValueFromData($data, $default = null)
    {
        $fieldName = $this->valueFrom ?: $this->fieldName;
        return $this->getFieldNameFromData($fieldName, $data, $default);
    }
public function getValueFromData ( $ data , $ default = null ) { $ fieldName = $ this -> valueFrom ? : $ this -> fieldName ; return $ this -> getFieldNameFromData ( $ fieldName , $ data , $ default ) ; }
Returns this fields value from a supplied data set, which can be
an array or a model or another generic collection.
@param mixed $data
@param mixed $default
@return mixed
Returns this fields value from a supplied data set which can be an array or a model or another generic collection .