public function get($id = 'root', $forceload = false)
	{
		if ($id !== 'root')
		{
			$id = (int) $id;

			if ($id == 0)
			{
				$id = 'root';
			}
		}

		// If this $id has not been processed yet, execute the _load method
		if ((!isset($this->_nodes[$id]) && !isset($this->_checkedCategories[$id])) || $forceload)
		{
			$this->_load($id);
		}

		// If we already have a value in _nodes for this $id, then use it.
		if (isset($this->_nodes[$id]))
		{
			return $this->_nodes[$id];
		}
		// If we processed this $id already and it was not valid, then return null.
		elseif (isset($this->_checkedCategories[$id]))
		{
			return;
		}

		return false;
	}
public function get($id = 'root', $forceload = false)
	{
		if ($id !== 'root')
		{
			$id = (int) $id;

			if ($id == 0)
			{
				$id = 'root';
			}
		}

		// If this $id has not been processed yet, execute the _load method
		if ((!isset($this->_nodes[$id]) && !isset($this->_checkedCategories[$id])) || $forceload)
		{
			$this->_load($id);
		}

		// If we already have a value in _nodes for this $id, then use it.
		if (isset($this->_nodes[$id]))
		{
			return $this->_nodes[$id];
		}
		// If we processed this $id already and it was not valid, then return null.
		elseif (isset($this->_checkedCategories[$id]))
		{
			return;
		}

		return false;
	}
public function get ( $ id = 'root' , $ forceload = false ) { if ( $ id !== 'root' ) { $ id = ( int ) $ id ; if ( $ id == 0 ) { $ id = 'root' ; } } // If this $id has not been processed yet, execute the _load method if ( ( ! isset ( $ this -> _nodes [ $ id ] ) && ! isset ( $ this -> _checkedCategories [ $ id ] ) ) || $ forceload ) { $ this -> _load ( $ id ) ; } // If we already have a value in _nodes for this $id, then use it. if ( isset ( $ this -> _nodes [ $ id ] ) ) { return $ this -> _nodes [ $ id ] ; } // If we processed this $id already and it was not valid, then return null. elseif ( isset ( $ this -> _checkedCategories [ $ id ] ) ) { return ; } return false ; }
Loads a specific category and all its children in a JCategoryNode object

@param   mixed    $id         an optional id integer or equal to 'root'
@param   boolean  $forceload  True to force  the _load method to execute

@return  mixed    JCategoryNode object or null if $id is not valid

@since   11.1
Loads a specific category and all its children in a JCategoryNode object