Frontend\Modules\Location\Engine\Model::getMapSetting PHP Method

getMapSetting() public static method

Retrieve a map setting
public static getMapSetting ( integer $mapId, string $name ) : mixed
$mapId integer
$name string
return mixed
    public static function getMapSetting($mapId, $name)
    {
        $serializedData = (string) FrontendModel::getContainer()->get('database')->getVar('SELECT s.value
             FROM location_settings AS s
             WHERE s.map_id = ? AND s.name = ?', array((int) $mapId, (string) $name));
        if ($serializedData != null) {
            return unserialize($serializedData);
        }
        return false;
    }