svn: /phpdoc/pl/trunk/reference/spl/countable/ count.xml

From: Date: Mon, 20 Feb 2012 18:18:50 +0000
Subject: svn: /phpdoc/pl/trunk/reference/spl/countable/ count.xml
Groups: php.doc.pl 
Request: Send a blank email to doc-pl+get-2080@lists.php.net to get a copy of this message
adi Mon, 20 Feb 2012 18:18:50 +0000 Revision: http://svn.php.net/viewvc?view=revision&revision=323393 Log: Finished SPL Count translation to Polish. -- Provided by anonymous #14153 () Edited by ADI Bug: https://bugs.php.net/14153 (No Feedback) Servlet sapi native code problems Changed paths: A phpdoc/pl/trunk/reference/spl/countable/count.xml Added: phpdoc/pl/trunk/reference/spl/countable/count.xml =================================================================== --- phpdoc/pl/trunk/reference/spl/countable/count.xml (rev 0) +++ phpdoc/pl/trunk/reference/spl/countable/count.xml 2012-02-20 18:18:50 UTC (rev 323393) @@ -0,0 +1,105 @@ +<?xml version="1.0" encoding="utf-8"?> +<!-- $Revision$ --> +<!-- EN-Revision: 289151 Maintainer: adi Status: ready --> +<!-- Reviewed: no --> + +<refentry xml:id="countable.count" xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink"> + <refnamediv> + <refname>Countable::count</refname> + <refpurpose>Zlicza liczbę elementów obiektu</refpurpose> + </refnamediv> + + <refsect1 role="description"> + &reftitle.description; + <methodsynopsis> + <modifier>abstract</modifier> <modifier>public</modifier> <type>int</type><methodname>Countable::count</methodname> + <void /> + </methodsynopsis> + <para> + Ta metoda jest wywoływana kiedy używana jest funkcja <function>count</function> na + obiekcie implementującym <classname>Countable</classname>. + </para> + </refsect1> + + <refsect1 role="parameters"> + &reftitle.parameters; + &no.function.parameters; + </refsect1> + + <refsect1 role="returnvalues"> + &reftitle.returnvalues; + <para> + Własna ilość jako <type>integer</type>. + </para> + <note> + <para> + Zwracana wartość jest rzutowana na <type>integer</type>. + </para> + </note> + </refsect1> + + <refsect1 role="examples"> + &reftitle.examples; + <para> + <example> + <title>Przykład <function>Countable::count</function></title> + <programlisting role="php"> +<![CDATA[ +<?php +class myCounter implements Countable { + public function count() { + static $count = 0; + return ++$count; + } +} + +$counter = new myCounter; + +for($i=0; $i<10; ++$i) { + echo "Zostałem zliczony " . count($counter) . " razy\n"; +} +?> +]]> + </programlisting> + &example.outputs.similar; + <screen> +<![CDATA[ +Zostałem zliczony 1 razy +Zostałem zliczony 2 razy +Zostałem zliczony 3 razy +Zostałem zliczony 4 razy +Zostałem zliczony 5 razy +Zostałem zliczony 6 razy +Zostałem zliczony 7 razy +Zostałem zliczony 8 razy +Zostałem zliczony 9 razy +Zostałem zliczony 10 razy +]]> + </screen> + </example> + </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 +--> + Property changes on: phpdoc/pl/trunk/reference/spl/countable/count.xml ___________________________________________________________________ Added: svn:keywords + Id Rev Revision Date LastChangedDate LastChangedRevision Author LastChangedBy HeadURL URL Added: svn:eol-style + native

« previous php.doc.pl (#2080) next »