mirror of
https://github.com/php/doc-es.git
synced 2026-04-24 07:38:19 +02:00
f684a18b0f
git-svn-id: https://svn.php.net/repository/phpdoc/es/trunk@330804 c90b9560-bf6c-de11-be94-00142212c4b1
112 lines
3.3 KiB
XML
112 lines
3.3 KiB
XML
<?xml version="1.0" encoding="utf-8"?>
|
|
<!-- $Revision$ -->
|
|
<!-- EN-Revision: 656d1610af1a960d87c8b7056e54d0d4c75fb123 Maintainer: seros Status: ready -->
|
|
<!-- Reviewed: no -->
|
|
<refentry xmlns="http://docbook.org/ns/docbook" xml:id="pharfileinfo.iscompressedgz">
|
|
<refnamediv>
|
|
<refname>PharFileInfo::isCompressedGZ</refname>
|
|
<refpurpose>Devolver si la entrada está comprimida con gz</refpurpose>
|
|
</refnamediv>
|
|
<refsect1 role="description">
|
|
&reftitle.description;
|
|
<methodsynopsis>
|
|
<modifier>public</modifier> <type>bool</type><methodname>PharFileInfo::isCompressedGZ</methodname>
|
|
<void/>
|
|
</methodsynopsis>
|
|
&phar.removed.pharfileinfocompress;
|
|
|
|
<para>
|
|
Este método devuelve si un fichero está comprimido dentro de un archivo Phar
|
|
con la compresión Gzip.
|
|
</para>
|
|
</refsect1>
|
|
|
|
<refsect1 role="returnvalues">
|
|
&reftitle.returnvalues;
|
|
<para>
|
|
&true; si el fichero está comprimido con Gzip dentro del archivo Phar, &false; si no.
|
|
</para>
|
|
</refsect1>
|
|
|
|
<refsect1 role="examples">
|
|
&reftitle.examples;
|
|
<para>
|
|
<example>
|
|
<title>Un ejemplo de <function>PharFileInfo::isCompressedGZ</function></title>
|
|
<programlisting role="php">
|
|
<![CDATA[
|
|
<?php
|
|
try {
|
|
$p = new Phar('/ruta/a/mi.phar', 0, 'mi.phar');
|
|
$p['mifichero.txt'] = 'hola';
|
|
$p['mifichero2.txt'] = 'hola';
|
|
$p['mifichero3.txt'] = 'hola';
|
|
$p['mifichero2.txt']->setCompressedGZ();
|
|
$p['mifichero3.txt']->setCompressedBZIP2();
|
|
$fichero = $p['mifichero.txt'];
|
|
$fichero2 = $p['mifichero2.txt'];
|
|
$fichero3 = $p['mifichero3.txt'];
|
|
var_dump($fichero->isCompressedGZ());
|
|
var_dump($fichero2->isCompressedGZ());
|
|
var_dump($fichero3->isCompressedGZ());
|
|
} catch (Exception $e) {
|
|
echo 'La creación/modificación del phar mi.phar falló: ', $e;
|
|
}
|
|
?>
|
|
]]>
|
|
</programlisting>
|
|
&example.outputs;
|
|
<screen>
|
|
<![CDATA[
|
|
bool(false)
|
|
bool(true)
|
|
bool(false)
|
|
]]>
|
|
</screen>
|
|
</example>
|
|
</para>
|
|
</refsect1>
|
|
|
|
<refsect1 role="seealso">
|
|
&reftitle.seealso;
|
|
<para>
|
|
<simplelist>
|
|
<member><function>PharFileInfo::getCompressedSize</function></member>
|
|
<member><function>PharFileInfo::isCompressedBZIP2</function></member>
|
|
<member><function>PharFileInfo::isCompressed</function></member>
|
|
<member><function>PharFileInfo::setCompressedBZIP2</function></member>
|
|
<member><function>PharFileInfo::setUncompressed</function></member>
|
|
<member><function>PharFileInfo::setCompressedGZ</function></member>
|
|
<member><function>Phar::canCompress</function></member>
|
|
<member><function>Phar::isCompressed</function></member>
|
|
<member><function>Phar::compressAllFilesBZIP2</function></member>
|
|
<member><function>Phar::compressAllFilesGZ</function></member>
|
|
<member><function>Phar::getSupportedCompression</function></member>
|
|
<member><function>Phar::uncompressAllFiles</function></member>
|
|
</simplelist>
|
|
</para>
|
|
</refsect1>
|
|
|
|
</refentry>
|
|
|
|
<!-- Keep this comment at the end of the file
|
|
Local variables:
|
|
mode: sgml
|
|
sgml-omittag:t
|
|
sgml-shorttag:t
|
|
sgml-minimize-attributes:nil
|
|
sgml-always-quote-attributes:t
|
|
sgml-indent-step:1
|
|
sgml-indent-data:t
|
|
indent-tabs-mode:nil
|
|
sgml-parent-document:nil
|
|
sgml-default-dtd-file:"~/.phpdoc/manual.ced"
|
|
sgml-exposed-tags:nil
|
|
sgml-local-catalogs:nil
|
|
sgml-local-ecat-files:nil
|
|
End:
|
|
vim600: syn=xml fen fdm=syntax fdl=2 si
|
|
vim: et tw=78 syn=sgml
|
|
vi: ts=1 sw=1
|
|
-->
|