src/View/ViewableData.php
public function escapeTypeForField($field)
    {
        $class = $this->castingClass($field) ?: $this->config()->get('default_cast');

        // TODO: It would be quicker not to instantiate the object, but to merely
        // get its class from the Injector
        /** @var DBField $type */
        $type = Injector::inst()->get($class, true);
        return $type->config()->get('escape_type');
    }
public function escapeTypeForField($field)
    {
        $class = $this->castingClass($field) ?: $this->config()->get('default_cast');

        // TODO: It would be quicker not to instantiate the object, but to merely
        // get its class from the Injector
        /** @var DBField $type */
        $type = Injector::inst()->get($class, true);
        return $type->config()->get('escape_type');
    }
public function escapeTypeForField ( $ field ) { $ class = $ this -> castingClass ( $ field ) ? : $ this -> config ( ) -> get ( 'default_cast' ) ; // TODO: It would be quicker not to instantiate the object, but to merely // get its class from the Injector /** @var DBField $type */ $ type = Injector :: inst ( ) -> get ( $ class , true ) ; return $ type -> config ( ) -> get ( 'escape_type' ) ; }
Return the string-format type for the given field.

@param string $field
@return string 'xml'|'raw'
Return the string - format type for the given field .