Location: PHPKode > projects > injooosm > administrator/components/com_injooosm/tables/osm_files.php
<?php
/**
 * Joomla! 1.5 component injooosm
 *
 * @version $Id: osm_files.php 2009-11-22 14:03:00$
 * @author Christian Knorr
 * @package injooosm
 * @subpackage backend
 * @license GNU/GPL
 * @filesource
 *
 */

// no direct access
defined('_JEXEC') or die('Restricted access');

// Include library dependencies
jimport('joomla.filter.input');

/**
* Table class
*
*/
class TableOSM_files extends JTable  {
    
	var $id			= NULL;
	var $uid		= NULL;
	var $catid		= NULL;
	var $title		= NULL;
	var $file		= NULL;
	var $terrain		= NULL;
	var $description	= NULL;
	var $published		= NULL;
	var $date		= NULL;
	var $hits		= NULL;
	var $checked_out	= NULL;
	var $start_n		= NULL;
	var $start_e		= NULL;
	var $distance		= NULL;
	var $ele_asc		= NULL;
	var $ele_desc		= NULL;
	var $level		= NULL;
	var $access		= NULL;
	var $istrack		= NULL;
	var $iswp		= NULL;
	var $isroute		= NULL;


    /**
     *
     * @param object $db 
     */
    function __construct(& $db) {
        parent::__construct('#__osm_files', 'id', $db);
    }

    /**
     *
     * @param array $array
     * @param string<type> $ignore
     * @return object
     */
    function bind($array, $ignore = '')
    {
        if (key_exists( 'params', $array ) && is_array( $array['params'] ))
        {
            $registry = new JRegistry();
            $registry->loadArray($array['params']);
            $array['params'] = $registry->toString();
        }

        return parent::bind($array, $ignore);
    }
	/**
         *
         * @return boolean
         */
	function check()
	{
		jimport( 'joomla.filter.output' );
		if(empty($this->alias)) {
				$this->alias = $this->title;
		}
		$this->alias = JFilterOutput::stringURLSafe($this->alias);
	 
		/* All your other checks */
		return true;
	}

}
Return current item: injooosm