<?php
include_once $_SERVER['DOCUMENT_ROOT'] . '/include/shared-manual.inc';
$TOC = array();
$TOC_DEPRECATED = array();
$PARENTS = array();
include_once dirname(__FILE__) ."/toc/language.constants.inc";
$setup = array (
  'home' => 
  array (
    0 => 'index.php',
    1 => 'PHP Manual',
  ),
  'head' => 
  array (
    0 => 'UTF-8',
    1 => 'tr',
  ),
  'this' => 
  array (
    0 => 'language.constants.magic.php',
    1 => 'Sihirli Sabitler',
    2 => 'Sihirli Sabitler',
  ),
  'up' => 
  array (
    0 => 'language.constants.php',
    1 => 'Sabitler',
  ),
  'prev' => 
  array (
    0 => 'language.constants.predefined.php',
    1 => '&Ouml;ntanımlı Sabitler',
  ),
  'next' => 
  array (
    0 => 'language.expressions.php',
    1 => 'İfadeler',
  ),
  'alternatives' => 
  array (
  ),
  'source' => 
  array (
    'lang' => 'tr',
    'path' => 'language/constants.xml',
  ),
  'history' => 
  array (
  ),
);
$setup["toc"] = $TOC;
$setup["toc_deprecated"] = $TOC_DEPRECATED;
$setup["parents"] = $PARENTS;
manual_setup($setup);

contributors($setup);

?>
<div id="language.constants.magic" class="sect1">
   <h2 class="title">Sihirli Sabitler</h2>
   <p class="para">
    Değerleri kullanıldıkları yere göre değişen dokuz sihirli sabit vardır.
    Örneğin, <strong><code><a href="language.constants.magic.php#constant.line">__LINE__</a></code></strong> sabitinin değeri betiğin hangi
    satırında kullanıldığına bağlıdır. Çalışma zamanında çözümlenen sırada
    sabitlerin tersine &quot;sihirli&quot; sabitlerin tamamı derleme sırasında çözümlenir.
    Bu özel sabitler büyük-küçük harf farkına duyarsızdır ve aşağıda
    listelenmişlerdir:
   </p>
   <p class="para">
    <table class="doctable table">
     <caption><strong>PHP&#039;nin sihirli sabitleri</strong></caption>
     
      <thead>
       <tr>
        <th>İsim</th>
        <th>Açıklama</th>
       </tr>

      </thead>

      <tbody class="tbody">
       <tr id="constant.line">
        <td><strong><code><a href="language.constants.magic.php#constant.line">__LINE__</a></code></strong></td>
        <td>
          Dosyada geçerli satırın numarası.
        </td>
       </tr>

       <tr id="constant.file">
        <td><strong><code><a href="language.constants.magic.php#constant.file">__FILE__</a></code></strong></td>
        <td>
          Dosyanın veya sembolik bağdan çözümlenen dosyanın tam dosya yolu ve
          dosya ismi. <span class="function"><a href="function.include.php" class="function">include</a></span> işlevi ile betiğe eklenen bir
          dosyanın içinde kullanıldığında betiğin ismini değil, eklenen dosyanın
          ismini içerir.
        </td>
       </tr>

       <tr id="constant.dir">
        <td><strong><code><a href="language.constants.magic.php#constant.dir">__DIR__</a></code></strong></td>
        <td>
          Dosyanın bulurduğu dizin. Dahil edilen bir dosyanın içinde
          kullanıldığında dahil edilen dosyanın dizini döner. Bu
          <code class="literal">dirname(__FILE__)</code> işlevine eşdeğerder. Bu dizin
          isminin sonuna bir kök dizin olmadıkça bir bölü imi konmaz.
        </td>
       </tr>

       <tr id="constant.function">
        <td><strong><code><a href="language.constants.magic.php#constant.function">__FUNCTION__</a></code></strong></td>
        <td>
          İşlev ismi veya anonim işlevler için <code class="literal">{closure}</code>.
        </td>
       </tr>

       <tr id="constant.class">
        <td><strong><code><a href="language.constants.magic.php#constant.class">__CLASS__</a></code></strong></td>
        <td>
          Sınıf ismi. Bildirildiği isim alanını
          (<code class="literal">Foo\Bar</code> gibi) içerir. Kalıtsal özelliklerin içinde kullanıldığında __CLASS__, içinde kullanıldığı sınıfın ismidir.
        </td>
       </tr>

       <tr id="constant.trait">
        <td><strong><code><a href="language.constants.magic.php#constant.trait">__TRAIT__</a></code></strong></td>
        <td>
         Kalıtsal özellik ismi. Bildirildiği isim alanını
         (<code class="literal">Foo\Bar</code> gibi) içerir.
        </td>
       </tr>

       <tr id="constant.method">
        <td><strong><code><a href="language.constants.magic.php#constant.method">__METHOD__</a></code></strong></td>
        <td>
          Yöntem ismi.
        </td>
       </tr>

       <tr id="constant.namespace">
        <td><strong><code><a href="language.constants.magic.php#constant.namespace">__NAMESPACE__</a></code></strong></td>
        <td>
          Geçerli isim alanının adı.
        </td>
       </tr>

       <tr id="constant.coloncolonclass">
        <td><strong><code><span class="replaceable">SınıfAdı</span>::class</code></strong></td>
        <td>
         Tamamen nitelenmiş sınıf ismi.
        </td>
       </tr>

      </tbody>
     
    </table>

   </p>

   <div class="sect2">
    <h3 class="title">Ayrıca Bakınız</h3>
    <p class="para">
     <ul class="simplelist">
      <li><a href="language.oop5.basic.php#language.oop5.basic.class.class" class="link">::class</a></li>
      <li><span class="function"><a href="function.get-class.php" class="function">get_class()</a></span></li>
      <li><span class="function"><a href="function.get-object-vars.php" class="function">get_object_vars()</a></span></li>
      <li><span class="function"><a href="function.file-exists.php" class="function">file_exists()</a></span></li>
      <li><span class="function"><a href="function.function-exists.php" class="function">function_exists()</a></span></li>
     </ul>
    </p>
   </div>
  </div><?php manual_footer($setup); ?>