protected static function getModelTypes()
    {
        $class = get_called_class();

        if($class::$useType === false) {
            return array();
        }

        $class_name = $class::getClassName(false);
        $parent = get_parent_class($class);
        if ($parent) {
            $names_parent = $parent::getModelTypes();
            $names = array_merge($names_parent, array($class_name));
        } else {
            $names = array();
        }

        return $names;

    }
protected static function getModelTypes()
    {
        $class = get_called_class();

        if($class::$useType === false) {
            return array();
        }

        $class_name = $class::getClassName(false);
        $parent = get_parent_class($class);
        if ($parent) {
            $names_parent = $parent::getModelTypes();
            $names = array_merge($names_parent, array($class_name));
        } else {
            $names = array();
        }

        return $names;

    }
protected static function getModelTypes ( ) { $ class = get_called_class ( ) ; if ( $ class :: $ useType === false ) { return array ( ) ; } $ class_name = $ class :: getClassName ( false ) ; $ parent = get_parent_class ( $ class ) ; if ( $ parent ) { $ names_parent = $ parent :: getModelTypes ( ) ; $ names = array_merge ( $ names_parent , array ( $ class_name ) ) ; } else { $ names = array ( ) ; } return $ names ; }
Get types of model,type is the class_name without namespace of Model

@return array
Get types of model type is the class_name without namespace of Model