/** * Returns all the column names of this table * * @return array */ static function &fields() { if (!self::$_fields) { self::$_fields = array('cart_id' => array('name' => 'id', 'type' => CRM_Utils_Type::T_INT, 'title' => ts('Cart ID'), 'description' => 'Cart Id', 'required' => true), 'user_id' => array('name' => 'user_id', 'type' => CRM_Utils_Type::T_INT, 'title' => ts('Created By'), 'description' => 'FK to civicrm_contact who created this cart', 'FKClassName' => 'CRM_Contact_DAO_Contact'), 'completed' => array('name' => 'completed', 'type' => CRM_Utils_Type::T_BOOLEAN, 'title' => ts('Complete?'))); } return self::$_fields; }
/** * returns all the column names of this table * * @access public * @return array */ static function &fields() { if (!self::$_fields) { self::$_fields = array('cart_id' => array('name' => 'id', 'type' => CRM_Utils_Type::T_INT, 'required' => true), 'user_id' => array('name' => 'user_id', 'type' => CRM_Utils_Type::T_INT, 'FKClassName' => 'CRM_Contact_DAO_Contact'), 'completed' => array('name' => 'completed', 'type' => CRM_Utils_Type::T_BOOLEAN, 'title' => ts('Completed'))); } return self::$_fields; }