当前位置: 首页>>代码示例>>PHP>>正文


PHP AgileSellerManager::getSellersNV方法代码示例

本文整理汇总了PHP中AgileSellerManager::getSellersNV方法的典型用法代码示例。如果您正苦于以下问题:PHP AgileSellerManager::getSellersNV方法的具体用法?PHP AgileSellerManager::getSellersNV怎么用?PHP AgileSellerManager::getSellersNV使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在AgileSellerManager的用法示例。


在下文中一共展示了AgileSellerManager::getSellersNV方法的5个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。

示例1: initContent

 public function initContent()
 {
     if (Module::isInstalled('agilemultipleseller')) {
         $this->context->smarty->assign(array('sellers' => $this->is_seller ? null : AgileSellerManager::getSellersNV(true, $this->l('Public in store'))));
     }
     parent::initContent();
 }
开发者ID:evilscripts,项目名称:gy,代码行数:7,代码来源:AdminCategoriesController.php

示例2: renderGenericForm

 public function renderGenericForm($fields_form, $fields_value, $tpl_vars = array())
 {
     if ($fields_form['form']['form']['id_form'] == 'step_carrier_summary') {
         $fields_value['id_seller'] = AgileSellerManager::getObjectOwnerID('carrier', Tools::getValue('id_carrier'));
         if ($this->is_seller) {
             array_unshift($fields_form['form']['form']['input'], array('type' => 'hidden', 'label' => $this->l('Seller:'), 'name' => 'id_seller', 'required' => false));
         } else {
             array_unshift($fields_form['form']['form']['input'], array('type' => 'select', 'label' => $this->l('Seller:'), 'name' => 'id_seller', 'required' => false, 'default_value' => $fields_value['id_seller'], 'options' => array('query' => AgileSellerManager::getSellersNV(true, $this->l('Store Shared')), 'id' => 'id_seller', 'name' => 'name'), 'desc' => $this->l('If this is private seller data, please choose the seller. Otherwise please choose Store Shared')));
         }
     }
     return parent::renderGenericForm($fields_form, $fields_value, $tpl_vars);
 }
开发者ID:sho5kubota,项目名称:guidingyou2,代码行数:12,代码来源:AdminCarrierWizardController.php

示例3: initContent

 public function initContent()
 {
     $this->context->smarty->assign(array('agilemultipleseller_isinstalled' => Module::isInstalled('agilemultipleseller') ? 1 : 0, 'agilesellerlistoptions_isinstalled' => Module::isInstalled('agilesellerlistoptions') ? 1 : 0, 'id_first_available_category' => AgileHelper::GetFirstAvailableCategory()));
     if (Module::isInstalled('agilemultipleseller')) {
         require_once _PS_ROOT_DIR_ . '/modules/agilemultipleseller/agilemultipleseller.php';
         require_once _PS_ROOT_DIR_ . '/modules/agilemultipleseller/SellerInfo.php';
         $this->context->smarty->assign(array('agilemultipleseller_hook' => _PS_ROOT_DIR_ . "/modules/agilemultipleseller/views/templates/hook/", 'is_seller' => $this->is_seller, 'id_seller' => AgileSellerManager::getObjectOwnerID($this->table, Tools::getValue('id_' . $this->table)), 'sellers' => $this->is_seller ? null : AgileSellerManager::getSellersNV(true, $this->l('Public in store')), 'approveal_required' => intval(Configuration::get('AGILE_MS_PRODUCT_APPROVAL')), 'approved' => AgileMultipleSeller::is_list_approved(intval(Tools::getValue('id_product'))), 'ajx_category_url' => AgileMultipleSeller::get_agile_ajax_categories_url()));
     }
     if (Module::isInstalled('agilesellerlistoptions')) {
         require_once _PS_ROOT_DIR_ . '/modules/agilesellerlistoptions/agilesellerlistoptions.php';
         $aslo_module = new AgileSellerListOptions();
         $this->context->smarty->assign(array('agilesellerlistoptions_hook' => _PS_ROOT_DIR_ . "/modules/agilesellerlistoptions/views/templates/hook/", 'HOOK_PRODYCT_LIST_OPTIONS' => $aslo_module->hookAgileAdminProductsFormTop(array('for_front' => 0, 'id_product' => Tools::getValue('id_' . $this->table)), $this->is_seller)));
     }
     parent::initContent();
 }
