本文整理匯總了PHP中Vtiger_Field_Model::getFieldInfo方法的典型用法代碼示例。如果您正苦於以下問題:PHP Vtiger_Field_Model::getFieldInfo方法的具體用法?PHP Vtiger_Field_Model::getFieldInfo怎麽用?PHP Vtiger_Field_Model::getFieldInfo使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類Vtiger_Field_Model
的用法示例。
在下文中一共展示了Vtiger_Field_Model::getFieldInfo方法的2個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。
示例1: getFieldInfo
/**
* Function to get the field details
* @return <Array> - array of field values
*/
public function getFieldInfo()
{
parent::getFieldInfo();
//Change the default search operator
if ($this->get('name') == 'date_start') {
$request = new Vtiger_Request($_REQUEST, $_REQUEST);
if ($request->has('search_params')) {
$searchParams = $request->get('search_params');
if (!empty($searchParams)) {
foreach ($searchParams[0] as $value) {
if ($value[0] == 'date_start') {
$this->fieldInfo['searchOperator'] = $value[1];
}
}
}
}
}
return $this->fieldInfo;
}
示例2: getFieldInfo
/**
* Function to get the field details
* @return <Array> - array of field values
*/
public function getFieldInfo()
{
$fieldInfo = parent::getFieldInfo();
$fieldInfo['isQuickCreateDisabled'] = $this->isQuickCreateOptionDisabled();
$fieldInfo['isSummaryField'] = $this->isSummaryField();
$fieldInfo['isSummaryFieldDisabled'] = $this->isSummaryFieldOptionDisabled();
$fieldInfo['isMassEditDisabled'] = $this->isMassEditOptionDisabled();
$fieldInfo['isDefaultValueDisabled'] = $this->isDefaultValueOptionDisabled();
return $fieldInfo;
}