Beispiel #1
0
 /**
  * Returns the list of fields that can be exported
  *
  * @param bool $prefix
  *
  * @return array
  */
 static function &export($prefix = false)
 {
   if (!(self::$_export)) {
     self::$_export = array();
     $fields = self::fields();
     foreach($fields as $name => $field) {
       if (CRM_Utils_Array::value('export', $field)) {
         if ($prefix) {
           self::$_export['member_dues_duration'] = & $fields[$name];
         } else {
           self::$_export[$name] = & $fields[$name];
         }
       }
     }
   }
   return self::$_export;
 }
Beispiel #2
0
 public function save() {
     parent::save();
 }