ArticlesList::ReadArticleTypes PHP Method

ReadArticleTypes() private static method

private static ReadArticleTypes ( )
    private static function ReadArticleTypes()
    {
        if (is_null(self::$s_articleTypes)) {
            require_once $GLOBALS['g_campsiteDir'] . '/classes/ArticleType.php';
            $articleTypes = ArticleType::GetArticleTypes(true);
            self::$s_articleTypes = array();
            foreach ($articleTypes as $articleType) {
                self::$s_articleTypes[strtolower($articleType)] = $articleType;
            }
        }
    }