Back to PhocaGallerySettings class

Method getAdvancedSettings

public static
getAdvancedSettings
(mixed $element = null)

Method getAdvancedSettings - Source code

public static function getAdvancedSettings($element = null)
{
    if (is_null($element)) {
        throw new Exception('Function Error: No element added', 500);
        return false;
    }
    if (!array_key_exists($element, self::$settings)) {
        $params = array();
        // =============================
        $params['geozoom'] = 8;
        $params['youtubeheight'] = 360;
        $params['youtubewidth'] = 480;
        // =============================
        if (isset($params[$element])) {
            self::$settings[$element] = $params[$element];
        } else {
            self::$settings[$element] = '';
        }
    }
    return self::$settings[$element];
}