Table of Contents
Valentina for PHP Reference
This is a list of Valentina-specific calls in PHP. Each topic includes a description, return value and examples of each call.
Connection Methods
- valentina_close() – Close Valentina Server connection.
- valentina_connect() – Open a connection to a Valentina Server.
- valentina_ping() – Ping a server connection.
Database Methods
- valentina_create_db() – Create Valentina Server database.
- valentina_db_name() – Does nothing. For compatibility purposes only.
- valentina_drop_db() – Drop (delete) Valentina Server database
Query Methods
- valentina_db_query() – Runs a query implicitly telling to what database.
- valentina_select_db() – Selects a Valentina Server database.
- valentina_query() – Runs a Valentina query against default database.
Query Result Methods
- valentina_result() – Get result data.
- valentina_affected_rows() – Gets the number of affected rows in the previous VPHP operation.
- valentina_data_seek() – Move internal result pointer.
- valentina_num_fields() – Get the number of fields in the result.
- valentina_num_rows() – Get the number of rows in the result.
- valentina_fetch_array() – Fetch a result row as an associative array, a numeric array, or both.
- valentina_fetch_assoc() – Fetch a result row as an associative array.
- valentina_fetch_field() – Get a column information from the result and return it as an object.
- valentina_fetch_lengths() – Get the length of each output in the result.
- valentina_fetch_object() – Fetch a result row as an object.
- valentina_fetch_row() – Get a result row as an enumerated array.
- valentina_field_flags() – Get the flags associated with the specified field in the result.
- valentina_field_len() – Returns the length of the specified field.
- valentina_field_name() – Get the name of the specified field in the result.
- valentina_field_seek() – Set result pointer to a specified field offset.
- valentina_field_table() – Get the name of table for specified field.
- valentina_field_type() – Get the type of the specified field in the result.
- valentina_free_result() – Free the result memory.
Error Methods
- valentina_errno() – Returns the numerical value of the error message from previous Valentina Server operation.
- valentina_error() – Returns the text of the error message from previous Valentina Server operation.
- valentina_throw_exceptions() – Enable or disable throw exceptions feature of PHP.
Debug Tools Methods
- valentina_trace_mode() – Enable or disable printing to PHP log.
Utility Methods
- valentina_insert_id() – Get the ID generated from the previous INSERT operation.
- valentina_insert_id_of_table() – Get the ID from the previous INSERT operation fro specified table.
- valentina_escape_string() – Escapes a string for use in a val_query.
- valentina_client_encoding() – Returns the name of the character set.
Info Methods
- valentina_get_client_info() – Get Valenyina Server client info.
- valentina_get_host_info() – Get Valentina Server host info.
- valentina_get_proto_info() – Get Valentina Server protocol info.
- valentina_get_server_info() – Get Valentina server info.
- valentina_info – Does nothing. For compatibility purposes only.
List Methods
- valentina_list_dbs() – Does nothing. For compatibility purposes only.
- valentina_list_fields – Does nothing. For compatibility purposes only.
- valentina_list_processes – Does nothing. For compatibility purposes only.
- valentina_list_tables – Does nothing. For compatibility purposes only.
- valentina_stat() – Does nothing. For compatibility purposes only.
- valentina_tablename – Does nothing. For compatibility purposes only.
- valentina_thread_id – Does nothing. For compatibility purposes only.
VProject Methods
- valentina_init_reports() – Initing reports with serial number.
- vproject_create() – Constructs a new instance of VProject class.
- vporject_close() – Close the project.
- vproject_make_new_report() – Creates a new instance of VReport class (for Valentina DB).
- vproject_make_new_report_with_datasource() – Creates a new instance of VReport class (for ANY datasource).
- vproject_report_count() – Returns the count of reports inside of the container.
- vproject_report_name() – Returns the name of the Nth report.
VReport Methods
- vreport_close() – Close the report.
- vreport_preview_zoom() – Specifies the preview zoom.
- vreport_preview_width() – Specifies the width.
- vreport_preview_height() – Specifies the height.
- vreport_print_to_buffer() – Prints all pages or the specified range of pages of the report to the buffer.
- vreport_print_to_disk() – Prints all pages or the specified range of pages of the report to the disk file at the given location.
Aliases
- valentina_pconnect() – alias for valentina_connect() function.
- valentina_real_escape_string() – alias for the valentina_escape_string().
- valentina_unbuffered_query() – alias for valentina_query().