當前位置: 首頁>>代碼示例>>PHP>>正文


PHP ModuleAdminController::__construct方法代碼示例

本文整理匯總了PHP中ModuleAdminController::__construct方法的典型用法代碼示例。如果您正苦於以下問題:PHP ModuleAdminController::__construct方法的具體用法?PHP ModuleAdminController::__construct怎麽用?PHP ModuleAdminController::__construct使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在ModuleAdminController的用法示例。


在下文中一共展示了ModuleAdminController::__construct方法的15個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。

示例1: __construct

 public function __construct()
 {
     $this->lang = true;
     $this->requiredDatabase = false;
     $this->context = Context::getContext();
     parent::__construct();
 }
開發者ID:quadra-informatique,項目名稱:SimpleCsvExport-PrestaShop,代碼行數:7,代碼來源:AdminManageexportorderController.php

示例2: __construct

 public function __construct()
 {
     $this->bootstrap = true;
     $this->display = 'main';
     $this->meta_title = $this->l('Orari di lavoro');
     $this->table = 'working_day';
     $this->shopLinkType = "shop";
     $this->shopShareDatas = false;
     $this->_use_found_rows = true;
     $this->tpl_dir = _PS_MODULE_DIR_ . 'aphrodinet/views/templates/admin/controllers/working_days/';
     $this->className = 'AphWorkingDay';
     $this->lang = false;
     $this->explicitSelect = false;
     $this->allow_export = false;
     $this->context = Context::getContext();
     $this->bulk_actions = array('delete' => array('text' => $this->l('Delete selected'), 'icon' => 'icon-trash', 'confirm' => $this->l('Delete selected items?')));
     $this->fields_list = array();
     $this->fields_list['id_working_day'] = array('title' => $this->l('ID'), 'align' => 'center', 'class' => 'fixed-width-xs', 'type' => 'int');
     $this->fields_list['employee_name'] = array('title' => $this->l('Nome dipendente'), 'filter_key' => 'employee_name', 'havingFilter' => false, 'orderby' => true, 'search' => false);
     $this->fields_list['available'] = array('title' => $this->l('Disponibile'), 'type' => 'text', 'orderby' => false, 'filter' => false, 'search' => false);
     $this->fields_list['day_1'] = array('title' => $this->l('Lun'), 'active' => 'status', 'align' => 'text-center', 'type' => 'bool', 'class' => 'fixed-width-sm', 'orderby' => true, 'filter' => true, 'search' => true);
     $this->fields_list['day_2'] = array('title' => $this->l('Mar'), 'active' => 'status', 'align' => 'text-center', 'type' => 'bool', 'class' => 'fixed-width-sm', 'orderby' => true, 'filter' => true, 'search' => true);
     $this->fields_list['day_3'] = array('title' => $this->l('Mer'), 'active' => 'status', 'align' => 'text-center', 'type' => 'bool', 'class' => 'fixed-width-sm', 'orderby' => true, 'filter' => true, 'search' => true);
     $this->fields_list['day_4'] = array('title' => $this->l('Gio'), 'active' => 'status', 'align' => 'text-center', 'type' => 'bool', 'class' => 'fixed-width-sm', 'orderby' => true, 'filter' => true, 'search' => true);
     $this->fields_list['day_5'] = array('title' => $this->l('Ven'), 'active' => 'status', 'align' => 'text-center', 'type' => 'bool', 'class' => 'fixed-width-sm', 'orderby' => true, 'filter' => true, 'search' => true);
     $this->fields_list['day_6'] = array('title' => $this->l('Sab'), 'active' => 'status', 'align' => 'text-center', 'type' => 'bool', 'class' => 'fixed-width-sm', 'orderby' => true, 'filter' => true, 'search' => true);
     $this->fields_list['day_0'] = array('title' => $this->l('Dom'), 'active' => 'status', 'align' => 'text-center', 'type' => 'bool', 'class' => 'fixed-width-sm', 'orderby' => true, 'filter' => true, 'search' => true);
     parent::__construct();
 }
開發者ID:paolobattistella,項目名稱:aphro,代碼行數:29,代碼來源:AdminAphWorkingDaysController.php

