getClassExtension -> asExtension (shorter syntax)

This commit is contained in:
Sam Georges 2014-08-23 09:41:48 +10:00
parent fb56fbfabd
commit 7beafebf7c
4 changed files with 7 additions and 7 deletions

View File

@ -55,13 +55,13 @@ class EditorPreferences extends Controller
$this->vars['language'] = 'css';
$this->vars['margin'] = 0;
$this->getClassExtension('Backend.Behaviors.FormController')->update();
$this->asExtension('FormController')->update();
$this->pageTitle = Lang::get('backend::lang.editor.menu_label');
}
public function index_onSave()
{
return $this->getClassExtension('Backend.Behaviors.FormController')->update_onSave();
return $this->asExtension('FormController')->update_onSave();
}
public function formFindModelObject()

View File

@ -49,7 +49,7 @@ class Users extends Controller
if ($context != 'myaccount' && $recordId == $this->user->id)
return Redirect::to(Backend::url('backend/users/myaccount'));
return $this->getClassExtension('Backend.Behaviors.FormController')->update($recordId, $context);
return $this->asExtension('FormController')->update($recordId, $context);
}
/**
@ -68,7 +68,7 @@ class Users extends Controller
*/
public function myaccount_onSave()
{
$result = $this->getClassExtension('Backend.Behaviors.FormController')->update_onSave($this->user->id, 'myaccount');
$result = $this->asExtension('FormController')->update_onSave($this->user->id, 'myaccount');
/*
* If the password or login name has been updated, reauthenticate the user

View File

@ -48,7 +48,7 @@ class MailTemplates extends Controller
/* @todo Remove line if year >= 2015 */ if (!\System\Models\MailLayout::whereCode('default')->count()) { \Eloquent::unguard(); with(new \System\Database\Seeds\SeedSetupMailLayouts)->run(); }
MailTemplate::syncAll();
$this->getClassExtension('Backend.Behaviors.ListController')->index();
$this->asExtension('ListController')->index();
$this->bodyClass = 'compact-container';
}

View File

@ -59,7 +59,7 @@ class Updates extends Controller
$this->vars['project_id'] = Parameters::get('system::project.id');
$this->vars['project_name'] = Parameters::get('system::project.name');
$this->vars['project_owner'] = Parameters::get('system::project.owner');
return $this->getClassExtension('Backend.Behaviors.ListController')->index();
return $this->asExtension('ListController')->index();
}
/**
@ -69,7 +69,7 @@ class Updates extends Controller
{
$this->pageTitle = Lang::get('system::lang.plugins.manage');
PluginManager::instance()->clearDisabledCache();
return $this->getClassExtension('Backend.Behaviors.ListController')->index();
return $this->asExtension('ListController')->index();
}
/**