cvs: pear /MDB/doc Modules_Manager_skeleton.php skeleton.php

From: Date: Sun, 19 Jan 2003 11:14:07 +0000
Subject: cvs: pear /MDB/doc Modules_Manager_skeleton.php skeleton.php
Groups: php.pear.cvs 
Request: Send a blank email to pear-cvs+get-8407@lists.php.net to get a copy of this message
lsmith Sun Jan 19 06:14:07 2003 EDT Modified files: /pear/MDB/doc skeleton.php Modules_Manager_skeleton.php Log: - changed default value for $rownum in fetchInto() - cs fixes Index: pear/MDB/doc/skeleton.php diff -u pear/MDB/doc/skeleton.php:1.8 pear/MDB/doc/skeleton.php:1.9 --- pear/MDB/doc/skeleton.php:1.8 Thu Jan 16 11:08:07 2003 +++ pear/MDB/doc/skeleton.php Sun Jan 19 06:14:07 2003 @@ -42,7 +42,7 @@ // | Author: YOUR NAME <YOUR EMAIL> | // +----------------------------------------------------------------------+ // -// $Id: skeleton.php,v 1.8 2003/01/16 16:08:07 lsmith Exp $ +// $Id: skeleton.php,v 1.9 2003/01/19 11:14:07 lsmith Exp $ // // This is just a skeleton MDB driver. @@ -63,7 +63,7 @@ if (!defined('MDB_XXX_INCLUDED')) { define('MDB_XXX_INCLUDED', 1); -require_once 'MDB/Common.php'; +require_once('MDB/Common.php'); /** * MDB XXX driver @@ -103,15 +103,15 @@ function MDB_xxx($dsninfo = NULL, $options = NULL) { if(MDB::isError($common_contructor = $this->MDB_common($dsninfo, $options))) { - return $common_contructor; + return($common_contructor); } $this->phptype = 'xxx'; $this->dbsyntax = 'xxx'; if (PEAR::isError(PEAR::loadExtension($this->phptype))) { - return PEAR::raiseError(NULL, MDB_ERROR_NOT_FOUND, + return(PEAR::raiseError(NULL, MDB_ERROR_NOT_FOUND, NULL, NULL, 'extension '.$this->phptype.' is not compiled into PHP', - 'MDB_Error', TRUE); + 'MDB_Error', TRUE)); } // most of the following codes needs to be taken from the corresponding Metabase driver setup() methods @@ -734,7 +734,7 @@ * @return int data array on success, a MDB error on failure * @access public */ - function fetchInto($result, $fetchmode = MDB_FETCHMODE_DEFAULT, $rownum = NULL) + function fetchInto($result, $fetchmode = MDB_FETCHMODE_DEFAULT, $rownum = 0) { // take this from the corresponding Metabase driver: FetchResultArray() } Index: pear/MDB/doc/Modules_Manager_skeleton.php diff -u pear/MDB/doc/Modules_Manager_skeleton.php:1.4 pear/MDB/doc/Modules_Manager_skeleton.php:1.5 --- pear/MDB/doc/Modules_Manager_skeleton.php:1.4 Tue Nov 12 18:42:04 2002 +++ pear/MDB/doc/Modules_Manager_skeleton.php Sun Jan 19 06:14:07 2003 @@ -42,7 +42,7 @@ // | Author: YOUR NAME <YOUR EMAIL> | // +----------------------------------------------------------------------+ // -// $Id: Modules_Manager_skeleton.php,v 1.4 2002/11/12 23:42:04 lsmith Exp $ +// $Id: Modules_Manager_skeleton.php,v 1.5 2003/01/19 11:14:07 lsmith Exp $ // // This is just a skeleton MDB driver. @@ -64,7 +64,7 @@ { define('MDB_MANAGER_XXX_INCLUDED',1); -require_once 'MDB/Modules/Manager/Common.php'; +require_once('MDB/Modules/Manager/Common.php'); /** * MDB Xxx driver for the management modules

« previous php.pear.cvs (#8407) next »