예제 #1
0
 /**
  * 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;
 }
예제 #2
0
파일: EntityBatch.php 프로젝트: kidaa30/yes
 /**
  * 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;
 }