<?php
require_once(DIR_FS_ADMIN.DIR_WS_CLASSES.'airline.php');
/**
 * airlines class 
 *
 */
class airlines extends databasetable
{
	/**
	 * initiates the airlines class
	 *
	 */
	function airlines(){
		$this->set_tablename(TABLE_AIRLINES);
		$this->set_index('airlines_id');
		/*
		$this->related_tables = array(
			0=>array('table'=>TABLE_CUSTOMERS_TO_COMPANIES,'key'=>$this->get_index() )
		);
		*/
	}
	
	/**
	 * return a airline object
	 *
	 * @param integer $id
	 * @return object
	 */
	function get_airline($id){
		$values = $this->get_row_by_index($id);
		$airline_instance = new airline( (object) current($values) );
		return $airline_instance;
	}
}
