示例#1
0
文件: Batch.php 项目: kidaa30/yes
 /**
  * Returns all the column names of this table
  *
  * @return array
  */
 static function &fields()
 {
     if (!self::$_fields) {
         self::$_fields = array('id' => array('name' => 'id', 'type' => CRM_Utils_Type::T_INT, 'title' => ts('Batch ID'), 'description' => 'Unique Address ID', 'required' => true), 'name' => array('name' => 'name', 'type' => CRM_Utils_Type::T_STRING, 'title' => ts('Batch Name'), 'description' => 'Variable name/programmatic handle for this batch.', 'maxlength' => 64, 'size' => CRM_Utils_Type::BIG, 'html' => array('type' => 'Text')), 'title' => array('name' => 'title', 'type' => CRM_Utils_Type::T_STRING, 'title' => ts('Batch Title'), 'description' => 'Friendly Name.', 'maxlength' => 64, 'size' => CRM_Utils_Type::BIG, 'html' => array('type' => 'Text')), 'description' => array('name' => 'description', 'type' => CRM_Utils_Type::T_TEXT, 'title' => ts('Batch Description'), 'description' => 'Description of this batch set.', 'rows' => 4, 'cols' => 80, 'html' => array('type' => 'TextArea')), 'created_id' => array('name' => 'created_id', 'type' => CRM_Utils_Type::T_INT, 'title' => ts('Batch Created By'), 'description' => 'FK to Contact ID', 'FKClassName' => 'CRM_Contact_DAO_Contact'), 'created_date' => array('name' => 'created_date', 'type' => CRM_Utils_Type::T_DATE + CRM_Utils_Type::T_TIME, 'title' => ts('Batch Created Date'), 'description' => 'When was this item created', 'html' => array('type' => 'Select Date')), 'modified_id' => array('name' => 'modified_id', 'type' => CRM_Utils_Type::T_INT, 'title' => ts('Batch Modified By'), 'description' => 'FK to Contact ID', 'FKClassName' => 'CRM_Contact_DAO_Contact'), 'modified_date' => array('name' => 'modified_date', 'type' => CRM_Utils_Type::T_DATE + CRM_Utils_Type::T_TIME, 'title' => ts('Batch Modified Date'), 'description' => 'When was this item created'), 'saved_search_id' => array('name' => 'saved_search_id', 'type' => CRM_Utils_Type::T_INT, 'title' => ts('Batch Smart Group'), 'description' => 'FK to Saved Search ID', 'FKClassName' => 'CRM_Contact_DAO_SavedSearch', 'html' => array('type' => 'Autocomplete-Select')), 'status_id' => array('name' => 'status_id', 'type' => CRM_Utils_Type::T_INT, 'title' => ts('Batch Status'), 'description' => 'fk to Batch Status options in civicrm_option_values', 'required' => true, 'html' => array('type' => 'Select'), 'pseudoconstant' => array('optionGroupName' => 'batch_status', 'optionEditPath' => 'civicrm/admin/options/batch_status')), 'type_id' => array('name' => 'type_id', 'type' => CRM_Utils_Type::T_INT, 'title' => ts('Batch Type'), 'description' => 'fk to Batch Type options in civicrm_option_values', 'html' => array('type' => 'Select'), 'pseudoconstant' => array('optionGroupName' => 'batch_type', 'optionEditPath' => 'civicrm/admin/options/batch_type')), 'mode_id' => array('name' => 'mode_id', 'type' => CRM_Utils_Type::T_INT, 'title' => ts('Batch Mode'), 'description' => 'fk to Batch mode options in civicrm_option_values', 'html' => array('type' => 'Select'), 'pseudoconstant' => array('optionGroupName' => 'batch_mode', 'optionEditPath' => 'civicrm/admin/options/batch_mode')), 'total' => array('name' => 'total', 'type' => CRM_Utils_Type::T_MONEY, 'title' => ts('Batch Total'), 'description' => 'Total amount for this batch.', 'precision' => array(20, 2), 'html' => array('type' => 'Text')), 'item_count' => array('name' => 'item_count', 'type' => CRM_Utils_Type::T_INT, 'title' => ts('Batch Number of Items'), 'description' => 'Number of items in a batch.', 'html' => array('type' => 'Text')), 'payment_instrument_id' => array('name' => 'payment_instrument_id', 'type' => CRM_Utils_Type::T_INT, 'title' => ts('Batch Payment Instrument'), 'description' => 'fk to Payment Instrument options in civicrm_option_values', 'html' => array('type' => 'Select'), 'pseudoconstant' => array('optionGroupName' => 'payment_instrument', 'optionEditPath' => 'civicrm/admin/options/payment_instrument')), 'exported_date' => array('name' => 'exported_date', 'type' => CRM_Utils_Type::T_DATE + CRM_Utils_Type::T_TIME, 'title' => ts('Batch Exported Date')), 'data' => array('name' => 'data', 'type' => CRM_Utils_Type::T_LONGTEXT, 'title' => ts('Batch Data'), 'description' => 'cache entered data'));
     }
     return self::$_fields;
 }
