Your IP : 216.73.216.55


Current Path : /home/g/i/t/giteleslfp/www/administrator/components/com_templateck/models/
Upload File :
Current File : /home/g/i/t/giteleslfp/www/administrator/components/com_templateck/models/fonts.php

<?php

/**
 * @name		Template Creator CK
 * @copyright	Copyright (C) since 2011. All rights reserved.
 * @license		GNU General Public License version 2 or later; see LICENSE.txt
 * @author		Cedric Keiflin - http://www.template-creator.com - http://www.joomlack.fr
 */
// No direct access to this file
defined('TCK_LOADED') or die('Restricted access');

jimport('joomla.application.component.modellist');
jimport('joomla.filesystem.file');

class TemplateckModelFonts extends JModelList {

	/**
	 * fonts data array
	 *
	 * @var array
	 */
	var $_data;

	/**
	 * Retrieves the fonts list
	 * @return array Array of objects containing the data from the database
	 */
	function getFonts() {
		// Lets load the data if it doesn't already exist
		if (empty($this->_data)) {

			// constructs the query
			$query = ' SELECT * '
					. ' FROM #__templateck_fonts';

			// retrieves the data
			$this->_data = $this->_getList($query);
		}

		return $this->_data;
	}

}