<?php
include_once $_SERVER['DOCUMENT_ROOT'] . '/include/shared-manual.inc';
$TOC = array();
$TOC_DEPRECATED = array();
$PARENTS = array();
include_once dirname(__FILE__) ."/toc/ref.classobj.inc";
$setup = array (
  'home' => 
  array (
    0 => 'index.php',
    1 => 'PHP Manual',
  ),
  'head' => 
  array (
    0 => 'UTF-8',
    1 => 'tr',
  ),
  'this' => 
  array (
    0 => 'function.get-called-class.php',
    1 => 'get_called_class',
    2 => '&Ccedil;ağrıldığı duruk y&ouml;ntemin sınıf ismini d&ouml;nd&uuml;r&uuml;r',
  ),
  'up' => 
  array (
    0 => 'ref.classobj.php',
    1 => 'Sınıf ve Nesne İşlevleri',
  ),
  'prev' => 
  array (
    0 => 'function.enum-exists.php',
    1 => 'enum_exists',
  ),
  'next' => 
  array (
    0 => 'function.get-class.php',
    1 => 'get_class',
  ),
  'alternatives' => 
  array (
  ),
  'source' => 
  array (
    'lang' => 'tr',
    'path' => 'reference/classobj/functions/get-called-class.xml',
  ),
  'history' => 
  array (
  ),
);
$setup["toc"] = $TOC;
$setup["toc_deprecated"] = $TOC_DEPRECATED;
$setup["parents"] = $PARENTS;
manual_setup($setup);

contributors($setup);

?>
<div id="function.get-called-class" class="refentry">
 <div class="refnamediv">
  <h1 class="refname">get_called_class</h1>
  <p class="verinfo">(PHP 5 &gt;= 5.3.0, PHP 7, PHP 8)</p><p class="refpurpose"><span class="refname">get_called_class</span> &mdash; <span class="dc-title">Çağrıldığı duruk yöntemin sınıf ismini döndürür</span></p>

 </div>
 <div class="refsect1 description" id="refsect1-function.get-called-class-description">
  <h3 class="title">Açıklama</h3>
  <div class="methodsynopsis dc-description">
   <span class="methodname"><strong>get_called_class</strong></span>(): <span class="type"><a href="language.types.string.php" class="type string">string</a></span></div>

  <p class="para rdfs-comment">
   Çağrıldığı duruk yöntemin sınıf ismini döndürür.
  </p>
 </div>


 <div class="refsect1 parameters" id="refsect1-function.get-called-class-parameters">
  <h3 class="title">Bağımsız Değişkenler</h3>
  <p class="para">Bu işlevin bağımsız değişkeni yoktur.</p>
 </div>


 <div class="refsect1 returnvalues" id="refsect1-function.get-called-class-returnvalues">
  <h3 class="title">Dönen Değerler</h3>
  <p class="para">
   Çağrıldığı sınıfın ismini döndürür.
  </p>
 </div>


 <div class="refsect1 errors" id="refsect1-function.get-called-class-errors">
  <h3 class="title">Hatalar/İstisnalar</h3>
  <p class="para">
   <span class="function"><strong>get_called_class()</strong></span> bir sınıfın dışından çağrılırsa
   <span class="classname"><a href="class.error.php" class="classname">Error</a></span> istisnası oluşur. PHP 8.0.0 öncesinde,
   <strong><code><a href="errorfunc.constants.php#constant.e-warning">E_WARNING</a></code></strong> düzeyinde bir  hata oluşurdu.
  </p>
 </div>

 <div class="refsect1 changelog" id="refsect1-function.get-called-class-changelog">
  <h3 class="title">Sürüm Bilgisi</h3>
  <p class="para">
   <table class="doctable informaltable">
    
     <thead>
      <tr>
       <th>Sürüm: </th>
       <th>Açıklama</th>
      </tr>

     </thead>

     <tbody class="tbody">
      <tr>
       <td>8.0.0</td>
       <td>
        İşlev bir sınıfın dışından çağrıldığında artık
        <span class="classname"><a href="class.error.php" class="classname">Error</a></span> istisnası oluşuyor.
        Evvelce <strong><code><a href="errorfunc.constants.php#constant.e-warning">E_WARNING</a></code></strong> düzeyinde hata oluşur
        ve işlev <strong><code><a href="reserved.constants.php#constant.false">false</a></code></strong> ile dönerdi.
       </td>
      </tr>

     </tbody>
    
   </table>

  </p>
 </div>

 <div class="refsect1 examples" id="refsect1-function.get-called-class-examples">
  <h3 class="title">Örnekler</h3>
  <p class="para">
   <div class="example" id="example-1">
    <p><strong>Örnek 1 - <span class="function"><strong>get_called_class()</strong></span> örneği</strong></p>
    <div class="example-contents">
<div class="phpcode"><code><span style="color: #000000"><span style="color: #0000BB">&lt;?php<br /><br /></span><span style="color: #007700">class </span><span style="color: #0000BB">foo </span><span style="color: #007700">{<br />    static public function </span><span style="color: #0000BB">test</span><span style="color: #007700">() {<br />        </span><span style="color: #0000BB">var_dump</span><span style="color: #007700">(</span><span style="color: #0000BB">get_called_class</span><span style="color: #007700">());<br />    }<br />}<br /><br />class </span><span style="color: #0000BB">bar </span><span style="color: #007700">extends </span><span style="color: #0000BB">foo </span><span style="color: #007700">{<br />}<br /><br /></span><span style="color: #0000BB">foo</span><span style="color: #007700">::</span><span style="color: #0000BB">test</span><span style="color: #007700">();<br /></span><span style="color: #0000BB">bar</span><span style="color: #007700">::</span><span style="color: #0000BB">test</span><span style="color: #007700">();<br /><br /></span><span style="color: #0000BB">?&gt;</span></span></code></div>
    </div>

    <div class="example-contents"><p>
Yukarıdaki örneğin çıktısı:</p></div>
    <div class="example-contents screen">
<div class="examplescode"><pre class="examplescode">string(3) &quot;foo&quot;
string(3) &quot;bar&quot;</pre>
</div>
    </div>
   </div>
  </p>
 </div>

 <div class="refsect1 seealso" id="refsect1-function.get-called-class-seealso">
  <h3 class="title">Ayrıca Bakınız</h3>
  <p class="para">
   <ul class="simplelist">
    <li><span class="function"><a href="function.get-parent-class.php" class="function" rel="rdfs-seeAlso">get_parent_class()</a> - Nesne veya sınıfın ebeveyn sınıfının ismini d&ouml;nd&uuml;r&uuml;r</span></li>
    <li><span class="function"><a href="function.get-class.php" class="function" rel="rdfs-seeAlso">get_class()</a> - Bir nesnenin ait olduğu sınıfın ismini d&ouml;nd&uuml;r&uuml;r</span></li>
    <li><span class="function"><a href="function.is-subclass-of.php" class="function" rel="rdfs-seeAlso">is_subclass_of()</a> - Belirtilen sınıfın belirtilen nesnenin ebeveynlerinden biri mi
   yoksa onu ger&ccedil;ekleyen mi diye bakar</span></li>
   </ul>
  </p>
 </div>

</div><?php manual_footer($setup); ?>