mirror of
https://github.com/sigmasternchen/php-doc-en
synced 2025-03-16 08:58:56 +00:00
- added section about parameters
- some more info for elements of returned array - added new array element 'recordsize' git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@210471 c90b9560-bf6c-de11-be94-00142212c4b1
This commit is contained in:
parent
303f329f85
commit
ba69e8fc66
1 changed files with 34 additions and 6 deletions
|
@ -1,5 +1,5 @@
|
|||
<?xml version="1.0" encoding="iso-8859-1"?>
|
||||
<!-- $Revision: 1.2 $ -->
|
||||
<!-- $Revision: 1.3 $ -->
|
||||
<!-- splitted from ./en/functions/paradox.xml, last change in rev -->
|
||||
<refentry id="function.px-get-info">
|
||||
<refnamediv>
|
||||
|
@ -15,24 +15,42 @@
|
|||
</methodsynopsis>
|
||||
</refsect1>
|
||||
|
||||
<refsect1 role="parameters">
|
||||
&reftitle.parameters;
|
||||
<para>
|
||||
<variablelist>
|
||||
<varlistentry>
|
||||
<term><parameter>pxdoc</parameter></term>
|
||||
<listitem>
|
||||
<para>
|
||||
Resource identifier of the paradox database
|
||||
as returned by <function>px_new</function>.
|
||||
</para>
|
||||
</listitem>
|
||||
</varlistentry>
|
||||
</variablelist>
|
||||
</para>
|
||||
</refsect1>
|
||||
|
||||
<refsect1 role="returnvalues">
|
||||
&reftitle.returnvalues;
|
||||
<para>
|
||||
Returns an associated array with lots of information about a paradox
|
||||
file. This array is likely to extend in the future.
|
||||
file. This array is likely to be extended in the future.
|
||||
</para>
|
||||
<variablelist>
|
||||
<varlistentry>
|
||||
<term>fileversion</term>
|
||||
<listitem>
|
||||
<para>Version of file multiplied by 10.</para>
|
||||
<para>Version of file multiplied by 10, e.g. 70.</para>
|
||||
</listitem>
|
||||
</varlistentry>
|
||||
<varlistentry>
|
||||
<term>tablename</term>
|
||||
<listitem>
|
||||
<para>Name of table as stored in the file.</para>
|
||||
<para>Name of table as stored in the file. If the database was created
|
||||
by pxlib, then this will be the name of the file without the
|
||||
extension.</para>
|
||||
</listitem>
|
||||
</varlistentry>
|
||||
<varlistentry>
|
||||
|
@ -53,11 +71,20 @@
|
|||
<para>Number of bytes used for the header. This is usually 0x800.</para>
|
||||
</listitem>
|
||||
</varlistentry>
|
||||
<varlistentry>
|
||||
<term>recordsize</term>
|
||||
<listitem>
|
||||
<para>Number of bytes used for each record. This is the sum of all
|
||||
field sizes (available since version 1.4.2).</para>
|
||||
</listitem>
|
||||
</varlistentry>
|
||||
<varlistentry>
|
||||
<term>maxtablesize</term>
|
||||
<listitem>
|
||||
<para>
|
||||
This value multiplied by 0x400 is the size of a data block in bytes.
|
||||
The maximum number of records in a datablock is the integer part of
|
||||
(maxtablesize * 0x400 - 8) / recordsize.
|
||||
</para>
|
||||
</listitem>
|
||||
</varlistentry>
|
||||
|
@ -77,7 +104,7 @@
|
|||
<listitem>
|
||||
<para>
|
||||
Number of fields used for the primary index. The fields do always start
|
||||
as field number 1.
|
||||
with field number 1.
|
||||
</para>
|
||||
</listitem>
|
||||
</varlistentry>
|
||||
|
@ -89,7 +116,8 @@
|
|||
If the target encoding is not set with
|
||||
<function>px_set_targetencoding</function> this will be the encoding for
|
||||
character fields when records are being accessed with
|
||||
<function>px_get_record</function>.
|
||||
<function>px_get_record</function> or
|
||||
<function>px_retrieve_record</function>.
|
||||
</para>
|
||||
</listitem>
|
||||
</varlistentry>
|
||||
|
|
Loading…
Reference in a new issue