本文整理匯總了PHP中Users_Record_Model::getDayStartsPicklistValues方法的典型用法代碼示例。如果您正苦於以下問題:PHP Users_Record_Model::getDayStartsPicklistValues方法的具體用法?PHP Users_Record_Model::getDayStartsPicklistValues怎麽用?PHP Users_Record_Model::getDayStartsPicklistValues使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類Users_Record_Model
的用法示例。
在下文中一共展示了Users_Record_Model::getDayStartsPicklistValues方法的3個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。
示例1: process
public function process(Vtiger_Request $request)
{
$moduleName = $request->getModule();
$recordId = $request->get('record');
if (!empty($recordId)) {
$recordModel = Vtiger_Record_Model::getInstanceById($recordId, $moduleName);
} else {
$recordModel = Vtiger_Record_Model::getCleanInstance($moduleName);
}
$recordStructureInstance = Vtiger_RecordStructure_Model::getInstanceFromRecordModel($recordModel, Vtiger_RecordStructure_Model::RECORD_STRUCTURE_MODE_EDIT);
$dayStartPicklistValues = Users_Record_Model::getDayStartsPicklistValues($recordStructureInstance->getStructure());
$viewer = $this->getViewer($request);
$viewer->assign("DAY_STARTS", Zend_Json::encode($dayStartPicklistValues));
$viewer->assign('IMAGE_DETAILS', $recordModel->getImageDetails());
$viewer->assign('TAG_CLOUD', $recordModel->getTagCloudStatus());
$viewer->assign('USER_MODEL', Users_Record_Model::getCurrentUserModel());
parent::process($request);
}
示例2: getCalendarSettings
public function getCalendarSettings(Vtiger_Request $request)
{
$viewer = $this->getViewer($request);
$currentUserModel = Users_Record_Model::getCurrentUserModel();
$module = $request->getModule();
$detailViewModel = Vtiger_DetailView_Model::getInstance('Users', $currentUserModel->id);
$userRecordStructure = Vtiger_RecordStructure_Model::getInstanceFromRecordModel($detailViewModel->getRecord(), Vtiger_RecordStructure_Model::RECORD_STRUCTURE_MODE_EDIT);
$recordStructure = $userRecordStructure->getStructure();
$allUsers = Users_Record_Model::getAll(true);
$sharedUsers = Calendar_Module_Model::getCaledarSharedUsers($currentUserModel->id);
$sharedType = Calendar_Module_Model::getSharedType($currentUserModel->id);
$dayStartPicklistValues = Users_Record_Model::getDayStartsPicklistValues($recordStructure);
$viewer->assign('CURRENTUSER_MODEL', $currentUserModel);
$viewer->assign('SHAREDUSERS', $sharedUsers);
$viewer->assign("DAY_STARTS", Zend_Json::encode($dayStartPicklistValues));
$viewer->assign('ALL_USERS', $allUsers);
$viewer->assign('RECORD_STRUCTURE', $recordStructure);
$viewer->assign('MODULE', $module);
$viewer->assign('RECORD', $currentUserModel->id);
$viewer->assign('SHAREDTYPE', $sharedType);
$viewer->view('CalendarSettings.tpl', $request->getModule());
}
示例3: process
public function process(Vtiger_Request $request)
{
$recordId = $request->get('record');
$moduleName = $request->getModule();
$recordModel = Vtiger_Record_Model::getInstanceById($recordId, $moduleName);
$recordStructureInstance = Vtiger_RecordStructure_Model::getInstanceFromRecordModel($recordModel, Vtiger_RecordStructure_Model::RECORD_STRUCTURE_MODE_EDIT);
$dayStartPicklistValues = Users_Record_Model::getDayStartsPicklistValues($recordStructureInstance->getStructure());
$viewer = $this->getViewer($request);
$viewer->assign("DAY_STARTS", Zend_Json::encode($dayStartPicklistValues));
$viewer->assign('IMAGE_DETAILS', $recordModel->getImageDetails());
return parent::process($request);
}