本文整理匯總了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);
}
示例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);
}
示例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);
}
}
}