示例3: __construct

 public function __construct()
 {
     $this->name = 'adminmarketingfstep7';
     $this->bootstrap = true;
     $this->module = 'expressmailing';
     $this->context = Context::getContext();
     $this->lang = false;
     $this->default_form_language = $this->context->language->id;
     parent::__construct();
     $this->campaign_id = (int) Tools::getValue('campaign_id');
     if (empty($this->campaign_id)) {
         Tools::redirectAdmin('index.php?controller=AdminMarketingX&token=' . Tools::getAdminTokenLite('AdminMarketingX'));
         exit;
     }
     // API initialization
     // ------------------
     include _PS_MODULE_DIR_ . $this->module->name . '/controllers/admin/session_api.php';
     $this->session_api = new SessionApi();
     // Checking the session
     // --------------------
     if (!$this->session_api->connectFromCredentials('fax')) {
         Tools::redirectAdmin('index.php?controller=AdminMarketingFStep6&token=' . Tools::getAdminTokenLite('AdminMarketingFStep6'));
         exit;
     }
     $this->getFieldsValues();
 }
開發者ID:Oldwo1f,項目名稱:yakaboutique,代碼行數:26,代碼來源:adminmarketingfstep7.php

示例4: __construct

 public function __construct()
 {
     $this->bootstrap = true;
     $this->display = 'main';
     $this->meta_title = $this->l('Macchinari');
     $this->table = 'tool';
     $this->className = 'AphTool';
     $this->_use_found_rows = true;
     $this->lang = false;
     $this->explicitSelect = false;
     $this->allow_export = false;
     $this->tpl_dir = _PS_MODULE_DIR_ . 'aphrodinet/views/templates/admin/controllers/tools/';
     $this->context = Context::getContext();
     $this->bulk_actions = array('delete' => array('text' => $this->l('Delete selected'), 'icon' => 'icon-trash', 'confirm' => $this->l('Delete selected items?')));
     $this->fields_list = array();
     $this->fields_list['id_tool'] = array('title' => $this->l('ID'), 'align' => 'center', 'class' => 'fixed-width-xs', 'type' => 'int');
     $this->fields_list['name'] = array('title' => $this->l('Nome'), 'filter_key' => 'name', 'havingFilter' => false, 'orderby' => true, 'search' => false);
     $this->fields_list['quantity'] = array('title' => $this->l('Quantità'), 'type' => 'int', 'align' => 'text-right', 'filter_key' => 'quantity');
     $this->fields_list['available'] = array('title' => $this->l('Disponibile'), 'type' => 'text', 'orderby' => false, 'filter' => false, 'search' => false);
     $this->fields_list['visible'] = array('title' => $this->l('Visibile sul sito'), 'type' => 'text', 'orderby' => false, 'filter' => false, 'search' => false);
     if (Context::getContext()->employee->id_profile == Configuration::get('APH_PROFILE_SITE_OWNER')) {
         $this->fields_list['shop'] = array('title' => $this->l('Negozio'), 'type' => 'text', 'orderby' => true, 'filter' => true, 'search' => true, 'filter_key' => 's!name');
     }
     parent::__construct();
 }
開發者ID:paolobattistella,項目名稱:aphro,代碼行數:25,代碼來源:AdminAphToolsController.php

