method updateAll documentation in bbn\User\Permissions

update All

function(array $routes, $withApp = false) { $this->opt->deleteCache(); $res = ['total' => 0]; /** @var string The ID option for permissions < appui */ if ($id_permission = $this->getOptionRoot()) { /** @var string The option's ID for appui */ $appui = $this->opt->fromCode('appui'); /** @var string The option's ID for plugins */ $plugins = $this->opt->fromCode('plugins'); /** @var string The option's ID of the permissions on pages (controllers) $id_page */ $id_page = $this->getOptionId('access'); /** @var string The option's ID of the permissions on pages (controllers) $id_page */ $id_plugins = $this->getOptionId('plugins'); // The app base access if ($id_page) { /** @todo Add the possibility to do it for another project? */ $fs = new System(); if ($withApp) { $res['total'] += (int)$this->accessUpdateApp(); } if (!empty($routes)) { foreach ($routes as $url => $route) { $root = $this->accessPluginRoot($route['name']); if (!$root) { $err = X::_( "Impossible to find the plugin %s", substr($route['name'], 6) ); X::log($err, 'errorUpdatePermissions'); continue; throw new Exception($err); } $res['total'] += $this->accessUpdatePath($route['path'].'src/', $root, $url); } } } $res['total'] += $this->optionsUpdateAll(); $this->opt->deleteCache(); } return $res; }

update All 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.