本文整理汇总了PHP中RunnerPage::commonAssign方法的典型用法代码示例。如果您正苦于以下问题:PHP RunnerPage::commonAssign方法的具体用法?PHP RunnerPage::commonAssign怎么用?PHP RunnerPage::commonAssign使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类RunnerPage
的用法示例。
在下文中一共展示了RunnerPage::commonAssign方法的4个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: commonAssign
/**
* Add common assign
*/
function commonAssign()
{
parent::commonAssign();
if (isMobile()) {
$this->xt->displayBrickHidden("search_dashboard_m");
}
$this->xt->assign("languages_block", true);
}
示例2: commonAssign
/**
* Common assign for diferent mode on list page
* Branch classes add to this method its individualy code
*/
function commonAssign()
{
parent::commonAssign();
$this->xt->assign("id", $this->id);
$this->xt->assignbyref("body", $this->body);
$this->xt->assign("newrecord_controls_block", $this->permis[$this->tName]['add']);
$this->xt->assign("record_controls_block", $this->permis[$this->tName]['add'] || $this->isDispGrid());
//$this->xt->assign("grid_controls", $this->isDispGrid());
$this->importLinksAttrs();
$this->xt->assign("changepwd_link", $_SESSION["AccessLevel"] != ACCESS_LEVEL_GUEST && $_SESSION["fromFacebook"] == false);
$this->xt->assign("changepwdlink_attrs", "href=\"" . GetTableLink("changepwd") . "\" onclick=\"window.location.href='" . GetTableLink("changepwd") . "';return false;\"");
if ($this->isShowMenu() || $this->isAdminTable()) {
$this->xt->assign("quickjump_attrs", 'class="' . $this->makeClassName("quickjump") . '"');
}
$this->xt->assign("more_list", true);
foreach ($this->googleMapCfg['mainMapIds'] as $mapId) {
$this->xt->assign_event($mapId, $this, 'createMapDiv', array('mapId' => $mapId, 'width' => $this->googleMapCfg['mapsData'][$mapId]['width'], 'height' => $this->googleMapCfg['mapsData'][$mapId]['height']));
}
//add assign for grid block
$this->addAssignForGrid();
}
示例3: commonAssign
/**
* Common assign for diferent mode on list page
* Branch classes add to this method its individualy code
*/
function commonAssign()
{
parent::commonAssign();
$this->xt->assign("id", $this->id);
$this->xt->assignbyref("body", $this->body);
$this->xt->enable_section("style_block");
$this->xt->enable_section("iestyle_block");
$this->xt->assign("newrecord_controls_block", $this->permis[$this->tName]['add']);
$this->xt->assign("record_controls_block", $this->permis[$this->tName]['add'] || $this->isDispGrid());
//$this->xt->assign("grid_controls", $this->isDispGrid());
$this->importLinksAttrs();
$this->xt->assign("changepwd_link", $_SESSION["AccessLevel"] != ACCESS_LEVEL_GUEST);
$this->xt->assign("changepwdlink_attrs", "href=\"changepwd.php\" onclick=\"window.location.href='changepwd.php';return false;\"");
if ($this->isShowMenu() || $this->isAdminTable()) {
$this->xt->assign("quickjump_attrs", 'class="runner-quickjump"');
}
if ($this->createLoginPage) {
$this->xt->assign("security_block", true);
$this->xt->assign("username", htmlspecialchars($_SESSION["UserName"]));
$this->xt->assign("logoutlink_attrs", "onclick=\"window.location.href='login.php?a=logout';return false;\"");
$this->xt->assign("guestloginlink_attrs", "onclick=\"window.location.href='login.php';return false;\"");
$this->xt->assign("loggedas_message", !isLoggedAsGuest());
$this->xt->assign("guestloginbutton", isLoggedAsGuest());
$this->xt->assign("logoutbutton", isSingleSign() && !isLoggedAsGuest());
}
foreach ($this->googleMapCfg['mainMapIds'] as $mapId) {
$this->xt->assign_event($mapId, $this, 'createMapDiv', array('mapId' => $mapId, 'width' => $this->googleMapCfg['mapsData'][$mapId]['width'], 'height' => $this->googleMapCfg['mapsData'][$mapId]['height']));
}
//add assign for grid block
$this->addAssignForGrid();
}
示例4: commonAssign
/**
* Add common assign
*/
function commonAssign()
{
parent::commonAssign();
if (isMobile()) {
$this->xt->displayBrickHidden("search_dashboard_m");
}
$this->xt->assign("languages_block", true);
$this->assignAdmin();
$this->xt->assign("changepwd_link", $_SESSION["AccessLevel"] != ACCESS_LEVEL_GUEST && $_SESSION["fromFacebook"] == false);
$this->xt->assign("changepwdlink_attrs", "href=\"" . GetTableLink("changepwd") . "\" onclick=\"window.location.href='" . GetTableLink("changepwd") . "';return false;\"");
}