当前位置: 首页>>代码示例>>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;未经允许,请勿转载。