Location: PHPKode > projects > Neobill > NeoBill0.5.6/widgets/TaxRuleTableWidget.class.php
<?php
/**
 * TaxRuleTableWidget.class.php
 *
 * This file contains the definition of the TaxRuleTableWidget class.
 *
 * @package SolidWorks
 * @author John Diamond <hide@address.com>
 * @copyright John Diamond <hide@address.com>
 * @license http://www.opensource.org/licenses/gpl-license.php GNU Public License
 */

/**
 * TaxRuleTableWidget
 *
 * @package SolidWorks
 * @author John Diamond <hide@address.com>
 */
class TaxRuleTableWidget extends TableWidget {
	/**
	 * Initialize the Table
	 *
	 * @param array $params Parameters from the {form_table} tag
	 */
	public function init( $params ) {
		parent::init( $params );

		// Load the TaxRule Table
		try {
			// Build the table
			$taxRules = load_array_TaxRuleDBO( $where );
			foreach ( $taxRules as $dbo ) {
				// Put the row into the table
				$this->data[] =
						array( "id" => $dbo->getID(),
						"country" => $dbo->getCountry(),
						"allstates" => $dbo->getAllStates(),
						"state" => $dbo->getState(),
						"description" => $dbo->getDescription(),
						"rate" => $dbo->getRate() );
			}
		}
		catch ( DBNoRowsFoundException $e ) {

		}
	}
}
Return current item: Neobill