public static function getByName($settingName, $fallback = null)
    {
        if (static::$cachedRows === null) {
            static::cache();
        }

        if (! array_key_exists($settingName, static::$cachedRows)) {
            return $fallback;
        }

        return static::$cachedRows[$settingName];
    }
public static function getByName($settingName, $fallback = null)
    {
        if (static::$cachedRows === null) {
            static::cache();
        }

        if (! array_key_exists($settingName, static::$cachedRows)) {
            return $fallback;
        }

        return static::$cachedRows[$settingName];
    }
public static function getByName ( $ settingName , $ fallback = null ) { if ( static :: $ cachedRows === null ) { static :: cache ( ) ; } if ( ! array_key_exists ( $ settingName , static :: $ cachedRows ) ) { return $ fallback ; } return static :: $ cachedRows [ $ settingName ] ; }
Get the value settings by name.

@param  string $settingName Name of setting
@param  string $fallback Fallback if the setting does not exist
@return string
Get the value settings by name .