Location: PHPKode > projects > Chalange > com_chalange/administrator/models/registeredsadmin.php
<?php
defined( '_JEXEC' ) or die( 'Restricted access' );
jimport('joomla.application.component.model');
 class ChalangeAdminModelRegisteredsAdmin extends JModel{
 	function getRegistered($idRace){
		$query= 'SELECT * '
		.'FROM #__gcd_registered WHERE idRace='.$idRace
		.' ORDER BY category, dorsal';
 		$this->data= $this->_getList($query);
 		return $this->data;
 	}
 	function getRaceName($idRace){
 		$query= 'SELECT  nombre, ubicacion '
		.'FROM #__gcd_carreras WHERE id='.$idRace;
 		$this->data= $this->_getList($query);
 		return $this->data[0]->nombre."   (".$this->data[0]->ubicacion.")";
 	}
 }
?>
Return current item: Chalange