Пример #1
0
 /**
  * @return array
  */
 public function setDefaultValues()
 {
     $defaults = array();
     if ($this->_indexID && $this->_action & CRM_Core_Action::UPDATE) {
         $params = array('id' => $this->_indexID);
         CRM_Core_BAO_Persistent::retrieve($params, $defaults);
         if (CRM_Utils_Array::value('is_config', $defaults) == 1) {
             $defaults['data'] = implode(',', $defaults['data']);
         }
     }
     return $defaults;
 }