コード例 #1
0
ファイル: Note.php プロジェクト: bhirsch/voipdrupal-4.7-1.0
 /**
  * This function sets the default values for the form. Note that in edit/view mode
  * the default values are retrieved from the database
  * 
  * @access public
  * @return None
  */
 function setDefaultValues()
 {
     $defaults = array();
     if ($this->_action & CRM_CORE_ACTION_UPDATE) {
         if (isset($this->_id)) {
             $defaults['note'] = CRM_Core_BAO_Note::getNoteText($this->_id);
         }
     }
     return $defaults;
 }
コード例 #2
0
ファイル: Note.php プロジェクト: ksecor/civicrm
 /**
  * This function sets the default values for the form. Note that in edit/view mode
  * the default values are retrieved from the database
  * 
  * @access public
  * @return None
  */
 function setDefaultValues()
 {
     $defaults = array();
     if ($this->_action & CRM_Core_Action::UPDATE) {
         if (isset($this->_id)) {
             $defaults['note'] = CRM_Core_BAO_Note::getNoteText($this->_id);
             $defaults['subject'] = CRM_Core_BAO_Note::getNoteSubject($this->_id);
         }
     }
     return $defaults;
 }