Source code for file /joomla/database/table/category.php
Documentation is available at category.php
* @version $Id: category.php 6529 2007-02-08 06:57:00Z pasamio $
* @package Joomla.Framework
* @copyright Copyright (C) 2005 - 2007 Open Source Matters. All rights reserved.
* @license GNU/GPL, see LICENSE.php
* Joomla! is free software. This version may have been modified pursuant
* to the GNU General Public License, and as distributed it includes or
* is derivative of works licensed under the GNU General Public License or
* other free or open source software licenses.
* See COPYRIGHT.php for copyright notices and details.
// Check to ensure this file is within the rest of the framework
* @package Joomla.Framework
/** @var int Primary key */
/** @var string The menu title for the Category (a short name)*/
/** @var string The full name for the Category*/
* @param database A database connector object
// overloaded check function
// check for existing name
. ' WHERE title = "'.$this->title.'"'
. ' AND section = "'.$this->section.'"'
$this->_db->setQuery( $query );
$xid = intval( $this->_db->loadResult() );
if ($xid && $xid != intval( $this->id )) {
$this->_error = JText::sprintf( 'WARNNAMETRYAGAIN', JText::_( 'Category') );
if(empty($this->name) ||
$this->name ===
$alias ) {