Example #1
0
 /**
  * Returns the list of fields that can be imported
  *
  * @param bool $prefix
  *
  * @return array
  */
 static function &import($prefix = false)
 {
     if (!self::$_import) {
         self::$_import = array();
         $fields = self::fields();
         foreach ($fields as $name => $field) {
             if (CRM_Utils_Array::value('import', $field)) {
                 if ($prefix) {
                     self::$_import['participant'] =& $fields[$name];
                 } else {
                     self::$_import[$name] =& $fields[$name];
                 }
             }
         }
     }
     return self::$_import;
 }