1
0
mirror of https://github.com/php/doc-es.git synced 2026-03-24 15:32:36 +01:00
Files
Philippe DELENTE 9f7804a633 Feature/update revision en misc page reference (#248)
* feat(translation): update revision EN

* feat(translation): update revision EN
2025-07-02 22:37:23 +02:00

177 lines
6.4 KiB
XML

<?xml version="1.0" encoding="utf-8"?>
<!-- $Revision$ -->
<!-- EN-Revision: f80105b4fc1196bd8d5fecb98d686b580b1ff65d Maintainer: PhilDaiguille Status: ready -->
<!-- Reviewed: no -->
<refentry xml:id="streamwrapper.url-stat" xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink">
<refnamediv>
<refname>streamWrapper::url_stat</refname>
<refpurpose>Lee la información sobre un fichero</refpurpose>
</refnamediv>
<refsect1 role="description">
&reftitle.description;
<methodsynopsis>
<modifier>public</modifier> <type class="union"><type>array</type><type>false</type></type><methodname>streamWrapper::url_stat</methodname>
<methodparam><type>string</type><parameter>path</parameter></methodparam>
<methodparam><type>int</type><parameter>flags</parameter></methodparam>
</methodsynopsis>
<para>
Este método es llamado en respuesta a todas las funciones
relacionadas con <function>stat</function>, tales como:
<simplelist>
<member><function>copy</function></member>
<member><function>fileperms</function></member>
<member><function>fileinode</function></member>
<member><function>filesize</function></member>
<member><function>fileowner</function></member>
<member><function>filegroup</function></member>
<member><function>fileatime</function></member>
<member><function>filemtime</function></member>
<member><function>filectime</function></member>
<member><function>filetype</function></member>
<member><function>is_writable</function></member>
<member><function>is_readable</function></member>
<member><function>is_executable</function></member>
<member><function>is_file</function></member>
<member><function>is_dir</function></member>
<member><function>is_link</function></member>
<member><function>file_exists</function></member>
<member><function>lstat</function></member>
<member><function>stat</function></member>
<member><methodname>SplFileInfo::getPerms</methodname></member>
<member><methodname>SplFileInfo::getInode</methodname></member>
<member><methodname>SplFileInfo::getSize</methodname></member>
<member><methodname>SplFileInfo::getOwner</methodname></member>
<member><methodname>SplFileInfo::getGroup</methodname></member>
<member><methodname>SplFileInfo::getATime</methodname></member>
<member><methodname>SplFileInfo::getMTime</methodname></member>
<member><methodname>SplFileInfo::getCTime</methodname></member>
<member><methodname>SplFileInfo::getType</methodname></member>
<member><methodname>SplFileInfo::isWritable</methodname></member>
<member><methodname>SplFileInfo::isReadable</methodname></member>
<member><methodname>SplFileInfo::isExecutable</methodname></member>
<member><methodname>SplFileInfo::isFile</methodname></member>
<member><methodname>SplFileInfo::isDir</methodname></member>
<member><methodname>SplFileInfo::isLink</methodname></member>
<member><methodname>RecursiveDirectoryIterator::hasChildren</methodname></member>
</simplelist>
</para>
</refsect1>
<refsect1 role="parameters">
&reftitle.parameters;
<para>
<variablelist>
<varlistentry>
<term><parameter>path</parameter></term>
<listitem>
<para>
La ruta de acceso del fichero o la URL a analizar. Se debe tener en cuenta que en el caso de las URLs,
deben estar delimitadas por ://. Cualquier otro formato no es soportado.
</para>
</listitem>
</varlistentry>
<varlistentry>
<term><parameter>flags</parameter></term>
<listitem>
<para>
Las opciones adicionales activadas por la API de flujos.
Puede contener una o más de las constantes siguientes, combinadas por OR:
<informaltable>
<tgroup cols="2">
<thead>
<row>
<entry>Opción</entry>
<entry>Descripción</entry>
</row>
</thead>
<tbody>
<row>
<entry>STREAM_URL_STAT_LINK</entry>
<entry>
Para los recursos que tienen la capacidad de enlazarse
a otros recursos (como una redirección HTTP
o un enlace simbólico). Esta opción indica
que la información leída debe concernir al enlace
en sí mismo, y no al recurso apuntado por el enlace.
Esta opción es activada en respuesta a una llamada a
<function>lstat</function>, <function>is_link</function>
o <function>filetype</function>.
</entry>
</row>
<row>
<entry>STREAM_URL_STAT_QUIET</entry>
<entry>
Si esta opción está activada, el gestor no
debe emitir errores. Si esta opción no está
activada, se es responsable del informe de errores,
llamando a la función <function>trigger_error</function>
durante el análisis de la ruta de acceso.
</entry>
</row>
</tbody>
</tgroup>
</informaltable>
</para>
</listitem>
</varlistentry>
</variablelist>
</para>
</refsect1>
<refsect1 role="returnvalues">
&reftitle.returnvalues;
<para>
Debe retornar un &array; con tantos elementos como <function>stat</function> retorna.
Los valores desconocidos o no disponibles deben tomar un valor
razonable (generalmente, <literal>0</literal>). Se debe prestar especial
atención a <literal>mode</literal> como está documentado bajo
<function>stat</function>.
Debe retornar &false; en caso de fallo.
</para>
</refsect1>
<refsect1 role="errors">
&reftitle.errors;
&userstream.not.implemented.warning;
</refsect1>
<refsect1 role="notes">
&reftitle.notes;
&userstream.updates.context;
</refsect1>
<refsect1 role="seealso">
&reftitle.seealso;
<para>
<simplelist>
<member><function>stat</function></member>
<member><methodname>streamwrapper::stream_stat</methodname></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
-->