示例5: __construct

    public function __construct()
    {
        $this->bootstrap = true;
        $this->context = Context::getContext();
        $this->cxt_lang = $this->context->language->id;
        $this->cxt_shop = $this->context->shop->id;
        $this->table = 'loyaltydiscount';
        $this->_select = 'CONCAT(\'#\', p1.`id_product`, \' \', p1.`name`) AS `product_purchased_name`
						, CONCAT(\'#\', p2.`id_product`, \' \', p2.`name`) AS `product_discounted_name`';
        $this->_join = ' JOIN  `' . _DB_PREFIX_ . 'product_lang` p1 ON (p1.`id_product`=a.`id_product_purchased`
							AND p1.`id_shop`=' . $this->cxt_shop . ' AND p1.`id_lang`=' . $this->cxt_lang . ')
					 	JOIN  `' . _DB_PREFIX_ . 'product_lang` p2 ON (p2.`id_product`=a.`id_product_discounted`
							AND p2.`id_shop`=' . $this->cxt_shop . ' AND p2.`id_lang`=' . $this->cxt_lang . ')';
        $this->className = 'LoyaltyDiscountModel';
        $this->lang = true;
        $this->allow_export = true;
        $this->fields_list = array('id_loyaltydiscount' => array('title' => $this->l('ID'), 'align' => 'center', 'class' => 'fixed-width-xs'), 'name' => array('title' => $this->l('Name')), 'description' => array('title' => $this->l('Description'), 'callback' => 'getDescriptionClean', 'orderby' => false), 'rate' => array('title' => $this->l('Rate'), 'type' => 'decimal'), 'product_purchased_name' => array('title' => $this->l('Product purchased')), 'product_discounted_name' => array('title' => $this->l('Product discounted')), 'active' => array('title' => $this->l('Activated'), 'active' => 'status', 'type' => 'bool', 'class' => 'fixed-width-xs', 'align' => 'center', 'ajax' => false, 'orderby' => false));
        $this->bulk_actions = array('delete' => array('text' => $this->l('Delete selected'), 'icon' => 'icon-trash', 'confirm' => $this->l('Delete selected items?')));
        parent::__construct();
        $this->products_list = array_map(function ($x) {
            $x['name'] = '#' . $x['id_product'] . ' ' . $x['name'];
            return $x;
        }, Product::getSimpleProducts($this->cxt_lang, $this->context));
        if (!$this->module->active) {
            Tools::redirectAdmin($this->context->link->getAdminLink('AdminHome'));
        }
    }
開發者ID:enten,項目名稱:ps-loyaltydiscount,代碼行數:27,代碼來源:AdminLoyaltyDiscountController.php

示例6: __construct

 public function __construct()
 {
     parent::__construct();
     $this->bootstrap = true;
     $this->is_16 = (bool) (version_compare(_PS_VERSION_, '1.6.0', '>=') === true);
     $this->initOptions();
 }
開發者ID:OaSiis,項目名稱:LDDP,代碼行數:7,代碼來源:AdminSimpleBlogSettingsController.php

示例7: __construct

 public function __construct()
 {
     $this->name = 'adminmarketingestep5';
     $this->bootstrap = true;
     $this->module = 'expressmailing';
     $this->context = Context::getContext();
     $this->lang = false;
     $this->default_form_language = $this->context->language->id;
     $this->campaign_id = (int) Tools::getValue('campaign_id');
     if (empty($this->campaign_id)) {
         Tools::redirectAdmin('index.php?controller=AdminMarketingX&token=' . Tools::getAdminTokenLite('AdminMarketingX'));
         exit;
     }
     parent::__construct();
     $this->session_api = new SessionApi();
     // On regarde si le compte est toujours en activité
     // --------------------------------------------------------------------------------
     if ($this->session_api->connectFromCredentials('email')) {
         // Si le compte est toujours en activité :
         // 1/ on crée une liste de diffusion pour le mailing actuel
         // 2/ on update le message HTML
         // 3/ puis on passe à l'étape 6
         // -------------------------------------------
         if ($this->updateApiListMessage()) {
             Tools::redirectAdmin('index.php?controller=AdminMarketingEStep6&campaign_id=' . $this->campaign_id . '&token=' . Tools::getAdminTokenLite('AdminMarketingEStep6'));
             exit;
         }
     }
 }
開發者ID:Oldwo1f,項目名稱:yakaboutique,代碼行數:29,代碼來源:adminmarketingestep5.php

