當前位置: 首頁>>代碼示例>>PHP>>正文


PHP ProjectSettings::getFieldData方法代碼示例

本文整理匯總了PHP中ProjectSettings::getFieldData方法的典型用法代碼示例。如果您正苦於以下問題:PHP ProjectSettings::getFieldData方法的具體用法?PHP ProjectSettings::getFieldData怎麽用?PHP ProjectSettings::getFieldData使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在ProjectSettings的用法示例。


在下文中一共展示了ProjectSettings::getFieldData方法的3個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。

示例1: getDashMainFieldData

 /**
  * It return dashboard main search field data 
  */
 function getDashMainFieldData($field, $key)
 {
     if ($this->getTableType() != PAGE_DASHBOARD) {
         return false;
     }
     // get all dashboard search fields
     $dashFields = $this->getDashboardSearchFields();
     // get main field name and table name
     $dashElemTableName = $dashFields[$field][0]["table"];
     $dashElemFieldName = $dashFields[$field][0]["field"];
     $dashElemSettings = new ProjectSettings($dashElemTableName, $this->_editPage);
     return $dashElemSettings->getFieldData($dashElemFieldName, $key);
 }
開發者ID:kcallow,項目名稱:MatchMe,代碼行數:16,代碼來源:projectsettings.php

示例2: getDashFieldData

 function getDashFieldData($field, $key)
 {
     $dashSearchFields = $this->getDashboardSearchFields();
     $tableSettings = new ProjectSettings($dashSearchFields[$field][0]["table"], $this->_editPage);
     return $tableSettings->getFieldData($dashSearchFields[$field][0]["field"], $key);
 }
開發者ID:sdev1,項目名稱:CloudStockEnquiry,代碼行數:6,代碼來源:projectsettings.php

示例3: addFieldsSettings

 function addFieldsSettings($arrFields, $pageBased, $pageType)
 {
     $dashSearchFields = $this->pSet->getDashboardSearchFields();
     foreach ($arrFields as $fieldName) {
         $pSet = new ProjectSettings($dashSearchFields[$fieldName][0]["table"]);
         $tableFieldName = $dashSearchFields[$fieldName][0]["field"];
         if (!array_key_exists($fieldName, $this->jsSettings['tableSettings'][$this->tName]['fieldSettings'])) {
             $this->jsSettings['tableSettings'][$this->tName]['fieldSettings'][$fieldName] = array();
         }
         if (!array_key_exists($pageType, $this->jsSettings['tableSettings'][$this->tName]['fieldSettings'][$fieldName])) {
             $this->jsSettings['tableSettings'][$this->tName]['fieldSettings'][$fieldName][$pageType] = array();
         }
         foreach ($this->settingsMap["fieldSettings"] as $key => $val) {
             $fData = $pSet->getFieldData($tableFieldName, $key);
             if ($key == "validateAs") {
                 if ($pageType == PAGE_ADD || $pageType == PAGE_EDIT || $pageType == PAGE_REGISTER) {
                     $this->fillValidation($fData, $val, $this->jsSettings['tableSettings'][$this->tName]['fieldSettings'][$fieldName][$pageType]);
                 }
                 continue;
             }
             if ($key == "RTEType") {
                 $fData = $pSet->getRTEType($tableFieldName);
                 if ($fData == "RTECK") {
                     $this->isUseCK = true;
                     $this->jsSettings['tableSettings'][$this->tName]['fieldSettings'][$fieldName][$pageType]['nWidth'] = $pSet->getNCols($tableFieldName);
                     $this->jsSettings['tableSettings'][$this->tName]['fieldSettings'][$fieldName][$pageType]['nHeight'] = $pSet->getNRows($tableFieldName);
                 }
             } elseif ($key == "autoCompleteFields") {
                 $fData = $pSet->getAutoCompleteFields($tableFieldName);
             }
             $isDefault = false;
             if (is_array($fData)) {
                 $isDefault = !count($fData);
             } else {
                 if (!is_array($val['default'])) {
                     $isDefault = $fData === $val['default'];
                 }
             }
             if (!$isDefault) {
                 $this->jsSettings['tableSettings'][$this->tName]['fieldSettings'][$fieldName][$pageType][$val['jsName']] = $fData;
             }
         }
         $this->jsSettings['tableSettings'][$this->tName]['isUseCK'] = $this->isUseCK;
         if (count($this->googleMapCfg) != 0 && $this->googleMapCfg['isUseGoogleMap']) {
             $this->jsSettings['tableSettings'][$this->tName]['isUseGoogleMap'] = true;
             $this->jsSettings['tableSettings'][$this->tName]['googleMapCfg'] = $this->googleMapCfg;
         }
         $lookupTableName = $pSet->getLookupTable($tableFieldName);
         if ($lookupTableName) {
             $this->jsSettings['global']['shortTNames'][$lookupTableName] = GetTableURL($lookupTableName);
         }
         if ($pSet->getEditFormat($tableFieldName) == 'Time') {
             $this->fillTimePickSettings($tableFieldName, "", $pSet, $pageType);
         }
     }
 }
開發者ID:ryanblanchard,項目名稱:Dashboard,代碼行數:56,代碼來源:searchpage_dash.php


注:本文中的ProjectSettings::getFieldData方法示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。