Phalcon\Mvc\Model\Behavior\NestedSet::insertAfter PHP Method

insertAfter() public method

Inserts node as next sibling of target.
public insertAfter ( Phalcon\Mvc\ModelInterface $target, array $attributes = null ) : boolean
$target Phalcon\Mvc\ModelInterface the target.
$attributes array list of attributes.
return boolean
    public function insertAfter(ModelInterface $target, array $attributes = null)
    {
        return $this->addNode($target, $target->{$this->rightAttribute} + 1, 0, $attributes);
    }