示例8: __construct

 public function __construct()
 {
     $this->name = 'adminmarketingsstep5';
     $this->bootstrap = true;
     $this->module = 'expressmailing';
     $this->context = Context::getContext();
     $this->lang = false;
     $this->default_form_language = $this->context->language->id;
     $this->campaign_id = (int) Tools::getValue('campaign_id');
     if (empty($this->campaign_id)) {
         Tools::redirectAdmin('index.php?controller=AdminMarketingX&token=' . Tools::getAdminTokenLite('AdminMarketingX'));
         exit;
     }
     parent::__construct();
     // API initialization
     // ------------------
     include _PS_MODULE_DIR_ . $this->module->name . '/controllers/admin/session_api.php';
     $this->session_api = new SessionApi();
     if (!$this->session_api->connectFromCredentials('sms')) {
         Tools::redirectAdmin('index.php?controller=AdminMarketingSStep2&campaign_id=' . $this->campaign_id . '&token=' . Tools::getAdminTokenLite('AdminMarketingSStep2'));
         exit;
     }
     $this->getFieldsValues();
     // Création de la campagne
     // -----------------------
     if ($this->campaign_api_message_id == null) {
         $this->createCampaignAPI();
     }
     $this->setInfoAPI($this->campaign_api_message_id);
 }
開發者ID:Oldwo1f,項目名稱:yakaboutique,代碼行數:30,代碼來源:adminmarketingsstep5.php

示例9: __construct

 public function __construct()
 {
     global $cookie;
     $this->bootstrap = true;
     $djqujcq = "hide_email";
     $this->table = "agile_sellermessage";
     $this->className = "AgileSellerMessage";
     parent::__construct();
     if (!$this->is_seller) {
         $this->addRowAction("delete");
         $this->addRowAction("edit");
     }
     $this->addRowAction("view");
     $this->_join = "\n\t \t    LEFT JOIN " . _DB_PREFIX_ . "product_lang pl ON a.id_product=pl.id_product AND pl.id_lang=" . $cookie->id_lang . "\n\t \t    LEFT JOIN " . _DB_PREFIX_ . "sellerinfo s ON a.id_seller=s.id_seller\n\t \t    LEFT JOIN " . _DB_PREFIX_ . "sellerinfo_lang sl ON (sl.id_sellerinfo=s.id_sellerinfo AND sl.id_lang=" . intval($cookie->id_lang) . ")\n\t \t    LEFT JOIN " . _DB_PREFIX_ . "employee e ON a.id_seller=e.id_employee\n\t \t";
     $this->_select = " pl.name AS product, sl.company as seller";
     if ($this->is_seller) {
         $this->_where = $this->_where . " AND a.id_seller=" . intval($cookie->id_employee);
     }
     $this->fields_list = array("id_agile_sellermessage" => array("title" => $this->l('ID'), "align" => "center", "width" => 25), "date_add" => array("title" => $this->l('Date'), "align" => "center", "width" => 25), "active" => array("title" => $this->l('Approved'), "align" => "center", "width" => 25, "active" => "status"), "from_name" => array("title" => $this->l('From Name'), "align" => "left", "width" => 120), "product" => array("title" => $this->l('Product Name'), "align" => "left", "width" => 150, "tmpTableFilter" => true), "message" => array("title" => $this->l('Message'), "align" => "left", "width" => 250));
     if (!$this->is_seller) {
         $this->fields_list["seller"] = array("title" => $this->l('Seller'), "width" => 60, "tmpTableFilter" => true);
     }
     ${${"GLOBALS"}["iuhbbj"]} = intval(Configuration::get("ASMGER_HIDE_EMAIL"));
     if (!${$djqujcq} or !$this->is_seller) {
         $this->fields_list["from_email"] = array("title" => $this->l('From Email'), "align" => "left", "width" => 120);
     }
 }
開發者ID:evilscripts,項目名稱:gy,代碼行數:27,代碼來源:AgileSellerMessages.php

