1
0
mirror of https://github.com/php/doc-pl.git synced 2026-03-25 23:52:07 +01:00
Files
Maciej Sobaczewski c14218bf94 Sync a ton of simple files with their English counterparts
Well, it doesn't really make the Polish manual much better but it does
reduce the amount of outdated files substantially leaving the ones that
deserve some actual work and thought.
2024-05-08 19:25:35 +02:00

153 lines
3.6 KiB
XML

<?xml version="1.0" encoding="utf-8"?>
<!-- EN-Revision: ed312486fff2251b6625b017df2e8f847f656296 Maintainer: sobak Status: ready -->
<!-- $Revision$ -->
<refentry xml:id="arrayaccess.offsetset" xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink">
<refnamediv>
<refname>ArrayAccess::offsetSet</refname>
<refpurpose>Przypisuje wartość do określonego offsetu</refpurpose>
</refnamediv>
<refsect1 role="description">
&reftitle.description;
<methodsynopsis role="ArrayAccess">
<modifier>public</modifier> <type>void</type><methodname>ArrayAccess::offsetSet</methodname>
<methodparam><type>mixed</type><parameter>offset</parameter></methodparam>
<methodparam><type>mixed</type><parameter>value</parameter></methodparam>
</methodsynopsis>
<para>
Przypisuje wartość do określonego offsetu.
</para>
</refsect1>
<refsect1 role="parameters">
&reftitle.parameters;
<para>
<variablelist>
<varlistentry>
<term><parameter>offset</parameter></term>
<listitem>
<para>
Offset do którego przypisać wartość.
</para>
</listitem>
</varlistentry>
<varlistentry>
<term><parameter>value</parameter></term>
<listitem>
<para>
Wartość do ustawienia.
</para>
</listitem>
</varlistentry>
</variablelist>
</para>
</refsect1>
<refsect1 role="returnvalues">
&reftitle.returnvalues;
<para>
&return.void;
</para>
</refsect1>
<refsect1 role="notes">
&reftitle.notes;
<note>
<para>
Parametr <parameter>offset</parameter> zostanie ustawiony na &null; jeśli
inna wartość nie jest dostępna, jak w poniższym przykładzie.
<informalexample>
<programlisting role="php">
<![CDATA[
<?php
$arrayaccess[] = "pierwsza wartość";
$arrayaccess[] = "druga wartość";
print_r($arrayaccess);
?>
]]>
</programlisting>
&example.outputs;
<screen>
<![CDATA[
Array
(
[0] => pierwsza wartość
[1] => druga wartość
)
]]>
</screen>
</informalexample>
</para>
</note>
<note>
<para>
This function is not called in assignments by reference and otherwise
indirect changes to array dimensions overloaded with
<classname>ArrayAccess</classname> (indirect in the sense they are
made not by changing the dimension directly, but by changing a
sub-dimension or sub-property or assigning the array dimension by
reference to another variable).
Zamiast tego wywoływana jest <function>ArrayAccess::offsetGet</function>. Operacja
powiedzie się tylko, jeśli ta metoda zwraca przez referencję.
</para>
</note>
</refsect1>
<!--
<refsect1 role="examples">
&reftitle.examples;
<para>
<example>
<title><function>ArrayAccess::offsetSet</function> example</title>
<programlisting role="php">
<![CDATA[
<?php
/* ... */
?>
]]>
</programlisting>
&example.outputs.similar;
<screen>
<![CDATA[
...
]]>
</screen>
</example>
</para>
</refsect1>
<refsect1 role="seealso">
&reftitle.seealso;
<para>
<simplelist>
<member><methodname>Classname::Method</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
-->