开发者ID:evilscripts,项目名称:gy,代码行数:15,代码来源:AdminProductsController.php

示例4: renderForm

 public function renderForm()
 {
     global $cookie;
     ${"GLOBALS"}["uwnclc"] = "sellerinfo";
     $bmgitbrqeuu = "modules";
     ${"GLOBALS"}["wgdkpcgommt"] = "modules";
     if (!(${${"GLOBALS"}["xeglymvvpvoh"]} = $this->loadObject(true))) {
         return;
     }
     ${"GLOBALS"}["cmwmre"] = "labels";
     $mobaqoqkpbc = "modules";
     $lkpwvshwx = "modules";
     ${"GLOBALS"}["owcninq"] = "modules";
     ${$mobaqoqkpbc} = array();
     ${$bmgitbrqeuu}[] = array("name" => "", "desc" => "--");
     ${${"GLOBALS"}["gqijjcqhgij"]}[] = array("name" => "agilepaypal", "desc" => "Agile Paypal or Agile Paypal Adative");
     if (Module::isInstalled("agilebankwire")) {
         ${${"GLOBALS"}["owcninq"]}[] = array("name" => "bankwire", "desc" => "Aigle Bank Wire");
     }
     if (Module::isInstalled("agilegooglecheckout")) {
         ${${"GLOBALS"}["gqijjcqhgij"]}[] = array("name" => "googlecheckout", "desc" => "Agile Google Checkout");
     }
     ${"GLOBALS"}["eoyekwrdgm"] = "tokenSellerinfo";
     if (Module::isInstalled("agilepaybycheque")) {
         ${${"GLOBALS"}["wgdkpcgommt"]}[] = array("name" => "agilepaybycheque", "desc" => "Agile Pay by check");
     }
     if (Module::isInstalled("agilecashondelivery")) {
         ${${"GLOBALS"}["gqijjcqhgij"]}[] = array("name" => "agilecashondelivery", "desc" => "Aigle Cash On Delivery");
     }
     ${${"GLOBALS"}["cmwmre"]} = "\n\t\t\tvar labels = {\n\t\t\t\tagilepaypal: {info1:\"" . $this->l('Paypal Address:') . "\",info2:\"N/A\",info3:\"N/A\",info4:\"N/A\",info5:\"N/A\" } \n\t\t\t\t,bankwire: {info1:\"" . $this->l('Account Owner:') . "\",info2:\"" . $this->l('Details:') . "\",info3:\"" . $this->l('Bank address:') . "\",info4:\"N/A\",info5:\"N/A\"}\n\t\t\t\t,googlecheckout: {info1:\"" . $this->l('Merchant ID:') . "\",info2:\"" . $this->l('Merchant Key:') . "\",info3:\"N/A\",info4:\"N/A\",info5:\"N/A\"}\n\t\t\t\t,agilepaybycheque: {info1:\"" . $this->l('To the order of:') . "\",info2:\"" . $this->l('Address:') . "\",info3:\"N/A\",info4:\"N/A\",info5:\"N/A\"}\n\t\t\t\t,agilecashondelivery: {info1:\"" . $this->l('Notes at order:') . "\",info2:\"N/A\",info3:\"N/A\",info4:\"N/A\",info5:\"N/A\"} \n\t\t\t };\t\t\n\t\t";
     $this->fields_form = array("legend" => array("title" => $this->l('Seller Payment Info'), "image" => "../img/admin/tab-customers.gif"), "input" => array(array("type" => "text_sellerinfo", "label" => $this->l('Seller:'), "name" => "id_sellerinfo", "size" => 33, "required" => false), array("type" => "select", "label" => $this->l('Payment Module:'), "name" => "module_name", "options" => array("query" => ${$lkpwvshwx}, "id" => "name", "name" => "desc"), "required" => false), array("type" => "checkbox", "name" => "in_use", "values" => array("query" => array(array("id" => "on", "name" => $this->l('In Use'), "val" => "1")), "id" => "id", "name" => "name"), "required" => false), array("type" => "textarea", "label" => $this->l('Field 1:'), "name" => "info1", "rows" => 3, "cols" => 100, "required" => false), array("type" => "textarea", "label" => $this->l('Field 2:'), "name" => "info2", "rows" => 3, "cols" => 100, "required" => false), array("type" => "textarea", "label" => $this->l('Field 3:'), "name" => "info3", "rows" => 3, "cols" => 100, "required" => false), array("type" => "textarea", "label" => $this->l('Field 4:'), "name" => "info4", "size" => 33, "required" => false), array("type" => "textarea", "label" => $this->l('Field 5:'), "name" => "info5", "rows" => 3, "cols" => 100, "required" => false)));
     $this->fields_form["submit"] = array("title" => $this->l('Save'), "class" => "btn btn-default pull-right");
     ${${"GLOBALS"}["mdpjsyd"]} = new SellerInfo(SellerInfo::getIdBSellerId($this->object->id_seller));
     ${${"GLOBALS"}["eoyekwrdgm"]} = Tools::getAdminToken("AdminSellerinfos" . (int) Tab::getIdFromClassName("AdminSellerinfos") . (int) $this->context->employee->id);
     $this->tpl_form_vars = array("agilemultipleseller_views" => _PS_ROOT_DIR_ . "/modules/agilemultipleseller/views/", "base_dir" => _PS_BASE_URL_ . __PS_BASE_URI__, "base_dir_ssl" => _PS_BASE_URL_SSL_ . __PS_BASE_URI__, "sellerinfo" => ${${"GLOBALS"}["uwnclc"]}, "tokenSellerinfo" => ${${"GLOBALS"}["fwqgvgb"]}, "sellers" => AgileSellerManager::getSellersNV(true, "--"), "is_seller" => $cookie->profile == (int) Configuration::get("AGILE_MS_PROFILE_ID"), "labels" => ${${"GLOBALS"}["krpmgdw"]});
     $this->fields_value = array("in_use_on" => $this->getFieldValue(${${"GLOBALS"}["xeglymvvpvoh"]}, "in_use"));
     return parent::renderForm();
 }
