예제 #1
0
 /**
  * This is a contructor of the class.
  */
 function CRM_Contact_BAO_Household()
 {
     parent::CRM_Contact_DAO_Household();
 }
예제 #2
0
 /**
  * returns the list of fields that can be exported
  *
  * @access public
  * return array
  */
 function &export($prefix = false)
 {
     if (!$GLOBALS['_CRM_CONTACT_DAO_HOUSEHOLD']['_export']) {
         $GLOBALS['_CRM_CONTACT_DAO_HOUSEHOLD']['_export'] = array();
         $fields =& CRM_Contact_DAO_Household::fields();
         foreach ($fields as $name => $field) {
             if (CRM_Utils_Array::value('export', $field)) {
                 if ($prefix) {
                     $GLOBALS['_CRM_CONTACT_DAO_HOUSEHOLD']['_export']['household'] =& $fields[$name];
                 } else {
                     $GLOBALS['_CRM_CONTACT_DAO_HOUSEHOLD']['_export'][$name] =& $fields[$name];
                 }
             }
         }
     }
     return $GLOBALS['_CRM_CONTACT_DAO_HOUSEHOLD']['_export'];
 }