本文整理汇总了PHP中RunnerPage::RunnerPage方法的典型用法代码示例。如果您正苦于以下问题:PHP RunnerPage::RunnerPage方法的具体用法?PHP RunnerPage::RunnerPage怎么用?PHP RunnerPage::RunnerPage使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类RunnerPage
的用法示例。
在下文中一共展示了RunnerPage::RunnerPage方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: AddPage
function AddPage(&$params)
{
parent::RunnerPage($params);
$this->formBricks["header"] = "addheader";
$this->formBricks["footer"] = "addbuttons";
}
示例2: PrintPage
/**
* @constructor
*/
function PrintPage(&$params = "")
{
parent::RunnerPage($params);
if ($this->selectedRecords) {
$this->allPagesMode = true;
}
// save selected records in session in normal mode
// read them in PDF mode
if (!$this->pdfMode) {
$_SESSION[$this->sessionPrefix . "_selection"] = $this->selectedRecords;
} else {
$this->selectedRecords = $_SESSION[$this->sessionPrefix . "_selection"];
unset($_SESSION[$this->sessionPrefix . "_selection"]);
// ensure selectedRecords records is array
if (!$this->selectedRecords) {
$this->selectedRecords = array();
}
}
$this->printGridLayout = $this->pSet->getPrintGridLayout();
for ($i = 0; $i < count($this->detailKeysByM); $i++) {
$this->masterKeys[] = $_SESSION[$this->sessionPrefix . "_masterkey" . ($i + 1)];
}
$this->masterTable = $_SESSION[$this->sessionPrefix . "_mastertable"];
$this->totalsFields = $this->pSet->getTotalsFields();
$this->splitByRecords = $this->pSet->getPrinterSplitRecords();
if ($this->pdfMode) {
$this->splitByRecords = $this->pSet->getPrinterPDFSplitRecords();
}
}
示例3: ViewPage
/**
* @constructor
*/
function ViewPage(&$params)
{
parent::RunnerPage($params);
$this->setKeysForJs();
$this->formBricks["header"] = "viewheader";
$this->formBricks["footer"] = "viewbuttons";
$this->assignFormFooterAndHeaderBricks(true);
}
示例4: RemindPasswordPage
function RemindPasswordPage(&$params)
{
parent::RunnerPage($params);
$this->pSet = new ProjectSettings("DashboardUsers", $this->pageType);
$this->pSetEdit = $this->pSet;
$this->formBricks["header"] = "remindheader";
$this->formBricks["footer"] = "remindbuttons";
$this->assignFormFooterAndHeaderBricks(true);
}
示例5: ViewPage
function ViewPage(&$params)
{
parent::RunnerPage($params);
$this->setKeysForJs();
$this->formBricks["header"] = "viewheader";
$this->formBricks["footer"] = "viewbuttons";
}
示例6: EditPage
function EditPage(&$params)
{
parent::RunnerPage($params);
$this->editFields = $this->getFieldsByPageType();
$this->setKeys( $this->keys );
$this->formBricks["header"] = "editheader";
$this->formBricks["footer"] = "editbuttons";
}
示例7: LoginPage
function LoginPage(&$params)
{
// call parent constructor
parent::RunnerPage($params);
$this->auditObj = GetAuditObject();
$this->formBricks["header"] = "loginheader";
$this->formBricks["footer"] = "loginbuttons";
}
示例8: EditPage
/**
* @constructor
*/
function EditPage(&$params)
{
parent::RunnerPage($params);
$this->setKeysForJs();
$this->auditObj = GetAuditObject($this->tName);
$this->editFields = $this->getPageFields();
$this->formBricks["header"] = "editheader";
$this->formBricks["footer"] = "editbuttons";
$this->assignFormFooterAndHeaderBricks(true);
}
示例9: ReportPage
function ReportPage(&$params)
{
parent::RunnerPage($params);
$this->crossTable = $this->pSet->isCrossTabReport();
$this->jsSettings['tableSettings'][$this->tName]['crossTable'] = $this->crossTable;
$this->jsSettings['tableSettings'][$this->tName]['simpleSearchActive'] = $this->searchClauseObj->simpleSearchActive;
if ($this->mode == REPORT_DASHBOARD) {
$this->formBricks["footer"] = array("pagination_block");
}
}
示例10: LoginPage
/**
* @constructor
*/
function LoginPage(&$params)
{
// call parent constructor
parent::RunnerPage($params);
$this->pSet = new ProjectSettings("ConsolidatedStockEnquiry_users", $this->pageType);
$this->pSetEdit = $this->pSet;
$this->pSetSearch = new ProjectSettings($this->tName, PAGE_SEARCH);
$this->auditObj = GetAuditObject();
$this->formBricks["header"] = "loginheader";
$this->formBricks["footer"] = "loginbuttons";
$this->assignFormFooterAndHeaderBricks(true);
}
示例11: DashboardPage
/**
* @constructor
* @param &Array params
*/
function DashboardPage(&$params)
{
parent::RunnerPage($params);
// Set language params, if have more than one language
$this->setLangParams();
$this->jsSettings['tableSettings'][$this->tName]['dashElements'] = array();
// calculate additional element settings
foreach ($this->pSet->getDashboardElements() as $key => $elem) {
$permissions = false;
$newElem = $elem;
if ($elem['type'] == DASHBOARD_RECORD) {
// check tables (add, view, edit) permissinons befor add to js
$newElem['tabsPageTypes'] = array();
foreach ($elem['tabsPageTypes'] as $idx => $pageType) {
if ($this->CheckPermissions($elem['table'], $pageType)) {
$permissions = true;
$newElem['tabsPageTypes'][] = $pageType;
}
}
} elseif ($elem['type'] == DASHBOARD_DETAILS) {
$eset = new ProjectSettings($elem['table']);
$details = $eset->getDetailTablesArr();
// add details shortTableNames
$newElem['details'] = array();
foreach ($details as $idx => $d) {
if (in_array($d['dDataSourceTable'], $elem['notUsedDetailTables'])) {
continue;
}
if ($this->CheckPermissions($d['dDataSourceTable'], $d['dType'])) {
$permissions = true;
$newElem['details'][$idx] = $d;
$this->jsSettings['tableSettings'][$d['dDataSourceTable']]['shortTName'] = $d['dShortTable'];
}
}
} elseif ($elem['type'] == DASHBOARD_CHART || $elem['type'] == DASHBOARD_REPORT || $elem['type'] == DASHBOARD_SEARCH) {
$permissions = $this->CheckPermissions($elem['table'], "Search");
} elseif ($elem['type'] == DASHBOARD_LIST) {
$permissions = $this->CheckPermissions($elem['table'], "list");
}
$this->elementsPermissions[$key] = $permissions;
if (!$permissions) {
continue;
}
// add shortTableNames and element
$this->jsSettings['tableSettings'][$elem['table']]['shortTName'] = GetTableURL($elem['table']);
$this->jsSettings['tableSettings'][$this->tName]['dashElements'][$key] = $newElem;
}
}
示例12: RegisterPage
function RegisterPage(&$params = "")
{
parent::RunnerPage($params);
// fill global password settings
$this->pwdStrong = GetGlobalData("pwdStrong", false);
if ($this->pwdStrong) {
$this->settingsMap["globalSettings"]["pwdLen"] = GetGlobalData("pwdLen", 0);
$this->settingsMap["globalSettings"]["pwdUnique"] = GetGlobalData("pwdUnique", 0);
$this->settingsMap["globalSettings"]["pwdDigits"] = GetGlobalData("pwdDigits", 0);
$this->settingsMap["globalSettings"]["pwdStrong"] = true;
$this->settingsMap["globalSettings"]["pwdUpperLower"] = GetGlobalData("pwdUpperLower", false);
}
$this->formBricks["header"] = "regheader";
$this->formBricks["footer"] = "regbuttons";
$this->assignFormFooterAndHeaderBricks(true);
}
示例13: PrintPage
/**
* @constructor
*/
function PrintPage(&$params = "")
{
parent::RunnerPage($params);
if ($this->selectedRecords) {
$this->allPagesMode = true;
}
$this->printGridLayout = $this->pSet->getPrintGridLayout();
for ($i = 0; $i < count($this->detailKeysByM); $i++) {
$this->masterKeys[] = $_SESSION[$this->sessionPrefix . "_masterkey" . ($i + 1)];
}
$this->masterTable = $_SESSION[$this->sessionPrefix . "_mastertable"];
$this->totalsFields = $this->pSet->getTotalsFields();
$this->splitByRecords = $this->pSet->getPrinterSplitRecords();
if ($this->pdfMode) {
$this->splitByRecords = $this->pSet->getPrinterPDFSplitRecords();
}
}
示例14: ChangePasswordPage
function ChangePasswordPage(&$params = "")
{
parent::RunnerPage($params);
$this->pSet = new ProjectSettings("DashboardUsers", $this->pageType);
$this->pSetEdit = $this->pSet;
// fill global password settings
$this->pwdStrong = GetGlobalData("pwdStrong", false);
if ($this->pwdStrong) {
$this->settingsMap["globalSettings"]["pwdLen"] = GetGlobalData("pwdLen", 0);
$this->settingsMap["globalSettings"]["pwdUnique"] = GetGlobalData("pwdUnique", 0);
$this->settingsMap["globalSettings"]["pwdDigits"] = GetGlobalData("pwdDigits", 0);
$this->settingsMap["globalSettings"]["pwdStrong"] = true;
$this->settingsMap["globalSettings"]["pwdUpperLower"] = GetGlobalData("pwdUpperLower", false);
}
$this->formBricks["header"] = "changeheader";
$this->formBricks["footer"] = "changebuttons";
$this->assignFormFooterAndHeaderBricks(true);
}
示例15: ImportPage
function ImportPage(&$params)
{
parent::RunnerPage($params);
$this->audit = GetAuditObject($this->tName);
$this->jsSettings['tableSettings'][$this->tName]["importFieldsLables"] = $this->getImportfieldsLabels();
}