NestedSetsBehavior.php
public function insertBefore($node, $runValidation = true, $attributes = null) {
        $this->operation = self::OPERATION_INSERT_BEFORE;
        $this->node = $node;

        return $this->owner->save($runValidation, $attributes);
    }
public function insertBefore($node, $runValidation = true, $attributes = null) {
        $this->operation = self::OPERATION_INSERT_BEFORE;
        $this->node = $node;

        return $this->owner->save($runValidation, $attributes);
    }
public function insertBefore ( $ node , $ runValidation = true , $ attributes = null ) { $ this -> operation = self :: OPERATION_INSERT_BEFORE ; $ this -> node = $ node ; return $ this -> owner -> save ( $ runValidation , $ attributes ) ; }
Creates a node as the previous sibling of the target node if the active
record is new or moves it as the previous sibling of the target node.
@param ActiveRecord $node
@param boolean $runValidation
@param array $attributes
@return boolean
Creates a node as the previous sibling of the target node if the active record is new or moves it as the previous sibling of the target node .