示例#2
0
文件: Batch.php 项目: hguru/224Civi
 /**
  * returns all the column names of this table
  *
  * @access public
  * @return array
  */
 static function &fields()
 {
     if (!self::$_fields) {
         self::$_fields = array('id' => array('name' => 'id', 'type' => CRM_Utils_Type::T_INT, 'required' => true), 'name' => array('name' => 'name', 'type' => CRM_Utils_Type::T_STRING, 'title' => ts('Name'), 'maxlength' => 64, 'size' => CRM_Utils_Type::BIG), 'title' => array('name' => 'title', 'type' => CRM_Utils_Type::T_STRING, 'title' => ts('Title'), 'maxlength' => 64, 'size' => CRM_Utils_Type::BIG), 'description' => array('name' => 'description', 'type' => CRM_Utils_Type::T_TEXT, 'title' => ts('Description'), 'rows' => 4, 'cols' => 80), 'created_id' => array('name' => 'created_id', 'type' => CRM_Utils_Type::T_INT, 'FKClassName' => 'CRM_Contact_DAO_Contact'), 'created_date' => array('name' => 'created_date', 'type' => CRM_Utils_Type::T_DATE + CRM_Utils_Type::T_TIME, 'title' => ts('Created Date')), 'modified_id' => array('name' => 'modified_id', 'type' => CRM_Utils_Type::T_INT, 'FKClassName' => 'CRM_Contact_DAO_Contact'), 'modified_date' => array('name' => 'modified_date', 'type' => CRM_Utils_Type::T_DATE + CRM_Utils_Type::T_TIME, 'title' => ts('Modified Date')), 'saved_search_id' => array('name' => 'saved_search_id', 'type' => CRM_Utils_Type::T_INT, 'FKClassName' => 'CRM_Contact_DAO_SavedSearch'), 'status_id' => array('name' => 'status_id', 'type' => CRM_Utils_Type::T_INT, 'required' => true, 'pseudoconstant' => array('optionGroupName' => 'batch_status')), 'type_id' => array('name' => 'type_id', 'type' => CRM_Utils_Type::T_INT, 'pseudoconstant' => array('optionGroupName' => 'batch_type')), 'mode_id' => array('name' => 'mode_id', 'type' => CRM_Utils_Type::T_INT, 'pseudoconstant' => array('optionGroupName' => 'batch_mode')), 'total' => array('name' => 'total', 'type' => CRM_Utils_Type::T_MONEY, 'title' => ts('Total')), 'item_count' => array('name' => 'item_count', 'type' => CRM_Utils_Type::T_INT, 'title' => ts('Item Count')), 'payment_instrument_id' => array('name' => 'payment_instrument_id', 'type' => CRM_Utils_Type::T_INT, 'pseudoconstant' => array('optionGroupName' => 'payment_instrument')), 'exported_date' => array('name' => 'exported_date', 'type' => CRM_Utils_Type::T_DATE + CRM_Utils_Type::T_TIME, 'title' => ts('Exported Date')), 'data' => array('name' => 'data', 'type' => CRM_Utils_Type::T_LONGTEXT, 'title' => ts('Data')));
     }
     return self::$_fields;
 }