/** * Executes all available tasks * @return void * @uses MeTools\Shell\InstallShell::all() * @uses _getOtherPlugins() * @uses _runOtherPlugins() * @uses createAdmin() * @uses createGroups() * @uses fixKcfinder() */ public function all() { parent::all(); if ($this->param('force')) { $this->fixKcfinder(); if ($this->_getOtherPlugins()) { $this->_runOtherPlugins(); } return; } $ask = $this->in(__d('me_tools', 'Fix {0}?', 'KCFinder'), ['Y', 'n'], 'Y'); if (in_array($ask, ['Y', 'y'])) { $this->fixKcfinder(); } $ask = $this->in(__d('me_cms', 'Create the user groups?'), ['y', 'N'], 'N'); if (in_array($ask, ['Y', 'y'])) { $this->createGroups(); } $ask = $this->in(__d('me_cms', 'Create an admin user?'), ['y', 'N'], 'N'); if (in_array($ask, ['Y', 'y'])) { $this->createAdmin(); } if ($this->_getOtherPlugins()) { $ask = $this->in(__d('me_cms', 'Run the installer of the other plugins?'), ['Y', 'n'], 'Y'); if (in_array($ask, ['Y', 'y'])) { $this->_runOtherPlugins(); } } }