method getFilePermissions documentation in bbn\Appui\Ide

Gets file's permissions

function(string $file = NULL) { if (empty($file)) { $file = self::$current_file; } if ( !empty($file) && ($id_opt = $this->realToPerm($file)) && ($opt = $this->options->option($id_opt)) ) { $ret = [ 'permissions' => [ 'id' => $opt['id'], 'code' => $opt['code'], 'text' => $opt['text'], 'children' => [] ] ]; if (isset($opt['help'])) { $ret['permissions']['help'] = $opt['help']; } $sopt = $this->options->fullOptions($opt['id']); foreach ($sopt as $so) { array_push( $ret['permissions']['children'], [ 'code' => $so['code'], 'text' => $so['text'] ] ); } return $ret; } return false; }

Gets file's permissions 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.