Location: PHPKode > projects > Neobill > NeoBill0.5.6/widgets/UserTableWidget.class.php
<?php
/**
 * UserTableWidget.class.php
 *
 * This file contains the definition of the UserTableWidget 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
 */

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

		// Load the User Table
		try {
			// Build the table
			$users = load_array_UserDBO( $where );
			foreach( $users as $dbo ) {
				// Put the row into the table
				$this->data[] =
						array( "username" => $dbo->getUsername(),
						"type" => $dbo->getType(),
						"contactname" => $dbo->getContactName(),
						"email" => $dbo->getEmail() );
			}
		}
		catch ( DBNoRowsFoundException $e ) {

		}
	}
}
Return current item: Neobill