本文整理匯總了PHP中ModuleAdminController::init方法的典型用法代碼示例。如果您正苦於以下問題:PHP ModuleAdminController::init方法的具體用法?PHP ModuleAdminController::init怎麽用?PHP ModuleAdminController::init使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類ModuleAdminController
的用法示例。
在下文中一共展示了ModuleAdminController::init方法的13個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。
示例1: init
public function init()
{
Yii::import('application.modules.advertising.models.AdvertArea');
$advertModel = new Advert();
$advertModel->publishAssets();
parent::init();
}
示例2: init
public function init()
{
if (Tools::getValue("submitAdd" . $this->table)) {
$_POST["submitAdd" . $this->table . "AndStay"] = 1;
}
parent::init();
}
示例3: init
public function init()
{
parent::init();
$this->bootstrap = true;
$this->action = 'view';
$this->display = 'view';
$this->show_page_header_toolbar = true;
$this->tpl_folder = _PS_MODULE_DIR_ . $this->module->name . '/views/templates/admin/PiwikAnalytics/';
}
示例4: init
public function init()
{
if (Tools::isSubmit('edit' . $this->className)) {
$this->display = 'edit';
} elseif (Tools::isSubmit('addLinkBlock')) {
$this->display = 'add';
}
parent::init();
}
示例5: init
public function init()
{
if (Tools::isSubmit('createclaims')) {
$this->display = 'createClaims';
}
if (Tools::isSubmit('viewMessages')) {
$this->display = 'viewMessages';
}
parent::init();
}
示例6: init
public function init()
{
parent::init();
Shop::addTableAssociation($this->table, array('type' => 'shop'));
if (Shop::getContext() == Shop::CONTEXT_SHOP) {
$this->_join .= ' LEFT JOIN `' . _DB_PREFIX_ . $this->table . '_shop` sa ON (a.`id_' . $this->table . '` = sa.`id_' . $this->table . '` AND sa.id_shop = ' . (int) $this->context->shop->id . ') ';
}
if (Shop::getContext() == Shop::CONTEXT_SHOP && Shop::isFeatureActive()) {
$this->_where = ' AND sa.`id_shop` = ' . (int) Context::getContext()->shop->id;
}
}
示例7: init
public function init()
{
parent::init();
$this->filter = array('country_id' => 0, 'region_id' => 0, 'city_id' => 0, 'type' => 0, 'obj_type_id' => 0, 'rooms' => 0, 'ot' => 0, 'wp' => 0);
$addedFields = InfoPages::getAddedFields();
if ($addedFields) {
$this->addedFields = $addedFields;
foreach ($addedFields as $field) {
$this->filter[$field['field']] = '';
}
}
}
示例8: init
public function init()
{
$this->number_from = Tools::getValue('number_from') ? Tools::getValue('number_from') : false;
$this->number_to = Tools::getValue('number_to') ? Tools::getValue('number_to') : false;
if ($this->number_to && $this->number_from > $this->number_to) {
$_n = $this->number_from;
$this->number_from = $this->number_to;
$this->number_to = $_n;
}
$this->postProcess();
$this->context->smarty->assign(['number_from' => $this->number_from, 'number_to' => $this->number_to]);
parent::init();
}
示例9: init
public function init()
{
global $cookie;
if (isset($_GET["update" . $this->table]) and isset($_GET[$this->identifier]) and (int) $_GET[$this->identifier] > 0) {
$sceeyw = "id";
$uhniwwg = "newtoekn";
${$sceeyw} = Tools::getValue($this->identifier);
$dnpivptxp = "url";
${${"GLOBALS"}["alckpcfpi"]} = Tools::getAdminTokenLite("AdminProducts");
${$dnpivptxp} = "./index.php?controller=adminproducts&" . $this->identifier . "=" . ${${"GLOBALS"}["zqcowl"]} . "&update" . $this->table . "&token=" . ${$uhniwwg};
Tools::redirectAdmin(${${"GLOBALS"}["ngytimynyt"]});
}
parent::init();
}
示例10: init
public function init()
{
parent::init();
Shop::addTableAssociation($this->table, array('type' => 'shop'));
if (Shop::getContext() == Shop::CONTEXT_SHOP) {
$this->_join .= ' LEFT JOIN `' . _DB_PREFIX_ . 'simpleblog_category_shop` sa ON (a.`id_simpleblog_category` = sa.`id_simpleblog_category` AND sa.id_shop = ' . (int) $this->context->shop->id . ') ';
}
// else
// $this->_join .= ' LEFT JOIN `'._DB_PREFIX_.'simpleblog_category_shop` sa ON (a.`simpleblog_category` = sa.`simpleblog_category` AND sa.id_shop = a.id_shop_default) ';
if (Shop::getContext() == Shop::CONTEXT_SHOP && Shop::isFeatureActive()) {
$this->_where = ' AND sa.`id_shop` = ' . (int) Context::getContext()->shop->id;
}
if (Shop::isFeatureActive() && Shop::getContext() != Shop::CONTEXT_SHOP) {
unset($this->fields_list['position']);
}
}
示例11: init
public function init()
{
parent::init();
if (isFree()) {
$this->defLang = Yii::app()->language;
$this->currLang = Yii::app()->language;
$this->mask = 'type;priceType;objType;countryName;regionName;cityName;isPricePoa;price;priceTo;numberRooms;floor;floorTotal;square;landSquare;sleeps;title;description;near;location;exchange;bathroom;safety;comfort;kitchen;employment;entertainment;services;terms;photos;lat;lng';
} else {
$this->allLangs = Lang::model()->findAll(array('condition' => 'active = 1'));
$this->mask = 'type;priceType;objType;countryName;regionName;cityName;isPricePoa;price;priceTo;numberRooms;floor;floorTotal;square;landSquare;sleeps';
$this->defLang = Lang::getDefaultLang();
$this->currLang = Yii::app()->language;
if ($this->allLangs) {
foreach ($this->i18nMaskFields as $i18nMaskField) {
foreach ($this->allLangs as $lang) {
$this->mask .= ";{$i18nMaskField}_{$lang->name_iso}";
}
}
}
$this->mask .= ';bathroom;safety;comfort;kitchen;employment;entertainment;services;terms;photos;lat;lng';
}
}
示例12: init
public function init()
{
parent::init();
Yii::app()->user->setState('menu_active', 'location.country');
}
示例13: init
public function init()
{
global $cookie;
if (isset($_GET["updateorder_detail"]) and isset($_GET["id_order_detail"]) and (int) $_GET["id_order_detail"] > 0) {
${"GLOBALS"}["yaxheiul"] = "id_order_detail";
${${"GLOBALS"}["yaxheiul"]} = Tools::getValue("id_order_detail");
$nkotcipboi = "url";
$mlqeupaocox = "tabid";
${${"GLOBALS"}["xeuiojtfef"]} = new OrderDetail(${${"GLOBALS"}["kwzmtwdwu"]});
${"GLOBALS"}["zcuxuhun"] = "newtoekn";
${${"GLOBALS"}["aaiesey"]} = Tab::getIdFromClassName("AdminOrders");
${${"GLOBALS"}["zcuxuhun"]} = Tools::getAdminToken("AdminOrders" . intval(${$mlqeupaocox}) . intval($cookie->id_employee));
${${"GLOBALS"}["epfgdop"]} = "./index.php?controller=adminorders&id_order=" . $orderdetail->id_order . "&vieworder&token=" . ${${"GLOBALS"}["cxphhve"]};
Tools::redirectAdmin(${$nkotcipboi});
}
parent::init();
}