Beispiel #1
0
 function _getFields()
 {
     $memberFields = array('first_name', 'last_name', 'gender', 'age_bracket', 'congregationid', 'email', 'mobile_tel', 'work_tel', 'familyid', 'family_name', 'address_street', 'address_suburb', 'address_state', 'address_postcode', 'home_tel');
     $p = new Person();
     foreach ($p->_getFields() as $k => $v) {
         if (in_array($k, $memberFields)) {
             $res[$k] = $v;
         }
     }
     $f = new Family();
     foreach ($f->_getFields() as $k => $v) {
         if (in_array($k, $memberFields)) {
             $res[$k] = $v;
         }
     }
     return $res;
 }