mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-04-02 01:52:10 +09:00
Add 3 special exception classes for common situations
This commit is contained in:
parent
1863edcbb8
commit
fe4e336f2b
11 changed files with 82 additions and 25 deletions
|
|
@ -20,7 +20,7 @@ class installAdminController extends install
|
|||
function procInstallAdminInstall()
|
||||
{
|
||||
$module_name = Context::get('module_name');
|
||||
if(!$module_name) throw new Rhymix\Framework\Exception('invalid_request');
|
||||
if(!$module_name) throw new Rhymix\Framework\Exceptions\InvalidRequest;
|
||||
|
||||
$oInstallController = getController('install');
|
||||
$oInstallController->installModule($module_name, './modules/'.$module_name);
|
||||
|
|
@ -35,10 +35,10 @@ class installAdminController extends install
|
|||
{
|
||||
@set_time_limit(0);
|
||||
$module_name = Context::get('module_name');
|
||||
if(!$module_name) throw new Rhymix\Framework\Exception('invalid_request');
|
||||
if(!$module_name) throw new Rhymix\Framework\Exceptions\InvalidRequest;
|
||||
|
||||
$oModule = getModule($module_name, 'class');
|
||||
if(!$oModule) throw new Rhymix\Framework\Exception('invalid_request');
|
||||
if(!$oModule) throw new Rhymix\Framework\Exceptions\InvalidRequest;
|
||||
|
||||
$output = $oModule->moduleUpdate();
|
||||
if($output instanceof BaseObject && !$output->toBool())
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue