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