本文整理汇总了PHP中initVar函数的典型用法代码示例。如果您正苦于以下问题:PHP initVar函数的具体用法?PHP initVar怎么用?PHP initVar使用的例子?那么, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了initVar函数的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: __construct
public function __construct(array $request = array(), array $opt = array())
{
parent::__construct($request, $opt);
$this->fields = $this->defFields();
$storeVar = isset($_GET['act']) && $_GET['act'] == 'list';
// if true store the filter variables
$init = array_key_exists('init', $this->request);
$reset = array_key_exists('reset', $this->request);
if ($init || $reset) {
$storeVar = true;
}
$this->id = initVar('id');
$this->last_id = initVar('last_id');
$this->parent_act = initVar('parent_act');
$this->tab_mode = initVar('tab_mode');
$this->act = initVar('act', 'list');
$this->do_id = $_SESSION['do_id'];
$this->gpr_id = initVar('gpr_id');
$this->order = PageVar('order', '1A', $init, false, $this->baseName, $storeVar);
$this->pg = PageVar('pg', 0, $init | $reset, false, $this->baseName, $storeVar);
setLang(R3Locale::getLanguageCode());
setLangInfo(array('thousands_sep' => "."));
$this->registerAjaxFunction('submitFormData');
$this->registerAjaxFunction('askDelGlobalPlainGauge');
}
示例2: __construct
public function __construct(array $request = array(), array $opt = array())
{
parent::__construct($request, $opt);
$this->fields = $this->defFields();
$storeVar = isset($_GET['act']) && $_GET['act'] == 'list';
// if true store the filter variables
$init = array_key_exists('init', $this->request);
$reset = array_key_exists('reset', $this->request);
if ($init || $reset) {
$storeVar = true;
}
$this->parent_act = initVar('parent_act');
$this->id = initVar('id');
$this->last_id = initVar('last_id');
$this->act = initVar('act', 'list');
$this->gs_id = initVar('gs_id');
$this->do_id = PageVar('do_id', $_SESSION['do_id'], $init | $reset, false, $this->baseName, $storeVar);
$this->pr_id = PageVar('pr_id', null, $init | $reset, false, $this->baseName, $storeVar);
$this->mu_id = PageVar('mu_id', null, $init | $reset, false, $this->baseName, $storeVar);
$this->mu_name = PageVar('mu_name', null, $init | $reset, false, $this->baseName, $storeVar);
$this->ge_name = PageVar('ge_name', null, $init | $reset, false, $this->baseName, $storeVar);
$this->ge_year = (int) PageVar('ge_year', null, $init | $reset, false, $this->baseName, $storeVar);
$this->order = PageVar('order', '1A', $init, false, $this->baseName, $storeVar);
$this->pg = PageVar('pg', 0, $init | $reset, false, $this->baseName, $storeVar);
$this->toggle_subcategory = initVar('toggle_subcategory');
$this->registerAjaxFunction('getHelp');
$this->registerAjaxFunction('submitFormData');
$this->registerAjaxFunction('askDelGlobalResult');
}
示例3: __construct
public function __construct(array $request = array(), array $opt = array())
{
parent::__construct($request, $opt);
$this->act = initVar('act', 'set');
$this->do_id = $_SESSION['do_id'];
$this->registerAjaxFunction('delCache');
}
示例4: __construct
public function __construct(array $request = array(), array $opt = array())
{
parent::__construct($request, $opt);
$this->fields = $this->defFields();
$storeVar = isset($_GET['act']) && $_GET['act'] == 'list';
// if true store the filter variables
$init = array_key_exists('init', $this->request);
$reset = array_key_exists('reset', $this->request);
if ($init || $reset) {
$storeVar = true;
}
$this->id = (int) initVar('id');
$this->last_id = initVar('last_id');
$this->act = initVar('act', 'list');
$this->do_id = $_SESSION['do_id'];
$this->mu_id = initvar('mu_id');
$this->documentType = 'import_seap';
$this->isDialog = false;
// Cambia le azioni per edit / delete
$this->parent_act = 'list';
$this->order = PageVar('order', '1A', $init, false, $this->baseName, $storeVar);
$this->registerAjaxFunction('checkImport');
$this->registerAjaxFunction('confirmDeleteImport');
$this->registerAjaxFunction('submitFormData');
}
示例5: __construct
public function __construct(array $request = array(), array $opt = array())
{
parent::__construct($request, $opt);
$this->fields = $this->defFields();
$init = array_key_exists('init', $this->request);
$reset = array_key_exists('reset', $this->request);
$storeVar = isset($_GET['act']) && $_GET['act'] == 'list' || $reset || $init;
// if true store the filter variables
if ($init || $reset) {
$storeVar = true;
}
$this->id = initVar('id');
if (initVar('bu_id') !== null) {
$this->id = initVar('bu_id');
}
$this->last_id = initVar('last_id');
$this->parent_act = initVar('parent_act');
$this->act = initVar('act', 'list');
$this->do_id = $_SESSION['do_id'];
$this->st_parent_id = PageVar('st_parent_id', null, $init | $reset, false, $this->baseName, $storeVar);
$this->st_name = PageVar('st_name', null, $init | $reset, false, $this->baseName, $storeVar);
$this->order = PageVar('order', '1A', $init, false, $this->baseName, $storeVar);
$this->pg = PageVar('pg', 0, $init | $reset, false, $this->baseName, $storeVar);
$this->registerAjaxFunction('submitFormData');
$this->registerAjaxFunction('generateStatisticClass');
}
示例6: __construct
public function __construct(array $request = array(), array $opt = array())
{
parent::__construct($request, $opt);
$this->fields = $this->defFields();
$this->act = initVar('act', 'mod');
$this->do_id = $_SESSION['do_id'];
setLang(R3Locale::getLanguageCode());
setLangInfo(array('thousands_sep' => "."));
$this->registerAjaxFunction('getHelp');
$this->registerAjaxFunction('submitFormData');
}
示例7: __construct
public function __construct(array $request = array(), array $opt = array())
{
parent::__construct($request, $opt);
$this->gc_id = (int) initVar('gc_id');
$this->gp_id = (int) initVar('gp_id');
$this->act = initVar('act', 'mod');
$this->tab_mode = initVar('tab_mode');
$this->kind = initVar('kind');
$this->fields = $this->defFields();
$this->registerAjaxFunction('askDelGlobalPlainSum');
$this->registerAjaxFunction('submitFormData');
}
示例8: __construct
public function __construct(array $request = array(), array $opt = array())
{
parent::__construct($request, $opt);
$init = array_key_exists('init', $this->request);
$reset = array_key_exists('reset', $this->request);
$this->id = initVar('id');
$this->act = initVar('act', 'list');
$this->order = PageVar('order', '1A', $init, false, $this->baseName);
$this->pg = PageVar('pg', 0, $init | $reset, false, $this->baseName);
$this->registerAjaxFunction('getHelp');
$this->registerAjaxFunction('submitFormData');
}
示例9: __construct
public function __construct(array $request = array(), array $opt = array())
{
parent::__construct($request, $opt);
$init = array_key_exists('init', $this->request);
$reset = array_key_exists('reset', $this->request);
$this->id = initVar('id');
$this->act = initVar('act', 'show');
$this->do_id = PageVar('do_id', $_SESSION['do_id'], $init | $reset, false, $this->baseName);
$this->pr_id = PageVar('pr_id', null, $init | $reset, false, $this->baseName);
$this->mu_id = PageVar('mu_id', null, $init | $reset, false, $this->baseName);
$this->mu_name = PageVar('mu_name', null, $init | $reset, false, $this->baseName);
}
示例10: __construct
public function __construct(array $request = array(), array $opt = array())
{
parent::__construct($request, $opt);
$init = array_key_exists('init', $this->request);
$this->act = initVar('act', 'list');
$this->sl_id = PageVar('sl_id');
$this->last_id = initVar('consumption_last_id');
$this->parent_act = PageVar('parent_act');
$this->tab_mode = initVar('tab_mode');
$this->order = PageVar('order', '6A', $init, false, $this->baseName);
setLang(R3Locale::getLanguageCode());
setLangInfo(array('thousands_sep' => "."));
}
示例11: __construct
public function __construct(array $request = array(), array $opt = array())
{
parent::__construct($request, $opt);
$this->fields = $this->defFields();
$init = array_key_exists('init', $this->request);
$reset = array_key_exists('reset', $this->request);
$this->id = initVar('id');
$this->act = initVar('act', 'list');
$this->kind = PageVar('kind');
$this->em_id = PageVar('em_id', null, $init | $reset, false, $this->baseName);
$this->tabMode = PageVar('tab_mode', null, $init | $reset, false, $this->baseName);
setLang(R3Locale::getLanguageCode());
setLangInfo(array('thousands_sep' => "."));
$this->registerAjaxFunction('confirm_delete_device');
$this->registerAjaxFunction('submitFormData');
}
示例12: __construct
public function __construct(array $request = array(), array $opt = array())
{
parent::__construct($request, $opt);
$this->kind = initVar('kind');
$this->act = initVar('act', 'add');
$this->mu_id = initVar('mu_id');
$this->mu_name = initVar('mu_name');
if ($this->mu_name != '') {
// Convert municipality text into id
$db = ezcDbInstance::get();
$lang = R3Locale::getLanguageID();
$this->mu_id = (int) $db->query("SELECT mu_id FROM municipality WHERE mu_name_{$lang} ILIKE " . $db->quote($request['mu_name']))->fetchColumn();
}
setLang(R3Locale::getLanguageCode());
$this->registerAjaxFunction('submitFormData');
}
示例13: __construct
public function __construct(array $request = array(), array $opt = array())
{
parent::__construct($request, $opt);
$this->fields = $this->defFields();
$init = array_key_exists('init', $this->request);
$reset = array_key_exists('reset', $this->request);
$storeVar = isset($_GET['act']) && $_GET['act'] == 'list' || $reset || $init;
// if true store the filter variables
if ($init || $reset) {
$storeVar = true;
}
$this->id = initVar('id');
if (initVar('bu_id') !== null) {
$this->id = initVar('bu_id');
}
$this->last_id = initVar('last_id');
$this->parent_act = initVar('parent_act');
$this->act = initVar('act', 'list');
$this->do_id = $_SESSION['do_id'];
$this->pr_id = PageVar('pr_id', null, $init | $reset, false, $this->baseName, $storeVar);
$this->mu_id = PageVar('mu_id', null, $init | $reset, false, $this->baseName, $storeVar);
$this->mu_name = PageVar('mu_name', null, $init | $reset, false, $this->baseName, $storeVar);
$this->fr_id = PageVar('fr_id', null, $init | $reset, false, $this->baseName, $storeVar);
$this->fr_name = PageVar('fr_name', null, $init | $reset, false, $this->baseName, $storeVar);
$this->st_id = PageVar('st_id', null, $init | $reset, false, $this->baseName, $storeVar);
$this->st_name = PageVar('st_name', null, $init | $reset, false, $this->baseName, $storeVar);
$this->bu_civic = PageVar('bu_civic', null, $init | $reset, false, $this->baseName, $storeVar);
$this->bu_code = PageVar('bu_code', null, $init | $reset, false, $this->baseName, $storeVar);
$this->bu_name = PageVar('bu_name', null, $init | $reset, false, $this->baseName, $storeVar);
$this->bpu_id = PageVar('bpu_id', null, $init | $reset, false, $this->baseName, $storeVar);
$this->bt_id = PageVar('bt_id', null, $init | $reset, false, $this->baseName, $storeVar);
$this->bby_id = PageVar('bby_id', null, $init | $reset, false, $this->baseName, $storeVar);
$this->bry_id = PageVar('bry_id', null, $init | $reset, false, $this->baseName, $storeVar);
$this->bu_to_check = PageVar('bu_to_check', null, $init | $reset, false, $this->baseName, $storeVar);
$this->bu_alternative_simulation = PageVar('bu_alternative_simulation', null, $init | $reset, false, $this->baseName, $storeVar);
$this->order = PageVar('order', '1A', $init, false, $this->baseName, $storeVar);
$this->pg = PageVar('pg', 0, $init | $reset, false, $this->baseName, $storeVar);
$this->registerAjaxFunction('getHelp');
$this->registerAjaxFunction('fetch_fr_st_cm');
$this->registerAjaxFunction('fetch_fraction');
$this->registerAjaxFunction('getStreetList');
$this->registerAjaxFunction('fetch_catmunic');
$this->registerAjaxFunction('fetch_municipality');
$this->registerAjaxFunction('fetch_eneryClassLimit');
$this->registerAjaxFunction('askDelBuilding');
$this->registerAjaxFunction('submitFormData');
}
示例14: __construct
public function __construct(array $request = array(), array $opt = array())
{
parent::__construct($request, $opt);
$init = array_key_exists('init', $this->request);
$reset = array_key_exists('reset', $this->request);
$this->id = initVar('id');
$this->act = initVar('act', 'list');
$this->kind = PageVar('kind');
$this->em_id = PageVar('em_id', null, $init | $reset, false, $this->baseName);
$this->sl_id = PageVar('sl_id', null, $init | $reset, false, $this->baseName);
$this->tabMode = PageVar('tab_mode', null, $init | $reset, false, $this->baseName);
$data = R3EcoGisHelper::getMeterData($_SESSION['do_id'], $this->em_id);
$this->fields = $this->defFields($data['em_is_production'] == 'T');
setLang(R3Locale::getLanguageCode());
setLangInfo(array('thousands_sep' => "."));
$this->registerAjaxFunction('confirm_delete_consumption');
$this->registerAjaxFunction('submitFormData');
}
示例15: __construct
public function __construct(array $request = array(), array $opt = array())
{
parent::__construct($request, $opt);
$this->id = initVar('id');
$this->last_id = initVar('last_id');
$this->file_id = initVar('file_id');
$this->doc_object_id = initVar('doc_object_id');
$this->type = initVar('type');
$this->act = initVar('act', 'list');
$this->tab_mode = initVar('tab_mode');
$this->parent_act = PageVar('parent_act');
$this->disposition = initVar('disposition', 'inline');
$this->limit = 0;
$this->fields = $this->defFields();
$this->documentType = 'document';
$this->isDialog = true;
$this->registerAjaxFunction('submitFormData');
$this->registerAjaxFunction('confirm_delete_document');
}