Postgres::_alterView PHP Method

_alterView() protected method

Protected method which alter a view SHOULDN'T BE CALLED OUTSIDE OF A TRANSACTION
protected _alterView ( $vwrs, $name, $owner, $schema, $comment ) : -6
$vwrs The view recordSet returned by getView()
$name The new name for the view
$owner The new owner for the view
$comment The comment on the view
return -6
    protected function _alterView($vwrs, $name, $owner, $schema, $comment)
    {
        $this->fieldArrayClean($vwrs->fields);
        // Comment
        if ($this->setComment('VIEW', $vwrs->fields['relname'], '', $comment) != 0) {
            return -4;
        }
        // Owner
        $this->fieldClean($owner);
        $status = $this->alterViewOwner($vwrs, $owner);
        if ($status != 0) {
            return -5;
        }
        // Rename
        $this->fieldClean($name);
        $status = $this->alterViewName($vwrs, $name);
        if ($status != 0) {
            return -3;
        }
        // Schema
        $this->fieldClean($schema);
        $status = $this->alterViewSchema($vwrs, $schema);
        if ($status != 0) {
            return -6;
        }
        return 0;
    }
Postgres