Location: PHPKode > projects > Chalange > com_chalange/administrator/models/racetypesadmin.php
<?php
defined( '_JEXEC' ) or die( 'Restricted access' );
jimport('joomla.application.component.model');
 class ChalangeAdminModelRacetypesAdmin extends JModel{
 	var $data;
 	function getRacetypes(){
 		if (empty( $this->data)){
 			$query= 'SELECT * '
 			.'FROM #__gcd_racetypes ';
 			$this->data= $this->_getList($query);
 		}
 		return $this->data;
 	}
 }
?>
Return current item: Chalange