Beispiel #1
0
 public function init()
 {
     parent::init();
     if ('update' == PMXE_Plugin::getInstance()->getAdminCurrentScreen()->action) {
         $this->isInline = true;
     }
 }
Beispiel #2
0
 protected function init()
 {
     parent::init();
     if ('PMXE_Admin_Manage' == PMXE_Plugin::getInstance()->getAdminCurrentScreen()->base) {
         // prereqisites are not checked when flow control is deligated
         $id = $this->input->get('id');
         $this->data['export'] = $export = new PMXE_Export_Record();
         if (!$id or $export->getById($id)->isEmpty()) {
             // specified import is not found
             wp_redirect(add_query_arg('page', 'pmxe-admin-manage', admin_url('admin.php')));
             die;
         }
         $this->isWizard = false;
     } else {
         $action = PMXE_Plugin::getInstance()->getAdminCurrentScreen()->action;
         $this->_step_ready($action);
     }
     // preserve id parameter as part of baseUrl
     $id = $this->input->get('id') and $this->baseUrl = add_query_arg('id', $id, $this->baseUrl);
 }