本文整理汇总了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);
}