Location: PHPKode > projects > Chalange > com_chalange/administrator/models/playeradmin.php
<?php
defined( '_JEXEC' ) or die( 'Restricted access' );
jimport('joomla.application.component.model');
 class ChalangeAdminModelPlayeradmin extends JModel{
 	var $data;
 	function getCategoriesList(){
 		if (empty( $this->data)){
 			$query= 'SELECT * '
 			.'FROM #__gcd_categories ';
 			$this->data= $this->_getList($query);
 		}
 		$aux= array();
 		foreach ($this->data as $v){
 			$aux[]=array('text'=>$v->description,'value'=>$v->id);
 		}
 		return $aux;
 	}
 }
?>
Return current item: Chalange