示例10: __construct

 public function __construct()
 {
     $this->table = 'smart_blog_comment';
     $this->className = 'Blogcomment';
     $this->module = 'smartblog';
     $this->context = Context::getContext();
     $this->bootstrap = true;
     if (Shop::isFeatureActive()) {
         Shop::addTableAssociation($this->table, array('type' => 'shop'));
     }
     parent::__construct();
     $this->fields_list = array('id_smart_blog_comment' => array('title' => $this->l('Id'), 'width' => 50, 'type' => 'text'), 'email' => array('title' => $this->l('Email'), 'width' => 50, 'type' => 'text', 'lang' => true), 'meta_title' => array('title' => $this->l('Post Title'), 'filter_key' => 'smp!meta_title', 'align' => 'center'), 'name' => array('title' => $this->l('Name'), 'width' => 150, 'type' => 'text'), 'content' => array('title' => $this->l('Comment'), 'width' => 200, 'type' => 'text', 'callback' => 'getCommentClean'), 'created' => array('title' => $this->l('Date'), 'width' => 60, 'type' => 'text', 'lang' => true), 'active' => array('title' => $this->l('Status'), 'width' => '70', 'align' => 'center', 'active' => 'status', 'type' => 'bool', 'orderby' => false));
     $this->bulk_actions = array('delete' => array('text' => $this->l('Delete selected'), 'icon' => 'icon-trash', 'confirm' => $this->l('Delete selected items?')));
     $this->_join = ' LEFT JOIN ' . _DB_PREFIX_ . 'smart_blog_comment_shop sbs ON a.id_smart_blog_comment=sbs.id_smart_blog_comment && sbs.id_shop IN(' . implode(',', Shop::getContextListShopID()) . ')';
     $this->_join .= ' LEFT JOIN ' . _DB_PREFIX_ . 'smart_blog_post_lang smp ON a.id_post=smp.id_smart_blog_post and smp.id_lang = ' . (int) Context::getContext()->language->id;
     $this->_select = 'sbs.id_shop';
     $this->_defaultOrderBy = 'a.id_smart_blog_comment';
     $this->_defaultOrderWay = 'DESC';
     $this->_select = 'smp.meta_title';
     //$this->_defaultOrderBy = 'a.id_smart_blog_comment';
     if (Shop::isFeatureActive() && Shop::getContext() != Shop::CONTEXT_SHOP) {
         $this->_group = 'GROUP BY a.id_smart_blog_comment';
     }
     parent::__construct();
 }
開發者ID:johnulist,項目名稱:smartblog,代碼行數:25,代碼來源:AdminBlogcommentController.php

示例11: __construct

 public function __construct()
 {
     parent::__construct();
     if (!$this->module->active) {
         Tools::redirectAdmin($this->context->link->getAdminLink('AdminHome'));
     }
 }
開發者ID:Oldwo1f,項目名稱:yakaboutique,代碼行數:7,代碼來源:AdminPpropertiesController.php

示例12: __construct

 public function __construct()
 {
     $this->name = 'adminmarketingestep8';
     $this->bootstrap = true;
     $this->module = 'expressmailing';
     $this->context = Context::getContext();
     $this->lang = false;
     $this->default_form_language = $this->context->language->id;
     $this->campaign_id = (int) Tools::getValue('campaign_id');
     if (empty($this->campaign_id)) {
         Tools::redirectAdmin('index.php?controller=AdminMarketingX&token=' . Tools::getAdminTokenLite('AdminMarketingX'));
         exit;
     }
     parent::__construct();
     // On retrouve l'ID du message sur l'API
     // -------------------------------------
     $this->campaign_api_message_id = $this->getApiMessageId();
     // API initialization
     // ------------------
     include _PS_MODULE_DIR_ . $this->module->name . '/controllers/admin/session_api.php';
     $this->session_api = new SessionApi();
     // Checking the session
     // --------------------
     if (!$this->session_api->connectFromCredentials('email')) {
         Tools::redirectAdmin('index.php?controller=AdminMarketingEStep5&token=' . Tools::getAdminTokenLite('AdminMarketingEStep5'));
         exit;
     }
 }
開發者ID:Oldwo1f,項目名稱:yakaboutique,代碼行數:28,代碼來源:adminmarketingestep8.php

