<?php
include_once $_SERVER['DOCUMENT_ROOT'] . '/include/shared-manual.inc';
$TOC = array();
$TOC_DEPRECATED = array();
$PARENTS = array();
include_once dirname(__FILE__) ."/toc/class.yaf-config-ini.inc";
$setup = array (
  'home' => 
  array (
    0 => 'index.php',
    1 => 'PHP Manual',
  ),
  'head' => 
  array (
    0 => 'UTF-8',
    1 => 'tr',
  ),
  'this' => 
  array (
    0 => 'yaf-config-ini.construct.php',
    1 => 'Yaf_Config_Ini::__construct',
    2 => 'Constructor of Yaf_Config_Ini',
  ),
  'up' => 
  array (
    0 => 'class.yaf-config-ini.php',
    1 => 'Yaf_Config_Ini',
  ),
  'prev' => 
  array (
    0 => 'class.yaf-config-ini.php',
    1 => 'Yaf_Config_Ini',
  ),
  'next' => 
  array (
    0 => 'yaf-config-ini.count.php',
    1 => 'Yaf_Config_Ini::count',
  ),
  'alternatives' => 
  array (
  ),
  'source' => 
  array (
    'lang' => 'en',
    'path' => 'reference/yaf/yaf_config_ini/construct.xml',
  ),
  'history' => 
  array (
  ),
);
$setup["toc"] = $TOC;
$setup["toc_deprecated"] = $TOC_DEPRECATED;
$setup["parents"] = $PARENTS;
manual_setup($setup);

contributors($setup);

?>
<div id="yaf-config-ini.construct" class="refentry">
 <div class="refnamediv">
<h1 class="refname">Yaf_Config_Ini::__construct</h1>
<p class="verinfo">(Yaf &gt;=1.0.0)</p><p class="refpurpose"><span class="refname">Yaf_Config_Ini::__construct</span> &mdash; <span class="dc-title">Constructor of Yaf_Config_Ini</span></p>

 </div>

 <div class="refsect1 description" id="refsect1-yaf-config-ini.construct-description">
  <h3 class="title">Açıklama</h3>
  <div class="constructorsynopsis dc-description">
   <span class="modifier">public</span><span class="modifier">function</span> <span class="methodname"><strong>Yaf_Config_Ini::__construct</strong></span>(<span class="methodparam"><span class="type"><a href="language.types.mixed.php" class="type mixed">mixed</a></span> <code class="parameter">$config_file</code></span>, <span class="methodparam"><span class="type"><a href="language.types.string.php" class="type string">string</a></span> <code class="parameter">$section</code><span class="initializer"> = NULL</span></span>)</div>

  <p class="simpara">Creates a new <span class="classname"><a href="class.yaf-config-ini.php" class="classname">Yaf_Config_Ini</a></span> instance from an INI file or an array. The resulting configuration is always read-only.</p>
 </div>


 <div class="refsect1 parameters" id="refsect1-yaf-config-ini.construct-parameters">
  <h3 class="title">Bağımsız Değişkenler</h3>
  <dl>
   
    <dt><code class="parameter">config_file</code></dt>
    <dd>
<p class="simpara">The path to an INI file, or an array of configuration values.</p>
    </dd>
   
   
    <dt><code class="parameter">section</code></dt>
    <dd>
<p class="simpara">The INI section name to load. If omitted, all sections are loaded.</p>
    </dd>
   
  </dl>
 </div>

 <div class="refsect1 returnvalues" id="refsect1-yaf-config-ini.construct-returnvalues">
  <h3 class="title">Dönen Değerler</h3>
<p class="simpara">No value is returned.</p>
 </div>


 <div class="refsect1 examples" id="refsect1-yaf-config-ini.construct-examples">
  <h3 class="title">Örnekler</h3>
  <div class="example" id="example-2">
   <p><strong>Örnek 1 <span class="methodname"><strong>Yaf_Config_Ini::__construct()</strong></span> example</strong></p>
   <div class="example-contents">
<div class="phpcode"><pre><code style="color: #000000"><span style="color: #0000BB">&lt;?php
</span><span style="color: #FF8000">/**
 * Assume /etc/myapp/application.ini contains:
 * [common]
 * application.name = "MyApp"
 * database.host    = "localhost"
 * database.port    = 3306
 *
 * [production : common]
 * log.level        = "warning"
 */

// Load only the "production" section, which inherits from "common"
</span><span style="color: #0000BB">$config </span><span style="color: #007700">= new </span><span style="color: #0000BB">Yaf_Config_Ini</span><span style="color: #007700">(</span><span style="color: #DD0000">'/etc/myapp/application.ini'</span><span style="color: #007700">, </span><span style="color: #DD0000">'production'</span><span style="color: #007700">);

echo </span><span style="color: #0000BB">$config</span><span style="color: #007700">-&gt;</span><span style="color: #0000BB">application</span><span style="color: #007700">-&gt;</span><span style="color: #0000BB">name</span><span style="color: #007700">, </span><span style="color: #DD0000">"\n"</span><span style="color: #007700">;
echo </span><span style="color: #0000BB">$config</span><span style="color: #007700">-&gt;</span><span style="color: #0000BB">database</span><span style="color: #007700">-&gt;</span><span style="color: #0000BB">host</span><span style="color: #007700">, </span><span style="color: #DD0000">"\n"</span><span style="color: #007700">;
echo </span><span style="color: #0000BB">$config</span><span style="color: #007700">-&gt;</span><span style="color: #0000BB">log</span><span style="color: #007700">-&gt;</span><span style="color: #0000BB">level</span><span style="color: #007700">, </span><span style="color: #DD0000">"\n"</span><span style="color: #007700">;
</span><span style="color: #0000BB">?&gt;</span></code></pre></div>
   </div>

   <div class="example-contents"><p>
Yukarıdaki örnek şuna benzer bir çıktı üretir:</p></div>
   <div class="example-contents screen">
<div class="examplescode"><pre class="examplescode">MyApp
localhost
warning</pre>
</div>
   </div>
  </div>
 </div>


 <div class="refsect1 seealso" id="refsect1-yaf-config-ini.construct-seealso">
  <h3 class="title">Ayrıca Bakınız</h3>
  <ul class="simplelist">
   <li><span class="methodname"><a href="yaf-config-ini.get.php" class="methodname" rel="rdfs-seeAlso">Yaf_Config_Ini::get()</a> - Retrieve a configuration value</span></li>
   <li><span class="methodname"><a href="yaf-config-ini.set.php" class="methodname" rel="rdfs-seeAlso">Yaf_Config_Ini::set()</a> - Set a configuration value</span></li>
   <li><span class="methodname"><a href="yaf-config-ini.readonly.php" class="methodname" rel="rdfs-seeAlso">Yaf_Config_Ini::readonly()</a> - Check if configuration is read-only</span></li>
  </ul>
 </div>

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