svn: /phpdoc/tr/trunk/language/predefined/ arrayaccess/offsetexists.xml arrayaccess/offsetget.xml arrayaccess/offsetset.xml arrayaccess/offsetunset.xml errorexception/construct.xml errorexception/getseverity.xml
[email protected] (Nilgün Belma Bugüner)
| Newsgroups | php.doc.tr |
|---|---|
| Message-ID | <[email protected]> |
nilgun Thu, 18 Oct 2018 09:10:21 +0000
Revision: http://svn.php.net/viewvc?view=revision&revision=345831
Log:
update for sync with English docs.
Changed paths:
U phpdoc/tr/trunk/language/predefined/arrayaccess/offsetexists.xml
U phpdoc/tr/trunk/language/predefined/arrayaccess/offsetget.xml
U phpdoc/tr/trunk/language/predefined/arrayaccess/offsetset.xml
U phpdoc/tr/trunk/language/predefined/arrayaccess/offsetunset.xml
U phpdoc/tr/trunk/language/predefined/errorexception/construct.xml
U phpdoc/tr/trunk/language/predefined/errorexception/getseverity.xml
svn-diffs-345831.txt
(text/x-diff, 11.3 KB)
Modified: phpdoc/tr/trunk/language/predefined/arrayaccess/offsetexists.xml
===================================================================
--- phpdoc/tr/trunk/language/predefined/arrayaccess/offsetexists.xml 2018-10-18 08:58:39 UTC (rev 345830)
+++ phpdoc/tr/trunk/language/predefined/arrayaccess/offsetexists.xml 2018-10-18 09:10:21 UTC (rev 345831)
@@ -1,6 +1,7 @@
<?xml version="1.0" encoding="utf-8"?>
<!-- $Revision$ -->
-<!-- EN-Revision: 289713 Maintainer: haluk Status: ready -->
+<!-- EN-Revision: 343889 Maintainer: nilgun Status: ready -->
+<!-- CREDITS: haluk -->
<refentry xml:id="arrayaccess.offsetexists" xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink">
<refnamediv>
<refname>ArrayAccess::offsetExists</refname>
@@ -10,7 +11,7 @@
<refsect1 role="description">
&reftitle.description;
<methodsynopsis>
- <modifier>abstract</modifier> <modifier>public</modifier> <type>boolean</type><methodname>ArrayAccess::offsetExists</methodname>
+ <modifier>abstract</modifier> <modifier>public</modifier> <type>bool</type><methodname>ArrayAccess::offsetExists</methodname>
<methodparam><type>mixed</type><parameter>konum</parameter></methodparam>
</methodsynopsis>
<para>
Modified: phpdoc/tr/trunk/language/predefined/arrayaccess/offsetget.xml
===================================================================
--- phpdoc/tr/trunk/language/predefined/arrayaccess/offsetget.xml 2018-10-18 08:58:39 UTC (rev 345830)
+++ phpdoc/tr/trunk/language/predefined/arrayaccess/offsetget.xml 2018-10-18 09:10:21 UTC (rev 345831)
@@ -1,6 +1,7 @@
<?xml version="1.0" encoding="utf-8"?>
<!-- $Revision$ -->
-<!-- EN-Revision: 289713 Maintainer: haluk Status: ready -->
+<!-- EN-Revision: 305566 Maintainer: nilgun Status: ready -->
+<!-- CREDITS: haluk -->
<refentry xml:id="arrayaccess.offsetget" xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink">
<refnamediv>
<refname>ArrayAccess::offsetGet</refname>
@@ -36,7 +37,34 @@
</varlistentry>
</variablelist>
</para>
+ </refsect1>
+ <refsect1 role="notes">
+ &reftitle.notes;
+ <note>
+ <para>
+ PHP 5.3.4 ve sonrasında, prototip sınamaları esnetildi ve bu yöntemin
+ gerçeklemelerinin gönderimli değer döndürmesi mümkün oldu. Bu, olası
+ <classname>ArrayAccess</classname> nesnelerinin aşırı yüklenmiş dizi
+ boyutlarında dolaylı değişiklikleri mümkün kılar.
+ </para>
+ <para>
+ Doğrudan değişiklikte, <literal>$obj[6] = 7</literal> örneğindeki gibi
+ dizi boyutu değeri tamamen değişir. Dolaylı değişiklikte ise, ya boyutun
+ bir kısmı değişir ya da boyut gönderimli olarak başka bir değişkene
+ atanmaya çalışılır (<literal>$obj[6][7] = 7</literal> veya
+ <literal>$var =& $obj[6]</literal> gibi). <literal>++</literal> ile
+ arttırım ve <literal>--</literal> ile eksiltim dolaylı değişiklikteki
+ gibi gerçeklenir.
+ </para>
+ <para>
+ Doğrudan değişiklik <function>ArrayAccess::offsetSet</function> çağrısını
+ tetiklerken, dolaylı değişiklik <function>ArrayAccess::offsetGet</function>
+ çağrısını tetikler. Bu durumda, <function>ArrayAccess::offsetGet</function>
+ gerçeklenimi gönderimli değer dönürebilmelidir, aksi takdirde bir
+ <constant>E_NOTICE</constant> iletisi çıktılanır.
+ </para>
+ </note>
</refsect1>
<refsect1 role="returnvalues">
Modified: phpdoc/tr/trunk/language/predefined/arrayaccess/offsetset.xml
===================================================================
--- phpdoc/tr/trunk/language/predefined/arrayaccess/offsetset.xml 2018-10-18 08:58:39 UTC (rev 345830)
+++ phpdoc/tr/trunk/language/predefined/arrayaccess/offsetset.xml 2018-10-18 09:10:21 UTC (rev 345831)
@@ -1,10 +1,11 @@
<?xml version="1.0" encoding="utf-8"?>
<!-- $Revision$ -->
-<!-- EN-Revision: 291256 Maintainer: haluk Status: ready -->
+<!-- EN-Revision: 336766 Maintainer: nilgun Status: ready -->
+<!-- CREDITS: haluk -->
<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>Konuma değer atanır</refpurpose>
+ <refpurpose>Belirtilen konuma bir değer atar</refpurpose>
</refnamediv>
<refsect1 role="description">
@@ -61,15 +62,41 @@
<programlisting role="php">
<![CDATA[
<?php
-$arrayaccess[] = "value";
+$arrayaccess[] = "ilk değer";
+$arrayaccess[] = "ikinci değer";
+print_r($arrayaccess);
?>
]]>
</programlisting>
+ &example.outputs;
+ <screen>
+<![CDATA[
+Array
+(
+ [0] => ilk değer
+ [1] => ikinci değer
+)
+]]>
+ </screen>
</informalexample>
</para>
</note>
- </refsect1>
+ <note>
+ <para>
+ Bu işlev gönderimli atamalarda çağrılmaz, aksi takdirde
+ <classname>ArrayAccess</classname> ile dizi boyularında yapılan dolaylı
+ değişiklikler aşırı yüklemeye yol açar.
+ Dolaylı değişiklik, boyutu doğrudan değiştirerek değil, bir alt boyutu
+ veya alt özelliği değiştirerek ya da dizi boyutunu gönderimli olarak
+ başka bir değişkene atayarak yapılır. Bunun için
+ <function>ArrayAccess::offsetGet</function> çağrılır. İşlem sadece
+ yöntem gönderimli değer döndürürse başarılı olur ki, bu da PHP 5.3.4
+ ve sonrasını gerektirir.
+ </para>
+ </note>
+</refsect1>
+
<!--
<refsect1 role="examples">
&reftitle.examples;
Modified: phpdoc/tr/trunk/language/predefined/arrayaccess/offsetunset.xml
===================================================================
--- phpdoc/tr/trunk/language/predefined/arrayaccess/offsetunset.xml 2018-10-18 08:58:39 UTC (rev 345830)
+++ phpdoc/tr/trunk/language/predefined/arrayaccess/offsetunset.xml 2018-10-18 09:10:21 UTC (rev 345831)
@@ -1,10 +1,11 @@
<?xml version="1.0" encoding="utf-8"?>
<!-- $Revision$ -->
-<!-- EN-Revision: 289713 Maintainer: haluk Status: ready -->
+<!-- EN-Revision: 336766 Maintainer: nilgun Status: ready -->
+<!-- CREDITS: haluk -->
<refentry xml:id="arrayaccess.offsetunset" xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink">
<refnamediv>
<refname>ArrayAccess::offsetUnset</refname>
- <refpurpose>Konum boşaltılır</refpurpose>
+ <refpurpose>Belirtilen konum boşaltılır</refpurpose>
</refnamediv>
<refsect1 role="description">
@@ -18,7 +19,7 @@
</para>
<note>
<para>
- <link linkend="language.types.typecasting">(unset)</link>'e tür
+ <link linkend="language.types.typecasting">(unset)</link> tür
çarpıtması yapıldığında bu yöntem çağrılmaz.
</para>
</note>
Modified: phpdoc/tr/trunk/language/predefined/errorexception/construct.xml
===================================================================
--- phpdoc/tr/trunk/language/predefined/errorexception/construct.xml 2018-10-18 08:58:39 UTC (rev 345830)
+++ phpdoc/tr/trunk/language/predefined/errorexception/construct.xml 2018-10-18 09:10:21 UTC (rev 345831)
@@ -1,6 +1,7 @@
<?xml version="1.0" encoding="utf-8"?>
<!-- $Revision$ -->
-<!-- EN-Revision: 288721 Maintainer: haluk Status: ready -->
+<!-- EN-Revision: 339185 Maintainer: nilgun Status: ready -->
+<!-- CREDITS: haluk -->
<refentry xml:id="errorexception.construct" xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink">
<refnamediv>
<refname>ErrorException::__construct</refname>
@@ -11,11 +12,12 @@
&reftitle.description;
<constructorsynopsis>
<modifier>public</modifier> <methodname>ErrorException::__construct</methodname>
- <methodparam choice="opt"><type>string</type><parameter>ileti</parameter></methodparam>
- <methodparam choice="opt"><type>int</type><parameter>num</parameter></methodparam>
- <methodparam choice="opt"><type>int</type><parameter>önem</parameter></methodparam>
- <methodparam choice="opt"><type>string</type><parameter>dosyaismi</parameter></methodparam>
- <methodparam choice="opt"><type>int</type><parameter>satırnum</parameter></methodparam>
+ <methodparam choice="opt"><type>string</type><parameter>ileti</parameter><initializer>""</initializer></methodparam>
+ <methodparam choice="opt"><type>int</type><parameter>num</parameter><initializer>0</initializer></methodparam>
+ <methodparam choice="opt"><type>int</type><parameter>önem</parameter><initializer>E_ERROR</initializer></methodparam>
+ <methodparam choice="opt"><type>string</type><parameter>dosyaadı</parameter><initializer>__FILE__</initializer></methodparam>
+ <methodparam choice="opt"><type>int</type><parameter>satırnum</parameter><initializer>__LINE__</initializer></methodparam>
+ <methodparam choice="opt"><type>Exception</type><parameter>önceki</parameter><initializer>&null;</initializer></methodparam>
</constructorsynopsis>
<para>
İstisna oluşturur.
@@ -48,6 +50,13 @@
<para>
İstisnanın önem derecesi.
</para>
+ <note>
+ <para>
+ Önem derecesi bir herhangi bir <type>integer</type> değer olabilirse
+ de, burada <link linkend="errorfunc.constants">hata sabitlerinin</link>
+ kullanılması amaçlanmıştır.
+ </para>
+ </note>
</listitem>
</varlistentry>
<varlistentry>
@@ -66,9 +75,41 @@
</para>
</listitem>
</varlistentry>
+ <varlistentry>
+ <term><parameter>önceki</parameter></term>
+ <listitem>
+ <para>
+ İstisna zincirleme için kullanılan önceki istisna.
+ </para>
+ </listitem>
+ </varlistentry>
</variablelist>
</para>
</refsect1>
+
+ <refsect1 role="changelog">
+ &reftitle.changelog;
+ <para>
+ <informaltable>
+ <tgroup cols="2">
+ <thead>
+ <row>
+ <entry>&Version;</entry>
+ <entry>&Description;</entry>
+ </row>
+ </thead>
+ <tbody>
+ <row>
+ <entry>5.3.0</entry>
+ <entry>
+ <parameter>önceki</parameter> değiştirgesi eklendi.
+ </entry>
+ </row>
+ </tbody>
+ </tgroup>
+ </informaltable>
+ </para>
+ </refsect1>
</refentry>
<!-- Keep this comment at the end of the file
Modified: phpdoc/tr/trunk/language/predefined/errorexception/getseverity.xml
===================================================================
--- phpdoc/tr/trunk/language/predefined/errorexception/getseverity.xml 2018-10-18 08:58:39 UTC (rev 345830)
+++ phpdoc/tr/trunk/language/predefined/errorexception/getseverity.xml 2018-10-18 09:10:21 UTC (rev 345831)
@@ -1,6 +1,7 @@
<?xml version="1.0" encoding="utf-8"?>
<!-- $Revision$ -->
-<!-- EN-Revision: 288721 Maintainer: haluk Status: ready -->
+<!-- EN-Revision: 339185 Maintainer: nilgun Status: ready -->
+<!-- CREDITS: haluk -->
<refentry xml:id="errorexception.getseverity" xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink">
<refnamediv>
<refname>ErrorException::getSeverity</refname>
@@ -39,9 +40,10 @@
<![CDATA[
<?php
try {
- throw new ErrorException("İstisna iletisi", 0, 75);
+ throw new ErrorException("İstisna iletisi", 0, E_USER_ERROR);
} catch(ErrorException $e) {
echo "Bu istisnanın önem derecesi: " . $e->getSeverity();
+ var_dump($e->getSeverity() === E_USER_ERROR);
}
?>
]]>
@@ -49,7 +51,8 @@
&example.outputs.similar;
<screen>
<![CDATA[
-Bu istisnanın önem derecesi: 75
+Bu istisnanın önem derecesi: 256
+bool(true)
]]>
</screen>
</example>