<?php
defined('_JEXEC') or die('Restricted access');
/**
 * Database table object. Inherit more database functions from JTable.
 * Insert, update, delete, check, bind. 
 * 
 * @version    1.0.0
 * @author 	   ARTIO s.r.o., http://www.artio.net
 * @package    Charts
 * @subpackage Tables
 * @copyright  Copyright (C) 2009 ARTIO s.r.o.. All rights reserved.
 * @since      Version 1.0.0 
 *
 */
class TableARTIOFusionChart extends JTable
{
    /**
     * Unique system id
     *
     * @access public
     * @var int
     */
    public $id = 0;
    /**
     * Chart name
     * 
     * @access public 
     * @var string
     */
    public $title = null;
    /**
     * Chart alias - joomla standard for urls  
     *
     * @access public
     * @var string
     */
    public $alias = null;
    /**
     * Category type chart
     *
     * @access public
     * @var string
     */
    public $category = null;
    /**
     * Chart type within the category of
     *
     * @access public
     * @var string
     */
    public $type = null;
    /**
     * Chart created mysql datetime like YYYY-MM-DD HH:MM:SS
     *
     * @access public
     * @var string
     */
    public $created = null;
    /**
     * Creator user id
     *
     * @access public
     * @var int
     */
    public $created_by = null;
    /**
     * Chart modified mysql datetime, like YYYY-MM-DD HH:MM:SS
     * If new chart is in null format - 0000-00-00 00:00:00
     *
     * @access public
     * @var string
     */
    public $modified = null;
    /**
     * Id of user who modified chart, if new chart is 0
     *
     * @public
     * @var int
     */
    public $modified_by = null;
    /**
     * Id of user who just editing chart
     *
     * @access public
     * @var int
     */
    public $checked_out = null;
    /**
     * Time of chart locked by editing - mysql datetime, like YYYY-MM-DD HH:MM:SS
     *
     * @access public 
     * @var string
     */
    public $checked_out_time = null;
    /**
     * Chart setting params, standard joomla params mechanism
     *
     * @access public
     * @var string
     */
    public $params = null;
    /**
     * Chart category params
     *
     * @access public 
     * @var string
     */
    public $categoryParams = null;
    
    /**
     * Chart preview witdh in pixels
     *
     * @access public
     * @var int
     */
    public $width = null;
    /**
     * Chart preview height in pixels
     *
     * @access public
     * @var int
     */
    public $height = null;
    /**
     * Standard JTable object constructor
     *
     * @param JDatabaseMySQL $db Joomla database support object
     */
    function __construct (& $db)
    {
        parent::__construct('#__artiofusioncharts', 'id', $db);
    }
}
?>