/** * Remove entries from entity batch. * @param array $params * @return CRM_Batch_DAO_EntityBatch */ public static function removeBatchEntity($params) { $entityBatch = new CRM_Batch_DAO_EntityBatch(); $entityBatch->copyValues($params); $entityBatch->delete(); return $entityBatch; }
/** * 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['entity_batch'] =& $fields[$name]; } else { self::$_export[$name] =& $fields[$name]; } } } } return self::$_export; }