开发者ID:evilscripts,项目名称:gy,代码行数:38,代码来源:AdminSellerPaymentinfos.php

示例5: renderForm

 public function renderForm()
 {
     if (!Module::isInstalled('agilemultipleseller')) {
         return parent::renderForm();
     }
     if (strtolower(Tools::getValue('controller')) == 'adminimport') {
         $dir = _PS_ADMIN_DIR_ . '/import/';
         if ($this->is_seller) {
             $dir .= $this->context->cookie->id_employee . '/';
         }
         if (!file_exists($dir)) {
             mkdir($dir);
         }
         $files_to_import = scandir($dir);
         uasort($files_to_import, array('AdminImportController', 'usortFiles'));
         foreach ($files_to_import as $k => &$filename) {
             if (preg_match('/^\\..*|index\\.php/i', $filename)) {
                 unset($files_to_import[$k]);
             } else {
                 if (is_dir($dir . $filename)) {
                     unset($files_to_import[$k]);
                 }
             }
         }
         unset($filename);
         $this->tpl_form_vars["files_to_import"] = $files_to_import;
         $this->tpl_form_vars["path_import"] = $dir;
     }
     if ($this->table == 'shop' and !$this->object->id) {
         $this->tpl_form_vars['form_import'] = null;
     }
     $eaccess = AgileSellerManager::get_entity_access($this->table);
     if ($eaccess['owner_table_type'] != AgileSellerManager::OWNER_TABLE_UNKNOWN and is_array($this->fields_form) and isset($this->fields_form['input']) and $this->table != 'sellerinfo') {
         $this->fields_value['id_seller'] = AgileSellerManager::getObjectOwnerID($this->table, intval(Tools::getValue('id_' . $this->table)));
         if (empty($eaccess['owner_xr_table'])) {
             if ($this->is_seller) {
                 array_unshift($this->fields_form['input'], array('type' => 'hidden', 'label' => $this->l('Seller:'), 'name' => 'id_seller', 'required' => false));
             } else {
                 array_unshift($this->fields_form['input'], array('type' => 'select', 'label' => $this->l('Seller:'), 'name' => 'id_seller', 'required' => false, 'default_value' => $this->fields_value['id_seller'], 'options' => array('query' => AgileSellerManager::getSellersNV(true, $this->l('Store Shared')), 'id' => 'id_seller', 'name' => 'name'), 'hint' => $this->l('If this is private seller data, please choose the seller. Otherwise please choose Store Shared')));
             }
         }
     }
     return parent::renderForm();
 }
开发者ID:evilscripts,项目名称:gy,代码行数:44,代码来源:AdminController.php


注:本文中的AgileSellerManager::getSellersNV方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。