CVS update: php3/functions
| From: | jim | Date: | Thu, 12 Nov 1998 22:02:43 +0000 |
| Subject: | CVS update: php3/functions | ||
| Groups: | php.dev | ||
| Request: | Send a blank email to php-dev+get-2357@lists.php.net to get a copy of this message | ||
Date: Thursday November 12, 1998 @ 17:02
Author: jim
Update of /repository/php3/functions
In directory asf:/u2/tmp/cvs-serv23694
Modified Files:
dbase.c
Log Message:
Add function descriptions to dbase.c.
Index: php3/functions/dbase.c
diff -c php3/functions/dbase.c:1.67 php3/functions/dbase.c:1.68
*** php3/functions/dbase.c:1.67 Thu Nov 5 18:52:07 1998
--- php3/functions/dbase.c Thu Nov 12 17:02:41 1998
***************
*** 117,123 ****
return SUCCESS;
}
! /* {{{ proto int dbase_open(string name, int mode) */
void php3_dbase_open(INTERNAL_FUNCTION_PARAMETERS) {
pval *dbf_name, *options;
dbhead_t *dbh;
--- 117,124 ----
return SUCCESS;
}
! /* {{{ proto int dbase_open(string name, int mode)
! Opens a dBase-format database file */
void php3_dbase_open(INTERNAL_FUNCTION_PARAMETERS) {
pval *dbf_name, *options;
dbhead_t *dbh;
***************
*** 149,155 ****
}
/* }}} */
! /* {{{ proto bool dbase_close(int identifier) */
void php3_dbase_close(INTERNAL_FUNCTION_PARAMETERS) {
pval *dbh_id;
dbhead_t *dbh;
--- 150,157 ----
}
/* }}} */
! /* {{{ proto bool dbase_close(int identifier)
! Closes an open dBase-format database file */
void php3_dbase_close(INTERNAL_FUNCTION_PARAMETERS) {
pval *dbh_id;
dbhead_t *dbh;
***************
*** 171,177 ****
}
/* }}} */
! /* {{{ proto int dbase_numrecords(int identifier) */
void php3_dbase_numrecords(INTERNAL_FUNCTION_PARAMETERS) {
pval *dbh_id;
dbhead_t *dbh;
--- 173,180 ----
}
/* }}} */
! /* {{{ proto int dbase_numrecords(int identifier)
! Returns the number of records in the database */
void php3_dbase_numrecords(INTERNAL_FUNCTION_PARAMETERS) {
pval *dbh_id;
dbhead_t *dbh;
***************
*** 192,198 ****
}
/* }}} */
! /* {{{ proto int dbase_numfields(int identifier) */
void php3_dbase_numfields(INTERNAL_FUNCTION_PARAMETERS) {
pval *dbh_id;
dbhead_t *dbh;
--- 195,202 ----
}
/* }}} */
! /* {{{ proto int dbase_numfields(int identifier)
! Returns the number of fields (columns) in the database */
void php3_dbase_numfields(INTERNAL_FUNCTION_PARAMETERS) {
pval *dbh_id;
dbhead_t *dbh;
***************
*** 213,219 ****
}
/* }}} */
! /* {{{ proto bool dbase_pack(int identifier) */
void php3_dbase_pack(INTERNAL_FUNCTION_PARAMETERS) {
pval *dbh_id;
dbhead_t *dbh;
--- 217,224 ----
}
/* }}} */
! /* {{{ proto bool dbase_pack(int identifier)
! Packs the database (deletes records marked for deletion) */
void php3_dbase_pack(INTERNAL_FUNCTION_PARAMETERS) {
pval *dbh_id;
dbhead_t *dbh;
***************
*** 236,242 ****
}
/* }}} */
! /* {{{ proto bool dbase_add_record(int identifier, array data) */
void php3_dbase_add_record(INTERNAL_FUNCTION_PARAMETERS) {
pval *dbh_id, *fields, *field;
dbhead_t *dbh;
--- 241,248 ----
}
/* }}} */
! /* {{{ proto bool dbase_add_record(int identifier, array data)
! Adds a record to the database */
void php3_dbase_add_record(INTERNAL_FUNCTION_PARAMETERS) {
pval *dbh_id, *fields, *field;
dbhead_t *dbh;
***************
*** 303,309 ****
}
/* }}} */
! /* {{{ proto bool dbase_delete_record(int identifier, int record) */
void php3_dbase_delete_record(INTERNAL_FUNCTION_PARAMETERS) {
pval *dbh_id, *record;
dbhead_t *dbh;
--- 309,316 ----
}
/* }}} */
! /* {{{ proto bool dbase_delete_record(int identifier, int record)
! Marks a record to be deleted */
void php3_dbase_delete_record(INTERNAL_FUNCTION_PARAMETERS) {
pval *dbh_id, *record;
dbhead_t *dbh;
***************
*** 336,342 ****
}
/* }}} */
! /* {{{ proto array dbase_get_record(int identifier, int record) */
void php3_dbase_get_record(INTERNAL_FUNCTION_PARAMETERS) {
pval *dbh_id, *record;
dbhead_t *dbh;
--- 343,350 ----
}
/* }}} */
! /* {{{ proto array dbase_get_record(int identifier, int record)
! Returns an array representing a record from the database */
void php3_dbase_get_record(INTERNAL_FUNCTION_PARAMETERS) {
pval *dbh_id, *record;
dbhead_t *dbh;
***************
*** 413,419 ****
/* }}} */
/* From Martin Kuba <makub@aida.inet.cz> */
! /* {{{ proto array dbase_get_record_with_names(int identifier, int record) */
void php3_dbase_get_record_with_names(INTERNAL_FUNCTION_PARAMETERS) {
pval *dbh_id, *record;
dbhead_t *dbh;
--- 421,428 ----
/* }}} */
/* From Martin Kuba <makub@aida.inet.cz> */
! /* {{{ proto array dbase_get_record_with_names(int identifier, int record)
! Returns an associative array representing a record from the database */
void php3_dbase_get_record_with_names(INTERNAL_FUNCTION_PARAMETERS) {
pval *dbh_id, *record;
dbhead_t *dbh;
***************
*** 487,493 ****
}
/* }}} */
! /* {{{ proto bool dbase_create(string filename, array fields) */
void php3_dbase_create(INTERNAL_FUNCTION_PARAMETERS) {
pval *filename, *fields, *field, *value;
int fd;
--- 496,503 ----
}
/* }}} */
! /* {{{ proto bool dbase_create(string filename, array fields)
! Creates a new dBase-format database file */
void php3_dbase_create(INTERNAL_FUNCTION_PARAMETERS) {
pval *filename, *fields, *field, *value;
int fd;
--
PHP Development Mailing List http://www.php.net/
To unsubscribe send an empty message to php-dev-unsubscribe@lists.php.net
For help: php-dev-help@lists.php.net