method getFilePreferences documentation in bbn\Appui\Ide

Gets file's preferences

function(array $cfg = []) { if (!empty($cfg)) { if ( !empty($backup = $this->_get_path_backup($cfg)) && !empty($backup['path_preference']) && $this->fs->exists($backup['path_preference'] . $cfg['filename'] . '.json') ) { $pref = json_decode($this->fs->getContents($backup['path_preference'] . $cfg['filename'] . '.json'), true); if (!empty($pref)) { return [ 'selections' => $pref['selections'] ?: [], 'marks' => isset($pref['marks']) ? $pref['marks'] : [], 'line' => (int)$pref['line'] ?: 0, 'char' => (int)$pref['char'] ?: 0, ]; } } } return null; }

Gets file's preferences BBN is a suite of PHP and JS libraries and VueJS components - all open-source! bbn.io, build applications, the quick way

This website uses cookies to ensure you get the best experience on our website.