english/administrator/components/com_categories/controllers/categories.php
/**
	 * Rebuild the nested set tree.
	 *
	 * @return	bool	False on failure or error, true on success.
	 * @since	1.6
	 */
Rebuild the nested set tree.
@return      bool    False on failure or error, true on success.
Rebuild the nested set tree . @return bool False on failure or error true on success .
public function rebuild()
	{
		JRequest::checkToken() or jexit(JText::_('JINVALID_TOKEN'));
		$extension = JRequest::getCmd('extension');
		$this->setRedirect(JRoute::_('index.php?option=com_categories&view=categories&extension='.$extension, false));
		$model = $this->getModel();
		if ($model->rebuild()) {
			$this->setMessage(JText::_('COM_CATEGORIES_REBUILD_SUCCESS'));
			return true;
		} else {
			$this->setMessage(JText::_('COM_CATEGORIES_REBUILD_FAILURE'));
			return false;
		}
	}
public function rebuild ( ) { JRequest :: checkToken ( ) or jexit ( JText :: _ ( 'JINVALID_TOKEN' ) ) ; $ extension = JRequest :: getCmd ( 'extension' ) ; $ this -> setRedirect ( JRoute :: _ ( 'index.php?option=com_categories&view=categories&extension=' . $ extension , false ) ) ; $ model = $ this -> getModel ( ) ; if ( $ model -> rebuild ( ) ) { $ this -> setMessage ( JText :: _ ( 'COM_CATEGORIES_REBUILD_SUCCESS' ) ) ; return true ; } else { $ this -> setMessage ( JText :: _ ( 'COM_CATEGORIES_REBUILD_FAILURE' ) ) ; return false ; } }
Rebuild the nested set tree.
Rebuild the nested set tree .
// Initialise variables. // Rebuild succeeded. // Rebuild failed.