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

insertBefore() public method

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