private function updateTrailing($pos = 'lft', $base = 0, $add = true)
	{
		// Reposition new values of displaced items
		$query = $this->getQuery();

		$query->update($this->getTableName());
		$query->set([
			$pos => new Value\Raw($pos . ($add ? '+' : '-') . '2'),
		]);
		$query->where($pos, '>=', $base)
		      ->where('id', '!=', $this->id)
		      ->execute();

		return $this;
	}
private function updateTrailing($pos = 'lft', $base = 0, $add = true)
	{
		// Reposition new values of displaced items
		$query = $this->getQuery();

		$query->update($this->getTableName());
		$query->set([
			$pos => new Value\Raw($pos . ($add ? '+' : '-') . '2'),
		]);
		$query->where($pos, '>=', $base)
		      ->where('id', '!=', $this->id)
		      ->execute();

		return $this;
	}
private function updateTrailing ( $ pos = 'lft' , $ base = 0 , $ add = true ) { // Reposition new values of displaced items $ query = $ this -> getQuery ( ) ; $ query -> update ( $ this -> getTableName ( ) ) ; $ query -> set ( [ $ pos => new Value \ Raw ( $ pos . ( $ add ? '+' : '-' ) . '2' ) , ] ) ; $ query -> where ( $ pos , '>=' , $ base ) -> where ( 'id' , '!=' , $ this -> id ) -> execute ( ) ; return $ this ; }
Updates all subsequent vars after new child insertion

@param   string  $pos   The position being updated, whether left or right
@param   int     $base  The base level after which values should be changed
@param   bool    $add   Whether or not we're adding or subtracted from existing
@return  $this
@since   2.1.0
Updates all subsequent vars after new child insertion