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


PHP ProjectSettings::getViewFormat方法代码示例

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


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

示例1: ProjectSettings

 /**
  * Static function for create list page
  * Read params from setting 
  * Create object of class in accordance with mode displaying page
  * @param String strTableName
  * @param Array options
  */
 static function &createListPage($strTableName, $options)
 {
     global $isGroupSecurity;
     $gSettings = new ProjectSettings($strTableName, $options['pageType']);
     $gQuery = $gSettings->getSQLQuery();
     $params = $options;
     $params['tName'] = $strTableName;
     $params['origTName'] = $gSettings->getOriginalTableName();
     $params['gPageSize'] = $gSettings->getInitialPageSize();
     $params['gOrderIndexes'] = $gSettings->getOrderIndexes();
     $params['gstrOrderBy'] = $gQuery->OrderByToSql();
     $params['gsqlHead'] = $gQuery->HeadToSql();
     $params['gsqlFrom'] = $gQuery->FromToSql();
     $params['gsqlWhereExpr'] = $gQuery->WhereToSql();
     $params['gsqlGroupBy'] = $gQuery->GroupByToSql();
     $params['gsqlHaving'] = $gQuery->Having()->toSql($gQuery);
     $params['nSecOptions'] = $gSettings->getAdvancedSecurityType();
     $params['nLoginMethod'] = GetGlobalData("nLoginMethod", 0);
     $params['recsPerRowList'] = isMobile() ? 1 : $gSettings->getRecordsPerRowList();
     $params['mainTableOwnerID'] = $gSettings->getTableOwnerIdField();
     $params['exportTo'] = $gSettings->hasExportPage();
     $params['printFriendly'] = $gSettings->hasPrintPage();
     $params['deleteRecs'] = $gSettings->hasDelete();
     $params["isGroupSecurity"] = $isGroupSecurity;
     $params['arrKeyFields'] = $gSettings->getTableKeys();
     $params["isUseInlineAdd"] = $gSettings->hasInlineAdd();
     $params["isUseInlineEdit"] = $gSettings->hasInlineEdit();
     $params["panelSearchFields"] = $gSettings->getPanelSearchFields();
     $params['listGridLayout'] = $gSettings->getListGridLayout();
     $params['createLoginPage'] = GetGlobalData("createLoginPage", false);
     $params['noRecordsFirstPage'] = $gSettings->noRecordsOnFirstPage();
     $params['totalsFields'] = $gSettings->getTotalsFields();
     $params['listAjax'] = $gSettings->ajaxBasedListPage();
     $params['arrRecsPerPage'] = $gSettings->getRecordsPerPageArray();
     $params['isScrollGridBody'] = $gSettings->getScrollGridBody();
     $params['viewPDF'] = $gSettings->isViewPagePDF() || $gSettings->isPrinterPagePDF();
     $params['audit'] = GetAuditObject($table);
     $params['listFields'] = array();
     $allfields = $gSettings->getListFields();
     foreach ($allfields as $f) {
         if (!$gSettings->appearOnListPage($f)) {
             continue;
         }
         $params['listFields'][] = array("fName" => $f, "goodFieldName" => GoodFieldName($f), "valueFieldName" => GoodFieldName($f) . "_value", "viewFormat" => $gSettings->getViewFormat($f), "editFormat" => $gSettings->getEditFormat($f));
     }
     // choose class by mode
     if ($params["mode"] == LIST_SIMPLE) {
         $pageObject = new ListPage_Simple($params);
     } else {
         if ($params["mode"] == LIST_AJAX) {
             $pageObject = new ListPage_Ajax($params);
         } else {
             if ($params["mode"] == LIST_LOOKUP) {
                 $pageObject = new ListPage_Lookup($params);
             } else {
                 if ($params["mode"] == LIST_DETAILS || $params["mode"] == LIST_DASHDETAILS) {
                     $pageObject = new ListPage_DPInline($params);
                 } else {
                     if ($params["mode"] == RIGHTS_PAGE) {
                         $pageObject = new RightsPage($params);
                     } else {
                         if ($params["mode"] == MEMBERS_PAGE) {
                             $pageObject = new MembersPage($params);
                         } else {
                             if ($params["mode"] == LIST_DASHBOARD) {
                                 $pageObject = new ListPage_Dashboard($params);
                             }
                         }
                     }
                 }
             }
         }
     }
     $pageObject->init();
     return $pageObject;
 }
