method load documentation in bbn\Ide\Directories

Loads a file.

function($file, $dir, $tab, bbn\User\Preferences $pref = NULL) { $res = false; $file = bbn\Str::parsePath($file); if ( $file && $dir ){ /** @var array $dir_cfg The directory configuration from DB */ if ( \is_array($dir) ){ $dir_cfg = $dir; $dir = $dir_cfg['value'] ?? $dir_cfg['path']; } else{ $dir_cfg = $this->dir($dir); } if ( !\is_array($dir_cfg) ){ die(\bbn\X::dump("Problem with the function Directories::dir with argument ".$dir)); } $res = $this->getFile($file, $dir, $tab, $dir_cfg, $pref); } return $res; }

Loads a file. 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.