示例#1
0
 /**
  * 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), 'premiums_id' => array('name' => 'premiums_id', 'type' => CRM_Utils_Type::T_INT, 'required' => true, 'FKClassName' => 'CRM_Contribute_DAO_Premium'), 'product_id' => array('name' => 'product_id', 'type' => CRM_Utils_Type::T_INT, 'required' => true, 'FKClassName' => 'CRM_Contribute_DAO_Product'), 'weight' => array('name' => 'weight', 'type' => CRM_Utils_Type::T_INT, 'title' => ts('Weight'), 'required' => true), 'financial_type_id' => array('name' => 'financial_type_id', 'type' => CRM_Utils_Type::T_INT, 'title' => ts('Financial Type'), 'default' => 'NULL', 'FKClassName' => 'CRM_Financial_DAO_FinancialType'));
     }
     return self::$_fields;
 }
示例#2
0
 /**
  * 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('Premium Product ID'), 'description' => 'Contribution ID', 'required' => true), 'premiums_id' => array('name' => 'premiums_id', 'type' => CRM_Utils_Type::T_INT, 'title' => ts('Premium'), 'description' => 'Foreign key to premiums settings record.', 'required' => true, 'FKClassName' => 'CRM_Contribute_DAO_Premium'), 'product_id' => array('name' => 'product_id', 'type' => CRM_Utils_Type::T_INT, 'title' => ts('Product'), 'description' => 'Foreign key to each product object.', 'required' => true, 'FKClassName' => 'CRM_Contribute_DAO_Product'), 'weight' => array('name' => 'weight', 'type' => CRM_Utils_Type::T_INT, 'title' => ts('Order'), 'required' => true), 'financial_type_id' => array('name' => 'financial_type_id', 'type' => CRM_Utils_Type::T_INT, 'title' => ts('Financial Type'), 'description' => 'FK to Financial Type.', 'default' => 'NULL', 'FKClassName' => 'CRM_Financial_DAO_FinancialType', 'pseudoconstant' => array('table' => 'civicrm_financial_type', 'keyColumn' => 'id', 'labelColumn' => 'name')));
     }
     return self::$_fields;
 }