<?php  if ( ! defined('BASEPATH')) exit('No direct script access allowed');
/**
 * ExpressionEngine - by EllisLab
 *
 * @package		ExpressionEngine
 * @author		ExpressionEngine Dev Team
 * @copyright	Copyright (c) 2003 - 2011, EllisLab, Inc.
 * @license		http://expressionengine.com/user_guide/license.html
 * @link		http://expressionengine.com
 * @since		Version 2.0
 * @filesource
 */

// ------------------------------------------------------------------------

/**
 * ExpressionEngine Learning Accessory
 *
 * Currently this Accessory is only available in English, thus it doesn't use any 
 * language files.
 *
 * @package		ExpressionEngine
 * @subpackage	Control Panel
 * @category	Accessories
 * @author		ExpressionEngine Dev Team
 * @link		http://expressionengine.com
 */
class Quick_tips_acc {

	var $name			= 'Quick Tips';
	var $id				= 'quick_tips';
	var $version		= '1.1';
	var $description	= 'Brief tips and hints for ExpressionEngine';
	var $sections		= array();
	var $tips			= array(
								'Tables are sortable.',
								'Forums are an easy way to add functionality',
								'Remember, PHP settings for each Template are honored on a per-Template basis.',
								'Did you know that ExpressionEngine.com has over 75,000 registered members! If we laid down in a line we\'d circle the Earth and then some!',
								'Make sure you assign a status group to all of your channels.',
								'Have you backed up your database lately?',
								'Did you know… that the help button is context sensitive based on where you are in the control panel?',
								'Did you know… that you can view previously sent email from the Communicate tool?',
								'Did you know… that Accessories can be assigned to member groups?  Or even sections of the control panel?',
								'You can use the "disable" parameter to eliminate unneeded queries and improve performance.',
								'Need help? Want to network? Visit the <a rel="external" href="http://anonym.to/?http://expressionengine.com/forums/">forums</a>.',
								'To hide EE tags in your templates you can use the EE comment feature {!—EE Comment—} as opposed to typical HTML comments <!—HTML Comment—>',
								'"Display SQL Queries & Template debugging" is a great way to see under the hood of EE during development.',
								);

	/**
	 * Constructor
	 */
	function __construct()
	{
		
		$this->EE =& get_instance();
		$this->EE->load->helper('array');
	}

	function update()
	{
		return TRUE;
	}

	// --------------------------------------------------------------------

	/**
	 * Set Sections
	 *
	 * Set content for the accessory
	 *
	 * @access	public
	 * @return	void
	 */
	function set_sections()
	{
		$this->sections[$this->name] = $this->_build_tips();
	}

	// --------------------------------------------------------------------

	function _build_tips()
	{
		return random_element($this->tips);
	}

}
// END CLASS

/* End of file acc.quick_tips.php */
/* Location: ./system/expressionengine/accessories/acc.quick_tips.php */