示例13: __construct

 public function __construct()
 {
     $this->table = 'blog_post';
     $this->className = 'BlogPost';
     $this->edit = true;
     $this->view = false;
     $this->delete = true;
     if (isset($_GET['id_' . $this->table]) || isset($_GET['add' . $this->table])) {
         $this->multishop_context = Shop::CONTEXT_ALL;
     }
     $this->module = 'psblog';
     $this->bulk_actions = array('delete' => array('text' => $this->l('Delete selected'), 'confirm' => $this->l('Delete selected items ?')));
     $this->addRowAction('edit');
     $this->addRowAction('delete');
     $this->_select .= ' l.iso_code ';
     $this->_join .= ' LEFT JOIN ' . _DB_PREFIX_ . 'lang l on l.id_lang = a.id_lang ';
     $this->_orderBy = 'id_blog_post';
     $this->_orderWay = 'DESC';
     $this->fields_list = array('id_blog_post' => array('title' => $this->l('ID'), 'align' => 'center', 'width' => 30), 'status' => array('title' => $this->l('Status'), 'align' => 'center', 'icon' => array('published' => 'enabled.gif', 'drafted' => 'warning.gif', 'suspended' => 'forbbiden.gif', 'default' => 'unknown.gif'), 'orderby' => false, 'search' => false, 'width' => 60));
     if (count(Language::getLanguages(true)) > 1) {
         $this->fields_list['iso_code'] = array('title' => $this->l('Lang'), 'width' => 20);
     }
     $this->fields_list['title'] = array('title' => $this->l('Title'), 'width' => 400);
     $this->fields_list['date_on'] = array('title' => $this->l('Publication date'), 'width' => 120, 'type' => 'date', 'search' => false);
     $this->conf = Psblog::getPreferences();
     BlogShop::addBlogAssoTables();
     parent::__construct();
 }
開發者ID:rongandat,項目名稱:vatfairfoot,代碼行數:28,代碼來源:AdminBlogPosts.php

示例14: __construct

    public function __construct()
    {
        // Set variables
        $this->table = 'mymod_comment';
        $this->className = 'MyModComment';
        $this->fields_list = array('id_mymod_comment' => array('title' => $this->l('ID'), 'align' => 'center', 'width' => 25), 'shop_name' => array('title' => $this->l('Shop'), 'width' => 120, 'filter_key' => 's!name'), 'firstname' => array('title' => $this->l('Firstname'), 'width' => 120), 'lastname' => array('title' => $this->l('Lastname'), 'width' => 140), 'email' => array('title' => $this->l('E-mail'), 'width' => 150), 'product_name' => array('title' => $this->l('Product'), 'width' => 100, 'filter_key' => 'pl!name'), 'grade_display' => array('title' => $this->l('Grade'), 'align' => 'right', 'width' => 80, 'filter_key' => 'a!grade'), 'comment' => array('title' => $this->l('Comment'), 'search' => false), 'date_add' => array('title' => $this->l('Date add'), 'type' => 'date'));
        // Set fields form for form view
        $this->context = Context::getContext();
        $this->context->controller = $this;
        $this->fields_form = array('legend' => array('title' => $this->l('Add / Edit Comment'), 'image' => '../img/admin/contact.gif'), 'input' => array(array('type' => 'text', 'label' => $this->l('Firstname'), 'name' => 'firstname', 'size' => 30, 'required' => true), array('type' => 'text', 'label' => $this->l('Lastname'), 'name' => 'lastname', 'size' => 30, 'required' => true), array('type' => 'text', 'label' => $this->l('E-mail'), 'name' => 'email', 'size' => 30, 'required' => true), array('type' => 'select', 'label' => $this->l('Product'), 'name' => 'id_product', 'required' => true, 'default_value' => 1, 'options' => array('query' => Product::getProducts($this->context->cookie->id_lang, 1, 1000, 'name', 'ASC'), 'id' => 'id_product', 'name' => 'name')), array('type' => 'text', 'label' => $this->l('Grade'), 'name' => 'grade', 'size' => 30, 'required' => true, 'desc' => $this->l('Grade must be between 1 and 5')), array('type' => 'textarea', 'label' => $this->l('Comment'), 'name' => 'comment', 'cols' => 50, 'rows' => 5, 'required' => false)), 'submit' => array('title' => $this->l('Save')));
        // Enable bootstrap
        $this->bootstrap = true;
        // Call of the parent constructor method
        parent::__construct();
        // Update the SQL request of the HelperList
        $this->_select = "s.`name` as shop_name, pl.`name` as product_name, CONCAT(a.`grade`, '/5') as grade_display";
        $this->_join = 'LEFT JOIN `' . _DB_PREFIX_ . 'product_lang` pl ON (pl.`id_product` = a.`id_product` AND pl.`id_lang` = ' . (int) $this->context->language->id . ' AND pl.`id_shop` = a.`id_shop`)
		LEFT JOIN `' . _DB_PREFIX_ . 'shop` s ON (s.`id_shop` = a.`id_shop`)';
        // Add actions
        $this->addRowAction('view');
        $this->addRowAction('delete');
        $this->addRowAction('edit');
        // Add bulk actions
        $this->bulk_actions = array('delete' => array('text' => $this->l('Delete selected'), 'confirm' => $this->l('Would you like to delete the selected items?')), 'myaction' => array('text' => $this->l('My Action'), 'confirm' => $this->l('Are you sure?')));
        // Define meta and toolbar title
        $this->meta_title = $this->l('Comments on Product');
        if (Tools::getIsset('viewmymod_comment')) {
            $this->meta_title = $this->l('View comment') . ' #' . Tools::getValue('id_mymod_comment');
        }
        $this->toolbar_title[] = $this->meta_title;
    }
