Пример #1
0
 function preProcess()
 {
     require_once 'CRM/Core/BAO/Meeting.php';
     parent::preProcess();
     $params = array('id' => $this->_id);
     $defaults = array();
     $bao =& new CRM_Core_BAO_Meeting();
     $bao->retrieve($params, $defaults);
     if (CRM_Utils_Array::value('scheduled_date_time', $defaults)) {
         $this->assign('scheduled_date_time', $defaults['scheduled_date_time']);
     }
 }
Пример #2
0
 function preProcess()
 {
     parent::preProcess();
     $params = array('id' => $this->_id);
     $defaults = array();
     $bao =& new CRM_Core_BAO_OtherActivity();
     $bao->retrieve($params, $defaults);
     $this->description = CRM_Core_BAO_ActivityType::getActivityDescription();
     $this->assign('ActivityTypeDescription', $this->description);
     if (CRM_Utils_Array::value('scheduled_date_time', $defaults)) {
         $this->assign('scheduled_date_time', $defaults['scheduled_date_time']);
     }
 }