开发者ID:sdev1,项目名称:CloudStockEnquiry,代码行数:83,代码来源:listpage.php

示例2: while

 $viewContainer->isDetailsPreview = true;
 $b = true;
 $qResult = $pageObject->connection->query($strSQL);
 $data = $cipherer->DecryptFetchedArray($qResult->fetchAssoc());
 while ($data && $recordsCounter < $display_count) {
     $recordsCounter++;
     $row = array();
     $keylink = "";
     $keylink .= "&key1=" . runner_htmlspecialchars(rawurlencode(@$data["Grp_id"]));
     $keylink .= "&key2=" . runner_htmlspecialchars(rawurlencode(@$data["StockCode"]));
     $keylink .= "&key3=" . runner_htmlspecialchars(rawurlencode(@$data["Coy_Id"]));
     //	Grp_id -
     $viewContainer->recId = $recordsCounter;
     $value = $viewContainer->showDBValue("Grp_id", $data, $keylink);
     $row["Grp_id_value"] = $value;
     $format = $pSet->getViewFormat("Grp_id");
     $class = "rnr-field-text";
     if ($format == FORMAT_FILE) {
         $class = ' rnr-field-file';
     }
     if ($format == FORMAT_AUDIO) {
         $class = ' rnr-field-audio';
     }
     if ($format == FORMAT_CHECKBOX) {
         $class = ' rnr-field-checkbox';
     }
     if ($format == FORMAT_NUMBER || IsNumberType($pSet->getFieldType("Grp_id"))) {
         $class = ' rnr-field-number';
     }
     $row["Grp_id_class"] = $class;
     //	StockCode -
开发者ID:sdev1,项目名称:CloudStockEnquiry,代码行数:31,代码来源:StockMaster_detailspreview.php

示例3: WRViewFormat

function WRViewFormat($field, $table = "")
{
    $pSet = new ProjectSettings($table);
    return $pSet->getViewFormat($field);
}
开发者ID:kcallow,项目名称:MatchMe,代码行数:5,代码来源:reportfunctions.php

示例4: ProjectSettings

 /**
  * Static function for create list page
  * Read params from setting 
  * Create object of class in accordance with mode displaying page 
  */
 function &createListPage($table, $options)
 {
     global $bSubqueriesSupported, $strTableName, $conn, $locale_info, $isGroupSecurity;
     $gSettings = new ProjectSettings($strTableName, $options['pageType']);
     $gQuery = $gSettings->getSQLQuery();
     $params = array();
     $params = $options;
     $params['origTName'] = $gSettings->getOriginalTableName();
     $params['sessionPrefix'] = $strTableName;
     $params['tName'] = $table;
     $params['conn'] =& $conn;
     $params['gPageSize'] = $gSettings->getInitialPageSize();
     $params['gOrderIndexes'] = $gSettings->getOrderIndexes();
     $params['gstrOrderBy'] = $gQuery->OrderByToSql();
     $params['gsqlHead'] = $gQuery->HeadToSql();
     $params['gsqlFrom'] = $gQuery->FromToSql();
     $params['gsqlWhereExpr'] = $gQuery->WhereToSql();
     $params['gsqlGroupBy'] = $gQuery->GroupByToSql();
     $params['gsqlHaving'] = $gQuery->Having()->toSql($gQuery);
     $params['locale_info'] =& $locale_info;
     $params["subQueriesSupp"] = $bSubqueriesSupported;
     $params['nSecOptions'] = $gSettings->getAdvancedSecurityType();
     $params['nLoginMethod'] = GetGlobalData("nLoginMethod", 0);
     $params['recsPerRowList'] = $gSettings->getRecordsPerRowList();
     $params['dbType'] = GetGlobalData("dbType", 0);
     $params['mainTableOwnerID'] = $gSettings->getTableOwnerIdField();
     $params['moveNext'] = $gSettings->useMoveNext();
     $params['exportTo'] = $gSettings->hasExportPage();
     $params['printFriendly'] = $gSettings->hasPrintPage();
     $params['deleteRecs'] = $gSettings->hasDelete();
     $params['rowHighlite'] = $gSettings->highlightRows();
     $params["isGroupSecurity"] = $isGroupSecurity;
     $params['arrKeyFields'] = $gSettings->getTableKeys();
     $params["isUseInlineAdd"] = $gSettings->hasInlineAdd();
     $params["isUseInlineEdit"] = $gSettings->hasInlineEdit();
     $params["isUseInlineJs"] = $params["isUseInlineAdd"] || $params["isUseInlineEdit"];
     $params["panelSearchFields"] = $gSettings->getPanelSearchFields();
     $params['isVerLayout'] = $gSettings->isVerticalLayoutList();
     $params['isDisplayLoading'] = $gSettings->displayLoading();
     $params['createLoginPage'] = GetGlobalData("createLoginPage", false);
     $params['subQueriesSupAccess'] = $gSettings->tableSupportsSubqueries();
     $params['noRecordsFirstPage'] = $gSettings->noRecordsOnFirstPage();
     $params['totalsFields'] = $gSettings->getTotalsFields();
     $params['listIcons'] = $gSettings->iconsOnList();
     $params['edit'] = $gSettings->hasEditPage();
     $params['inlineEdit'] = $gSettings->hasInlineEdit();
     $params['iCopy'] = $gSettings->hasCopyPage();
     $params['iView'] = $gSettings->hasViewPage();
     $params['listAjax'] = $gSettings->ajaxBasedListPage();
     $params['arrRecsPerPage'] = $gSettings->getRecordsPerPageArray();
     $params['isScrollGridBody'] = $gSettings->getScrollGridBody();
     $params['audit'] = GetAuditObject($table);
     $params['listFields'] = array();
     $allfields = $gSettings->getListFields();
     foreach ($allfields as $f) {
         if (!$gSettings->appearOnListPage($f)) {
             continue;
         }
         $params['listFields'][] = array("fName" => $f, "goodFieldName" => GoodFieldName($f), "valueFieldName" => GoodFieldName($f) . "_value", "viewFormat" => $gSettings->getViewFormat($f), "editFormat" => $gSettings->getEditFormat($f));
     }
     // choose class by mode
     if ($params["mode"] == LIST_SIMPLE) {
         $pageObject = new ListPage_Simple($params);
     } else {
         if ($params["mode"] == LIST_AJAX) {
             $pageObject = new ListPage_Ajax($params);
         } else {
             if ($params["mode"] == LIST_LOOKUP) {
                 $pageObject = new ListPage_Lookup($params);
             } else {
                 if ($params["mode"] == LIST_DETAILS) {
                     $pageObject = new ListPage_DPInline($params);
                 } else {
                     if ($params["mode"] == RIGHTS_PAGE) {
                         $pageObject = new RightsPage($params);
                     } else {
                         if ($params["mode"] == MEMBERS_PAGE) {
                             $pageObject = new MembersPage($params);
                         }
                     }
                 }
             }
         }
     }
     return $pageObject;
 }
开发者ID:aagusti,项目名称:padl-tng,代码行数:91,代码来源:listpage.php

示例5: ProjectSettings

 $pSet = new ProjectSettings($strTableName, PAGE_LIST);
 $viewContainer = new ViewControlsContainer($pSet, PAGE_LIST);
 $viewContainer->isDetailsPreview = true;
 $b = true;
 $qResult = $pageObject->connection->query($strSQL);
 $data = $cipherer->DecryptFetchedArray($qResult->fetchAssoc());
 while ($data && $recordsCounter < $display_count) {
     $recordsCounter++;
     $row = array();
     $keylink = "";
     $keylink .= "&key1=" . runner_htmlspecialchars(rawurlencode(@$data["Groupid"]));
     //	Groupid -
     $viewContainer->recId = $recordsCounter;
     $value = $viewContainer->showDBValue("Groupid", $data, $keylink);
     $row["Groupid_value"] = $value;
     $format = $pSet->getViewFormat("Groupid");
     $class = "rnr-field-text";
     if ($format == FORMAT_FILE) {
         $class = ' rnr-field-file';
     }
     if ($format == FORMAT_AUDIO) {
         $class = ' rnr-field-audio';
     }
     if ($format == FORMAT_CHECKBOX) {
         $class = ' rnr-field-checkbox';
     }
     if ($format == FORMAT_NUMBER || IsNumberType($pSet->getFieldType("Groupid"))) {
         $class = ' rnr-field-number';
     }
     $row["Groupid_class"] = $class;
     //	GroupName -
开发者ID:ryanblanchard,项目名称:Dashboard,代码行数:31,代码来源:GroupMaster_detailspreview.php

示例6: ViewControlsContainer

 $viewContainer = new ViewControlsContainer($pSet, PAGE_LIST);
 $viewContainer->isDetailsPreview = true;
 $b = true;
 $qResult = $pageObject->connection->query($strSQL);
 $data = $cipherer->DecryptFetchedArray($qResult->fetchAssoc());
 while ($data && $recordsCounter < $display_count) {
     $recordsCounter++;
     $row = array();
     $keylink = "";
     $keylink .= "&key1=" . runner_htmlspecialchars(rawurlencode(@$data["grp_id"]));
     $keylink .= "&key2=" . runner_htmlspecialchars(rawurlencode(@$data["coy_id"]));
     //	grp_id -
     $viewContainer->recId = $recordsCounter;
     $value = $viewContainer->showDBValue("grp_id", $data, $keylink);
     $row["grp_id_value"] = $value;
     $format = $pSet->getViewFormat("grp_id");
     $class = "rnr-field-text";
     if ($format == FORMAT_FILE) {
         $class = ' rnr-field-file';
     }
     if ($format == FORMAT_AUDIO) {
         $class = ' rnr-field-audio';
     }
     if ($format == FORMAT_CHECKBOX) {
         $class = ' rnr-field-checkbox';
     }
     if ($format == FORMAT_NUMBER || IsNumberType($pSet->getFieldType("grp_id"))) {
         $class = ' rnr-field-number';
     }
     $row["grp_id_class"] = $class;
     //	coy_id -
开发者ID:sdev1,项目名称:CloudStockEnquiry,代码行数:31,代码来源:company_detailspreview.php

示例7: getabspath

 require_once getabspath('classes/controls/ViewControlsContainer.php');
 $pSet = new ProjectSettings($strTableName, PAGE_LIST);
 $viewContainer = new ViewControlsContainer($pSet, PAGE_LIST);
 $viewContainer->isDetailsPreview = true;
 $b = true;
 $qResult = $pageObject->connection->query($strSQL);
 $data = $cipherer->DecryptFetchedArray($qResult->fetchAssoc());
 while ($data && $recordsCounter < $display_count) {
     $recordsCounter++;
     $row = array();
     $keylink = "";
     //	BranchCloudFolder -
     $viewContainer->recId = $recordsCounter;
     $value = $viewContainer->showDBValue("BranchCloudFolder", $data, $keylink);
     $row["BranchCloudFolder_value"] = $value;
     $format = $pSet->getViewFormat("BranchCloudFolder");
     $class = "rnr-field-text";
     if ($format == FORMAT_FILE) {
         $class = ' rnr-field-file';
     }
     if ($format == FORMAT_AUDIO) {
         $class = ' rnr-field-audio';
     }
     if ($format == FORMAT_CHECKBOX) {
         $class = ' rnr-field-checkbox';
     }
     if ($format == FORMAT_NUMBER || IsNumberType($pSet->getFieldType("BranchCloudFolder"))) {
         $class = ' rnr-field-number';
     }
     $row["BranchCloudFolder_class"] = $class;
     //	BranchLastSyncDate - Short Date
开发者ID:ryanblanchard,项目名称:Dashboard,代码行数:31,代码来源:BranchMaster_detailspreview.php


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