當前位置: 首頁>>代碼示例>>PHP>>正文


PHP Users_Record_Model::getDayStartsPicklistValues方法代碼示例

本文整理匯總了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);
 }
開發者ID:nouphet,項目名稱:vtigercrm-6.0.0-ja,代碼行數:18,代碼來源:PreferenceEdit.php

示例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());
 }
開發者ID:nouphet,項目名稱:vtigercrm-6.0.0-ja,代碼行數:22,代碼來源:Calendar.php

示例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);
 }
開發者ID:cannking,項目名稱:vtigercrm-debug,代碼行數:12,代碼來源:PreferenceDetail.php


注:本文中的Users_Record_Model::getDayStartsPicklistValues方法示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。