Admin_ThemesController::init PHP Метод

init() публичный Метод

public init ( )
    public function init()
    {
        $this->getThemeService();
        // TODO move this + callbacks from here to a higher level
        if (!$this->_helper->contextSwitch->hasContext('adv')) {
            $this->_helper->contextSwitch->addContext('adv', array('suffix' => 'adv', 'callbacks' => array('init' => array($this, 'initAdvContext'), 'post' => array($this, 'postAdvContext'))));
        }
        // init ajax contexts.. actually json contexts
        // TODO see why ajax context is not working
        $this->_helper->contextSwitch->addActionContext('index', 'json')->addActionContext('assign-to-publication', 'json')->addActionContext('copy-to-available', 'json')->addActionContext('output-edit', 'json')->addActionContext('article-types-edit', 'json')->addActionContext('unassign', 'json')->addActionContext('wizard-theme-settings', 'adv')->addActionContext('wizard-theme-template-settings', 'adv')->addActionContext('wizard-theme-article-types', 'adv')->addActionContext('wizard-theme-files', 'adv')->initContext();
    }