protected function _sanitizeFormat(AnConfig $config)
    {
        $property = $config->property;
        $value = $config->value;
        $filter = $config->options;

        if (!empty($value) && $property->isAttribute() && $property->isScalar()) {
            $value = $this->getFilter($filter)->sanitize($value);
        }

        return $value;
    }
protected function _sanitizeFormat(AnConfig $config)
    {
        $property = $config->property;
        $value = $config->value;
        $filter = $config->options;

        if (!empty($value) && $property->isAttribute() && $property->isScalar()) {
            $value = $this->getFilter($filter)->sanitize($value);
        }

        return $value;
    }
protected function _sanitizeFormat ( AnConfig $ config ) { $ property = $ config -> property ; $ value = $ config -> value ; $ filter = $ config -> options ; if ( ! empty ( $ value ) && $ property -> isAttribute ( ) && $ property -> isScalar ( ) ) { $ value = $ this -> getFilter ( $ filter ) -> sanitize ( $ value ) ; } return $ value ; }
Sanitizes format of a property using a KFilter.

@param AnConfig $config Configuration. Contains keys property,value,entity

@return bool Return true if it's valid or false if it's not
Sanitizes format of a property using a KFilter .