src/Field.php
public function serialize($value) {
        $filters = $this->getFilters();
        for ($i = count($filters) - 1; $i >= 0; --$i) {
            $value = $filters[$i]->fromValue($value);
        }
        return $this->toData($value);
    }
public function serialize($value) {
        $filters = $this->getFilters();
        for ($i = count($filters) - 1; $i >= 0; --$i) {
            $value = $filters[$i]->fromValue($value);
        }
        return $this->toData($value);
    }
public function serialize ( $ value ) { $ filters = $ this -> getFilters ( ) ; for ( $ i = count ( $ filters ) - 1 ; $ i >= 0 ; -- $ i ) { $ value = $ filters [ $ i ] -> fromValue ( $ value ) ; } return $ this -> toData ( $ value ) ; }
Applies filters and converts value to raw data
@param mixed $value
@return string
Applies filters and converts value to raw data