src/Generator/Writer/Model/ModelWriterContext.php
protected function getConfigNameForStandardModelType($type)
    {
        switch ($type) {

            case CmsModel::RELATION_TYPE_IMAGE:
                return 'image';

            case CmsModel::RELATION_TYPE_FILE:
                return 'file';

            case CmsModel::RELATION_TYPE_CATEGORY:
                return 'category';

            case CmsModel::RELATION_TYPE_CHECKBOX:
                return 'checkbox';

            // default omitted on purpose
        }

        return null;
    }
protected function getConfigNameForStandardModelType($type)
    {
        switch ($type) {

            case CmsModel::RELATION_TYPE_IMAGE:
                return 'image';

            case CmsModel::RELATION_TYPE_FILE:
                return 'file';

            case CmsModel::RELATION_TYPE_CATEGORY:
                return 'category';

            case CmsModel::RELATION_TYPE_CHECKBOX:
                return 'checkbox';

            // default omitted on purpose
        }

        return null;
    }
protected function getConfigNameForStandardModelType ( $ type ) { switch ( $ type ) { case CmsModel :: RELATION_TYPE_IMAGE : return 'image' ; case CmsModel :: RELATION_TYPE_FILE : return 'file' ; case CmsModel :: RELATION_TYPE_CATEGORY : return 'category' ; case CmsModel :: RELATION_TYPE_CHECKBOX : return 'checkbox' ; // default omitted on purpose } return null ; }
Returns the special model type name used for config properties
based on CmsModel const values for RELATION_TYPEs

@param int $type
@return null|string
Returns the special model type name used for config properties based on CmsModel const values for RELATION_TYPEs