lib/components/db/fields/Base.php
public function determineFormatClass()
    {
        if (isset($this->fieldSchema)) {
            switch ($this->fieldSchema->type) {
                case 'date':
                    return DateType::className();
                break;
            }
            switch ($this->fieldSchema->dbType) {
                case 'tinyint(1)':
                    return BinaryType::className();
                break;
            }
        }

        return TextType::className();
    }
public function determineFormatClass()
    {
        if (isset($this->fieldSchema)) {
            switch ($this->fieldSchema->type) {
                case 'date':
                    return DateType::className();
                break;
            }
            switch ($this->fieldSchema->dbType) {
                case 'tinyint(1)':
                    return BinaryType::className();
                break;
            }
        }

        return TextType::className();
    }
public function determineFormatClass ( ) { if ( isset ( $ this -> fieldSchema ) ) { switch ( $ this -> fieldSchema -> type ) { case 'date' : return DateType :: className ( ) ; break ; } switch ( $ this -> fieldSchema -> dbType ) { case 'tinyint(1)' : return BinaryType :: className ( ) ; break ; } } return TextType :: className ( ) ; }
[[@doctodo method_description:determineFormatClass]].

@return [[@doctodo return_type:determineFormatClass]] [[@doctodo return_description:determineFormatClass]]
[[ @doctodo method_description : determineFormatClass ]] .