Prose\FromStoryplayer::getStorySetting PHP Method

getStorySetting() public method

public getStorySetting ( $path )
    public function getStorySetting($path)
    {
        // what are we doing?
        $log = usingLog()->startAction("get storySetting '{$path}' from the storyplayer config");
        // what is the full path to this data?
        $fullPath = 'storyplayer.storySettings.' . $path;
        // get the details
        $config = $this->st->getActiveConfig();
        if (!$config->hasData($fullPath)) {
            throw new E5xx_ActionFailed(__METHOD__);
        }
        $value = $config->getData($fullPath);
        // log the settings
        $printer = new DataPrinter();
        $logValue = $printer->convertToString($value);
        $log->endAction("setting for '{$path}' is '{$logValue}'");
        // all done
        return $value;
    }