1
0
mirror of https://github.com/php/doc-tr.git synced 2026-03-24 07:12:18 +01:00
Files
2022-12-18 21:12:05 +03:00

119 lines
3.2 KiB
XML
Raw Permalink Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
<?xml version="1.0" encoding="utf-8"?>
<!-- EN-Revision: ec2fe9a592f794978114ef5021db9f1d00c2e05d Maintainer: nilgun Status: ready -->
<refentry xml:id="reflectionclass.newinstanceargs" xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink">
<refnamediv>
<refname>ReflectionClass::newInstanceArgs</refname>
<refpurpose>Belirtilen bağımsız değişkenlerden yeni bir sınıf örneği oluşturur</refpurpose>
</refnamediv>
<refsect1 role="description">
&reftitle.description;
<methodsynopsis role="ReflectionClass">
<modifier>public</modifier>
<type class="union"><type>object</type><type>null</type></type><methodname>ReflectionClass::newInstanceArgs</methodname>
<methodparam choice="opt"><type>array</type><parameter>bağımsız_değişkenler</parameter><initializer>[]</initializer></methodparam>
</methodsynopsis>
<para>
Belirtilen bağımsız değişkenlerden yeni bir sınıf örneği oluşturur.
Belirtilen bağımsız değişkenler sınıf kurucusuna aktarılır.
</para>
&warn.undocumented.func;
</refsect1>
<refsect1 role="parameters">
&reftitle.parameters;
<para>
<variablelist>
<varlistentry>
<term><parameter>bağımsız_değişkenler</parameter></term>
<listitem>
<para>
Bir dizi olarak sınıf kurucusuna aktarılacak bağımsız değişkenler.
</para>
</listitem>
</varlistentry>
</variablelist>
</para>
</refsect1>
<refsect1 role="returnvalues">
&reftitle.returnvalues;
<para>
Sınıfın yeni bir örneğini döndürür. Başarısızlık durumunda &null; döner.
</para>
</refsect1>
<refsect1 role="errors">
&reftitle.errors;
<para>
Sınıfın kurucusu public değilse bir
<classname>ReflectionException</classname> yavrulanır.
</para>
<para>
Sınıfın bir kurucusu yoksa ve <parameter>bağımsız_değişkenler</parameter>
dizisi bir veya daha fazla bağımsız değişken içeriyorsa bir
<classname>ReflectionException</classname> yavrulanır.
</para>
</refsect1>
<refsect1 role="examples">
&reftitle.examples;
<para>
<example>
<title>- <methodname>ReflectionClass::newInstanceArgs</methodname>
temel kullanım örneği</title>
<programlisting role="php">
<![CDATA[
<?php
$class = new ReflectionClass('ReflectionFunction');
$örnek = $class->newInstanceArgs(array('dize'));
var_dump($örnek);
?>
]]>
</programlisting>
&example.outputs;
<screen>
<![CDATA[
object(ReflectionFunction)#2 (1) {
["name"]=>
string(4) "dize"
}
]]>
</screen>
</example>
</para>
</refsect1>
<refsect1 role="seealso">
&reftitle.seealso;
<simplelist>
<member><methodname>ReflectionClass::newInstance</methodname></member>
<member><methodname>ReflectionClass::newInstanceWithoutConstructor</methodname></member>
</simplelist>
</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
-->