}
/* ----------------------------------------------------------------------
-** int ifx_(p)connect(string $database,string $userid,string $password)
+** int ifx_(p)connect(string database, string userid, string password)
**
** connects to $database (db@server syntax) using $userid and $password
**
}
-/* {{{ proto int ifx_connect([string database[, string userid[, string password]]])
- connects to database using userid/password, returns connection id */
+/* {{{ proto int ifx_connect([string database [, string userid [, string password]]])
+ Connects to database using userid/password, returns connection id */
PHP_FUNCTION(ifx_connect)
{
php3_ifx_do_connect(INTERNAL_FUNCTION_PARAM_PASSTHRU,0);
}
/* }}} */
-/* {{{ proto int ifx_pconnect([string database[, string userid[, string password]]])
- connects to database using userid/password, returns connection id */
+/* {{{ proto int ifx_pconnect([string database [, string userid [, string password]]])
+ Connects to database using userid/password, returns connection id */
PHP_FUNCTION(ifx_pconnect)
{
php3_ifx_do_connect(INTERNAL_FUNCTION_PARAM_PASSTHRU,1);
}
/* ----------------------------------------------------------------------
-** int ifx_close(int $connid)
+** int ifx_close(int connid)
**
-** closes connection $connid
+** closes connection connid
** always returns TRUE
** ----------------------------------------------------------------------
*/
/* {{{ proto int ifx_close(int connid)
- close informix connection */
+ Close informix connection */
PHP_FUNCTION(ifx_close)
{
pval **ifx_link = NULL;
/* }}} */
/* ----------------------------------------------------------------------
-** int ifx_query(string $query, int $connid,
-** int $cursortype, $blobidarray)
-** $cursortype and $blobidarray are optional
+** int ifx_query(string query, int connid
+** [, int cursortype] [, array blobidarray])
+** cursortype and blobidarray are optional
**
-** executes query $query on connection $connid
+** executes query query on connection connid
** for select queries a cursor is declared and opened
** non-select queries are "execute immediate"
** select queries accept an optional cursortype param:
** ----------------------------------------------------------------------
*/
-/* {{{ proto int ifx_query(string query, int connid, [int cursortype], [array idarray])
- perform a query on a given connection */
+/* {{{ proto int ifx_query(string query, int connid [, int cursortype] [, array idarray])
+ Perform a query on a given connection */
PHP_FUNCTION(ifx_query)
{
pval **query,**ifx_link, **cursortype, **dummy;
/* ----------------------------------------------------------------------
-** int ifx_prepare(string $query, int $connid,
-** int $cursortype, array $blobidarry)
+** int ifx_prepare(string query, int connid,
+** [, int cursortype] [, array blobidarry])
**
** $hold, $scroll are optional and valid only for select queries
** $blobidarray is optional, an array of blob id's
** ----------------------------------------------------------------------
*/
-/* {{{ proto int ifx_prepare(string query, int connid, [int cursortype], [array idarray])
- prepare a query on a given connection */
+/* {{{ proto int ifx_prepare(string query, int connid [, int cursortype] [, array idarray])
+ Prepare a query on a given connection */
PHP_FUNCTION(ifx_prepare)
{
/* }}} */
/* ----------------------------------------------------------------------
-** int ifx_do(int $resultid)
+** int ifx_do(int resultid)
**
** executes a previously prepared query or opens a cursor for it
**
*/
/* {{{ proto int ifx_do(int resultid)
- executes a previously prepared query or opens a cursor for it */
+ Executes a previously prepared query or opens a cursor for it */
PHP_FUNCTION(ifx_do)
{
pval **result;
** ----------------------------------------------------------------------
*/
-/* {{{ proto string ifx_error();
- returns the Informix error codes (SQLSTATE & SQLCODE) */
+/* {{{ proto string ifx_error([int connection_id]);
+ Returns the Informix error codes (SQLSTATE & SQLCODE) */
PHP_FUNCTION(ifx_error)
{
pval **ifx_link;
*/
/* {{{ proto string ifx_errormsg([int errorcode])
- returns the Informix errormessage associated with */
+ Returns the Informix errormessage associated with */
PHP_FUNCTION(ifx_errormsg)
{
pval **errcode;
/* }}} */
/* --------------------------------------------------------------
-** int ifx_affected_rows(int $resultid)
+** int ifx_affected_rows(int resultid)
**
** returns the number of rows affected by query $resultid
**
*/
/* {{{ proto int ifx_affected_rows(int resultid)
- returns the number of rows affected by query identified by resultid */
+ Returns the number of rows affected by query identified by resultid */
PHP_FUNCTION(ifx_affected_rows)
{
pval **result;
/* }}} */
/* ----------------------------------------------------------------------
-** array ifx_fetch_row(int $resultid, [mixed $position])
+** array ifx_fetch_row(int resultid [, mixed $position])
**
-** fetches the next row, or if using a scroll cursor, and $position
-** is present, the row as given in $position, into an associative
+** fetches the next row, or if using a scroll cursor, and position
+** is present, the row as given in position, into an associative
** array with the fieldnames as key
**
** returns FALSE on error
**
-** $position can be : "FIRST", "NEXT", "LAST", "PREVIOUS", "CURRENT"
+** position can be : "FIRST", "NEXT", "LAST", "PREVIOUS", "CURRENT"
** or an absolute row number
** ----------------------------------------------------------------------
*/
-/* {{{ proto array ifx_fetch_row(int resultid, [mixed position])
- fetches the next row or <position> row if using a scroll cursor */
+/* {{{ proto array ifx_fetch_row(int resultid [, mixed position])
+ Fetches the next row or <position> row if using a scroll cursor */
PHP_FUNCTION(ifx_fetch_row)
{
pval **result, **position;
/* ----------------------------------------------------------------------
-** int ifx_htmltbl_result(int $resultid, [string $htmltableoptions])
+** int ifx_htmltbl_result(int resultid [, string htmltableoptions])
**
-** formats all rows of the $resultid query into a html table
+** formats all rows of the resultid query into a html table
** the optional second argument is a string of <table> tag options
**
** returns the number of rows printed or FALSE on error
** ----------------------------------------------------------------------
*/
-/* {{{ proto int ifx_htmltbl_result(int resultid, [string htmltableoptions])
- formats all rows of the $resultid query into a html table */
+/* {{{ proto int ifx_htmltbl_result(int resultid [, string htmltableoptions])
+ Formats all rows of the resultid query into a html table */
PHP_FUNCTION(ifx_htmltbl_result)
{
pval **result, **arg2;
/* }}} */
/* ----------------------------------------------------------------------
-** array ifx_fieldtypes(int $resultid)
+** array ifx_fieldtypes(int resultid)
**
** returns an associative array with fieldnames as key
** and SQL fieldtypes as data for query $resultid
/* {{{ proto array ifx_fieldtypes(int resultid)
- returns an associative array with fieldnames as key for query <resultid> */
+ Returns an associative array with fieldnames as key for query <resultid> */
PHP_FUNCTION(ifx_fieldtypes)
{
pval **result;
/* }}} */
/* ----------------------------------------------------------------------
-** array ifx_fieldproperties(int $resultid)
+** array ifx_fieldproperties(int resultid)
**
** returns an associative array with fieldnames as key
** and SQL fieldproperties as data for query $resultid
*/
/* {{{ proto array ifx_fieldproperties(int resultid)
- returns an associative for query <resultid> array with fieldnames as key */
+ Returns an associative for query <resultid> array with fieldnames as key */
PHP_FUNCTION(ifx_fieldproperties)
{
pval **result;
/* --------------------------------------------------------------
-** int ifx_num_rows(int $resultid)
+** int ifx_num_rows(int resultid)
**
-** returns the number of rows already fetched for query $resultid
+** returns the number of rows already fetched for query resultid
**
** ---------------------------------------------------------------
*/
/* {{{ proto int ifx_num_rows(int resultid)
- returns the number of rows already fetched for query identified by resultid */
+ Returns the number of rows already fetched for query identified by resultid */
PHP_FUNCTION(ifx_num_rows)
{
pval **result;
/* --------------------------------------------------------------
-** int ifx_getsqlca(int $resultid)
+** int ifx_getsqlca(int resultid)
**
-** returns the sqlerrd[] fields of the sqlca struct for query $resultid
+** returns the sqlerrd[] fields of the sqlca struct for query resultid
** following the prepare (select) or execute immediate (insert/update/execute procedure)
**
** ---------------------------------------------------------------
*/
-/* {{{ proto int ifx_getsqlca(int $resultid)
- returns the sqlerrd[] fields of the sqlca struct for query $resultid */
+/* {{{ proto int ifx_getsqlca(int resultid)
+ Returns the sqlerrd[] fields of the sqlca struct for query resultid */
PHP_FUNCTION(ifx_getsqlca)
{
pval **result;
/* ----------------------------------------------------------------------
-** int ifx_num_fields(int $resultid)
+** int ifx_num_fields(int resultid)
**
-** returns the number of columns in query $resultid
+** returns the number of columns in query resultid
** or FALSE on error
** ----------------------------------------------------------------------
*/
/* {{{ proto int ifx_num_fields(int resultid)
- returns the number of columns in query resultid */
+ Returns the number of columns in query resultid */
PHP_FUNCTION(ifx_num_fields)
{
pval **result;
/* ----------------------------------------------------------------------
-** int ifx_free_result(int $resultid)
+** int ifx_free_result(int resultid)
**
-** releases resources for query associated with $resultid
+** releases resources for query associated with resultid
**
** returns FALSE on error
** ----------------------------------------------------------------------
*/
/* {{{ proto int ifx_free_result(int resultid)
- releases resources for query associated with resultid */
+ Releases resources for query associated with resultid */
PHP_FUNCTION(ifx_free_result)
{
pval **result;
*/
/* {{{ proto int ifx_create_blob(int type, int mode, string param)
- creates a blob-object */
+ Creates a blob-object */
PHP_FUNCTION(ifx_create_blob) {
pval *pmode, *pparam,*ptype;
long id;
*/
/* {{{ proto int ifx_copy_blob(int bid)
- duplicates the given blob-object */
+ Duplicates the given blob-object */
PHP_FUNCTION(ifx_copy_blob) {
pval *pbid;
long newid;
*/
/* {{{ proto int ifx_free_blob(int bid)
- deletes the blob-object */
+ Deletes the blob-object */
PHP_FUNCTION(ifx_free_blob) {
pval *pid;
long ret;
*/
/* {{{ proto string ifx_get_blob(int bid)
- returns the content of the blob-object */
+ Returns the content of the blob-object */
PHP_FUNCTION(ifx_get_blob) {
pval *pbid;
char *content;
*/
/* {{{ proto int ifx_update_blob(int bid, string content)
- updates the content of the blob-object */
+ Updates the content of the blob-object */
PHP_FUNCTION(ifx_update_blob) {
pval *pbid,*pparam;
long ret;
/* ----------------------------------------------------------------------
-** void ifx_blobinfile_mode(int $mode)
+** void ifx_blobinfile_mode(int mode)
**
** sets the default blob-mode for all select-queries
** mode=0: save Byte-Blobs in momory
*/
/* {{{ proto void ifx_blobinfile_mode(int mode)
- sets the default blob-mode for all select-queries */
+ Sets the default blob-mode for all select-queries */
PHP_FUNCTION(ifx_blobinfile_mode) {
pval *pmode;
/* ----------------------------------------------------------------------
-** void ifx_textasvarchar(int $mode)
+** void ifx_textasvarchar(int mode)
**
** sets the default text-mode for all select-queries
** mode=0: select returns a blob-id
*/
/* {{{ proto void ifx_textasvarchar(int mode)
- sets the default text-mode for all select-queries */
+ Sets the default text-mode for all select-queries */
PHP_FUNCTION(ifx_textasvarchar) {
pval *pmode;
/* ----------------------------------------------------------------------
-** void ifx_byteasvarchar(int $mode)
+** void ifx_byteasvarchar(int mode)
**
** sets the default byte-mode for all select-queries
** mode=0: select returns a blob-id
*/
/* {{{ proto void ifx_byteasvarchar(int mode)
- sets the default byte-mode for all select-queries */
+ Sets the default byte-mode for all select-queries */
PHP_FUNCTION(ifx_byteasvarchar) {
pval *pmode;
/* ----------------------------------------------------------------------
-** void ifx_nullformat(int $mode)
+** void ifx_nullformat(int mode)
**
-** sets the default return value of a NULL-value un a fetch-row
+** sets the default return value of a NULL-value on a fetch-row
** mode=0: return ""
** mode=1: return "NULL"
** return nothing
*/
/* {{{ proto void ifx_nullformat(int mode)
- sets the default return value of a NULL-value un a fetch-row */
+ Sets the default return value of a NULL-value on a fetch-row */
PHP_FUNCTION(ifx_nullformat) {
pval *pmode;
-
-
-
-
-
-
-
-
-
-
-
/* ----------------------------------------------------------------------
** int ifx_create_char(string param)
**
*/
/* {{{ proto int ifx_create_char(string param)
- creates a char-object */
+ Creates a char-object */
PHP_FUNCTION(ifx_create_char) {
pval *pparam;
long id;
*/
/* {{{ proto string ifx_get_char(int bid)
- returns the content of the char-object */
+ Returns the content of the char-object */
PHP_FUNCTION(ifx_get_char) {
pval *pbid;
char *content;
*/
/* {{{ proto int ifx_free_char(int bid)
- deletes the char-object */
+ Deletes the char-object */
PHP_FUNCTION(ifx_free_char) {
pval *pid;
long ret;
*/
/* {{{ proto int ifx_update_char(int bid, string content)
- updates the content of the char-object */
+ Updates the content of the char-object */
PHP_FUNCTION(ifx_update_char) {
pval *pbid,*pparam;
long ret;
}
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
$ifdef HAVE_IFX_IUS;
-
-
/* ----------------------------------------------------------------------
-** int ifxus_create_slob( int mode)
+** int ifxus_create_slob(int mode)
**
** creates an slob-object and opens it
** mode: 1=LO_RDONLY, 2=LO_WRONLY, 4=LO_APPEND, 8=LO_RDWR, 16=LO_BUFFER, 32=LO_NOBUFFER -> or-mask
*/
/* {{{ proto int ifxus_create_slob(int mode)
- creates a slob-object and opens it */
+ Creates a slob-object and opens it */
PHP_FUNCTION(ifxus_create_slob) {
pval *pmode;
long id;
*/
/* {{{ proto int ifxus_free_slob(int bid)
- deletes the slob-object */
+ Deletes the slob-object */
PHP_FUNCTION(ifxus_free_slob) {
pval *pid;
long ret;
*/
/* {{{ proto int ifxus_close_slob(int bid)
- deletes the slob-object */
+ Deletes the slob-object */
PHP_FUNCTION(ifxus_close_slob) {
pval *pid;
long ret;
*/
/* {{{ proto int ifxus_open_slob(long bid, int mode)
- opens an slob-object */
+ Opens an slob-object */
PHP_FUNCTION(ifxus_open_slob) {
pval *pbid,*pmode;
long mode,create_mode;
}
-
-
-
-
-
/* ----------------------------------------------------------------------
* internal function
* long php3_intifxus_new_slob(HashTable *list)
-
-
-
-
/* ----------------------------------------------------------------------
** int ifxus_tell_slob(long bid)
**
*/
/* {{{ proto int ifxus_tell_slob(long bid)
- returns the current file or seek position of an open slob-object */
+ Returns the current file or seek position of an open slob-object */
PHP_FUNCTION(ifxus_tell_slob) {
pval *pbid;
long bid;
*/
/* {{{ proto int ifxus_seek_slob(long bid, int mode, long offset)
- sets the current file or seek position of an open slob-object */
+ Sets the current file or seek position of an open slob-object */
PHP_FUNCTION(ifxus_seek_slob) {
pval *pbid, *pmode, *poffset;
long bid,lakt_seek_pos;
*/
/* {{{ proto int ifxus_read_slob(long bid, long nbytes)
- reads nbytes of the slob-object */
+ Reads nbytes of the slob-object */
PHP_FUNCTION(ifxus_read_slob) {
pval *pbid, *pnbytes;
long bid, nbytes;
*/
/* {{{ proto int ifxus_write_slob(long bid, string content)
- writes a string into the slob-object */
+ Writes a string into the slob-object */
PHP_FUNCTION(ifxus_write_slob) {
pval *pbid, *pcontent;
long bid, nbytes;