開發者ID:elperi,項目名稱:mymodcomments,代碼行數:31,代碼來源:AdminMyModCommentsController.php

示例15: __construct

 public function __construct()
 {
     $this->module = 'aphrodinet';
     $this->bootstrap = true;
     $this->max_file_size = (int) (Configuration::get('PS_LIMIT_UPLOAD_FILE_VALUE') * 1000000);
     $this->max_image_size = (int) Configuration::get('PS_PRODUCT_PICTURE_MAX_SIZE');
     $this->table = 'store';
     $this->_join .= ' JOIN `' . _DB_PREFIX_ . 'store_shop` i ON i.`id_store` = a.`id_store` JOIN `' . _DB_PREFIX_ . 'shop` j ON j.`id_shop` = i.`id_shop`';
     $this->tpl_dir = _PS_MODULE_DIR_ . 'aphrodinet/views/templates/admin/controllers/stores/';
     $this->className = 'AphStore';
     $this->lang = false;
     $this->explicitSelect = false;
     $this->allow_export = false;
     $this->context = Context::getContext();
     // @since 1.5 : translations for tabs
     $this->available_tabs_lang = array('Informazioni' => $this->l('Informazioni'), 'Seo' => $this->l('SEO'), 'SocialNetwork' => $this->l('Social Network'), 'Immagini' => $this->l('Immagini'), 'Servizi' => $this->l('Servizi'), 'Proprietario' => $this->l('Proprietario'));
     if ($this->context->shop->getContext() != Shop::CONTEXT_GROUP) {
         $this->available_tabs = array_merge($this->available_tabs, array('Informazioni' => $this->l('Informazioni'), 'Seo' => $this->l('SEO'), 'SocialNetwork' => $this->l('Social Network'), 'Immagini' => $this->l('Immagini'), 'Servizi' => $this->l('Servizi'), 'Proprietario' => $this->l('Proprietario')));
     }
     $this->_defaultOrderBy = 'id_store';
     $this->_defaultorderWay = 'DESC';
     $this->fields_list = array();
     $this->fields_list['id_store'] = array('title' => $this->l('ID'), 'align' => 'center', 'class' => 'fixed-width-xs', 'type' => 'int');
     $this->fields_list['name'] = array('title' => $this->l('Name'), 'filter_key' => 'name');
     $this->fields_list['active'] = array('title' => $this->l('Status'), 'active' => 'status', 'align' => 'text-center', 'type' => 'bool', 'class' => 'fixed-width-sm', 'orderby' => true, 'filter' => true, 'search' => true);
     parent::__construct();
 }
開發者ID:paolobattistella,項目名稱:aphro,代碼行數:27,代碼來源:AdminAphStoresController.php


注:本文中的ModuleAdminController::__construct方法示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。