administrator/components/com_categories/models/category.php
protected function generateNewTitle($parent_id, $alias, $title)
	{
		// Alter the title & alias
		$table = $this->getTable();

		while ($table->load(array('alias' => $alias, 'parent_id' => $parent_id)))
		{
			$title = JString::increment($title);
			$alias = JString::increment($alias, 'dash');
		}

		return array($title, $alias);
	}
protected function generateNewTitle($parent_id, $alias, $title)
	{
		// Alter the title & alias
		$table = $this->getTable();

		while ($table->load(array('alias' => $alias, 'parent_id' => $parent_id)))
		{
			$title = JString::increment($title);
			$alias = JString::increment($alias, 'dash');
		}

		return array($title, $alias);
	}
protected function generateNewTitle ( $ parent_id , $ alias , $ title ) { // Alter the title & alias $ table = $ this -> getTable ( ) ; while ( $ table -> load ( array ( 'alias' => $ alias , 'parent_id' => $ parent_id ) ) ) { $ title = JString :: increment ( $ title ) ; $ alias = JString :: increment ( $ alias , 'dash' ) ; } return array ( $ title , $ alias ) ; }
Method to change the title & alias.

@param   integer  $parent_id  The id of the parent.
@param   string   $alias      The alias.
@param   string   $title      The title.

@return  array    Contains the modified title and alias.

@since   1.7
Method to change the title & alias .