public function updateRightValues($first, $last, $delta, $rootVal=null)
    {
        $hasManyRoots = $this->getConfiguration()->hasManyRoots();

        foreach($this->wrappers as $wrapper)
        {
            if(!$hasManyRoots || ($wrapper->getRootValue() == $rootVal))
            {
                if($wrapper->getRightValue() >= $first && ($last === 0 || $wrapper->getRightValue() <= $last))
                {
                    $wrapper->setRightValue($wrapper->getRightValue() + $delta);
                    $wrapper->invalidate();
                }
            }
        }
    }
public function updateRightValues($first, $last, $delta, $rootVal=null)
    {
        $hasManyRoots = $this->getConfiguration()->hasManyRoots();

        foreach($this->wrappers as $wrapper)
        {
            if(!$hasManyRoots || ($wrapper->getRootValue() == $rootVal))
            {
                if($wrapper->getRightValue() >= $first && ($last === 0 || $wrapper->getRightValue() <= $last))
                {
                    $wrapper->setRightValue($wrapper->getRightValue() + $delta);
                    $wrapper->invalidate();
                }
            }
        }
    }
public function updateRightValues ( $ first , $ last , $ delta , $ rootVal = null ) { $ hasManyRoots = $ this -> getConfiguration ( ) -> hasManyRoots ( ) ; foreach ( $ this -> wrappers as $ wrapper ) { if ( ! $ hasManyRoots || ( $ wrapper -> getRootValue ( ) == $ rootVal ) ) { if ( $ wrapper -> getRightValue ( ) >= $ first && ( $ last === 0 || $ wrapper -> getRightValue ( ) <= $ last ) ) { $ wrapper -> setRightValue ( $ wrapper -> getRightValue ( ) + $ delta ) ; $ wrapper -> invalidate ( ) ; } } } }
Internal
Updates the right values of managed nodes

@param int $first first right value to shift
@param int $last last right value to shift, or 0
@param int $delta offset to shift by
@param mixed $rootVal the root value of entities to act upon
Internal Updates the right values of managed nodes