svn: /phpdoc/en/trunk/reference/rar/ rararchive/close.xml rararchive/getentry.xml rararchive/list.xml rararchive/open.xml rararchive.xml

From: Date: Mon, 07 Dec 2009 08:15:28 +0000
Subject: svn: /phpdoc/en/trunk/reference/rar/ rararchive/close.xml rararchive/getentry.xml rararchive/list.xml rararchive/open.xml rararchive.xml
Groups: php.doc.cvs 
Request: Send a blank email to doc-cvs+get-5620@lists.php.net to get a copy of this message
cataphract Mon, 07 Dec 2009 08:15:28 +0000 Revision: http://svn.php.net/viewvc?view=revision&revision=291808 Log: Replaced tabs with spaces and correction in close.xml Changed paths: U phpdoc/en/trunk/reference/rar/rararchive/close.xml U phpdoc/en/trunk/reference/rar/rararchive/getentry.xml U phpdoc/en/trunk/reference/rar/rararchive/list.xml U phpdoc/en/trunk/reference/rar/rararchive/open.xml U phpdoc/en/trunk/reference/rar/rararchive.xml Modified: phpdoc/en/trunk/reference/rar/rararchive/close.xml =================================================================== --- phpdoc/en/trunk/reference/rar/rararchive/close.xml 2009-12-07 08:14:48 UTC (rev 291807) +++ phpdoc/en/trunk/reference/rar/rararchive/close.xml 2009-12-07 08:15:28 UTC (rev 291808) @@ -21,11 +21,8 @@ <methodparam><type>RarArchive</type><parameter>rarfile</parameter></methodparam> </methodsynopsis> <para> - + Close RAR archive and free all allocated resources. </para> - - &warn.undocumented.func; - </refsect1> <refsect1 role="parameters"> @@ -69,7 +66,7 @@ The RAR entries returned by <methodname>RarArchive::getEntry</methodname> and <methodname>RarArchive::list</methodname> are now invalidated when calling this method. This means that all instance methods called for - such entries and not guaranteed to succeed. + such entries and not guaranteed to succeed. </entry> </row> </tbody> Modified: phpdoc/en/trunk/reference/rar/rararchive/getentry.xml =================================================================== --- phpdoc/en/trunk/reference/rar/rararchive/getentry.xml 2009-12-07 08:14:48 UTC (rev 291807) +++ phpdoc/en/trunk/reference/rar/rararchive/getentry.xml 2009-12-07 08:15:28 UTC (rev 291808) @@ -74,10 +74,10 @@ <?php $rar_arch = RarArchive::open('solid.rar'); if ($rar_arch === FALSE) - die("Could not open RAR archive."); + die("Could not open RAR archive."); $rar_entry = $rar_arch->getEntry('tese.txt'); if ($rar_entry === FALSE) - die("Could get such entry"); + die("Could get such entry"); echo get_class($rar_entry)."\n"; echo $rar_entry; $rar_arch->close(); @@ -101,10 +101,10 @@ <?php $rar_arch = rar_open('solid.rar'); if ($rar_arch === FALSE) - die("Could not open RAR archive."); + die("Could not open RAR archive."); $rar_entry = rar_entry_get($rar_arch, 'tese.txt'); if ($rar_entry === FALSE) - die("Could get such entry"); + die("Could get such entry"); echo get_class($rar_entry)."\n"; echo $rar_entry; rar_close($rar_arch); Modified: phpdoc/en/trunk/reference/rar/rararchive/list.xml =================================================================== --- phpdoc/en/trunk/reference/rar/rararchive/list.xml 2009-12-07 08:14:48 UTC (rev 291807) +++ phpdoc/en/trunk/reference/rar/rararchive/list.xml 2009-12-07 08:15:28 UTC (rev 291808) @@ -59,17 +59,17 @@ <?php $rar_arch = RarArchive::open('solid.rar'); if ($rar_arch === FALSE) - die("Could not open RAR archive."); + die("Could not open RAR archive."); $rar_entries = $rar_arch->list(); if ($rar_entries === FALSE) - die("Could retrieve entries."); + die("Could retrieve entries."); echo "Found " . count($rar_entries) . " entries.\n"; foreach ($rar_entries as $e) { - echo $e; - echo "\n"; + echo $e; + echo "\n"; } $rar_arch->close(); ?> @@ -93,17 +93,17 @@ <?php $rar_arch = rar_open('solid.rar'); if ($rar_arch === FALSE) - die("Could not open RAR archive."); + die("Could not open RAR archive."); $rar_entries = rar_list($rar_arch); if ($rar_entries === FALSE) - die("Could retrieve entries."); + die("Could retrieve entries."); echo "Found " . count($rar_entries) . " entries.\n"; foreach ($rar_entries as $e) { - echo $e; - echo "\n"; + echo $e; + echo "\n"; } rar_close($rar_arch); ?> Modified: phpdoc/en/trunk/reference/rar/rararchive/open.xml =================================================================== --- phpdoc/en/trunk/reference/rar/rararchive/open.xml 2009-12-07 08:14:48 UTC (rev 291807) +++ phpdoc/en/trunk/reference/rar/rararchive/open.xml 2009-12-07 08:15:28 UTC (rev 291808) @@ -28,7 +28,7 @@ <note> <para> If opening a multi-volume archive, the path of the first volume should be passed as the first parameter. - Otherwise, not all files will be shown. This is by design. + Otherwise, not all files will be shown. This is by design. </para> </note> </refsect1> @@ -50,8 +50,8 @@ <listitem> <para> A plain password, if needed to decrypt the headers. It will also be used by default - if encrypted files are found. Note that the files may have - different passwords in respect to the headers and among them. + if encrypted files are found. Note that the files may have + different passwords in respect to the headers and among them. </para> </listitem> </varlistentry> @@ -80,20 +80,20 @@ <?php $rar_arch = RarArchive::open('encrypted_headers.rar', 'samplepassword'); if ($rar_arch === FALSE) - die("Failed opening file"); - + die("Failed opening file"); + $entries = $rar_arch->list(); if ($entries === FALSE) - die("Failed fetching entries"); + die("Failed fetching entries"); echo "Found " . count($entries) . " files.\n"; if (empty($entries)) - die("No valid entries found."); - + die("No valid entries found."); + $stream = reset($entries)->getStream(); if ($stream === FALSE) - die("Failed opening first file"); + die("Failed opening first file"); $rar_arch->close(); @@ -122,20 +122,20 @@ <?php $rar_arch = rar_open('encrypted_headers.rar', 'samplepassword'); if ($rar_arch === FALSE) - die("Failed opening file"); - + die("Failed opening file"); + $entries = rar_list($rar_arch); if ($entries === FALSE) - die("Failed fetching entries"); + die("Failed fetching entries"); echo "Found " . count($entries) . " files.\n"; if (empty($entries)) - die("No valid entries found."); - + die("No valid entries found."); + $stream = reset($entries)->getStream(); if ($stream === FALSE) - die("Failed opening first file"); + die("Failed opening first file"); rar_close($rar_arch); Modified: phpdoc/en/trunk/reference/rar/rararchive.xml =================================================================== --- phpdoc/en/trunk/reference/rar/rararchive.xml 2009-12-07 08:14:48 UTC (rev 291807) +++ phpdoc/en/trunk/reference/rar/rararchive.xml 2009-12-07 08:15:28 UTC (rev 291808) @@ -13,7 +13,7 @@ &reftitle.intro; <para> This class represents a RAR archive, which may be formed by several volumes (parts) and which contains - a number of RAR entries (i.e., files, directories and other special objects such as symbolic links). + a number of RAR entries (i.e., files, directories and other special objects such as symbolic links). </para> </section> <!-- }}} -->

« previous php.doc.cvs (#5620) next »