<?php
include_once $_SERVER['DOCUMENT_ROOT'] . '/include/shared-manual.inc';
$TOC = array();
$TOC_DEPRECATED = array();
$PARENTS = array();
include_once dirname(__FILE__) ."/toc/book.yaf.inc";
$setup = array (
  'home' => 
  array (
    0 => 'index.php',
    1 => 'PHP Manual',
  ),
  'head' => 
  array (
    0 => 'UTF-8',
    1 => 'uk',
  ),
  'this' => 
  array (
    0 => 'yaf.constants.php',
    1 => 'Попередньо визначені константи',
    2 => 'Попередньо визначені константи',
  ),
  'up' => 
  array (
    0 => 'book.yaf.php',
    1 => 'Yaf',
  ),
  'prev' => 
  array (
    0 => 'yaf.configuration.php',
    1 => 'Налаштування під час виконання',
  ),
  'next' => 
  array (
    0 => 'yaf.tutorials.php',
    1 => 'Приклади',
  ),
  'alternatives' => 
  array (
  ),
  'source' => 
  array (
    'lang' => 'en',
    'path' => 'reference/yaf/constants.xml',
  ),
  'history' => 
  array (
  ),
);
$setup["toc"] = $TOC;
$setup["toc_deprecated"] = $TOC_DEPRECATED;
$setup["parents"] = $PARENTS;
manual_setup($setup);

contributors($setup);

?>
<div id="yaf.constants" class="appendix">
 <h1 class="title">Попередньо визначені константи</h1>

 <p class="simpara">
Константи, описані нижче — визначені цим розширенням, тож доступні, коли
розширення скомпільовано як частина PHP або динамічно підключене під час
виконання.
</p>
 <p class="simpara">
  When an error occurs during startup, routing, dispatching or
  autoloading, Yaf either throws a subclass of
  <span class="exceptionname"><a href="class.yaf-exception.php" class="exceptionname">Yaf_Exception</a></span> whose exception code is one of the
  <code class="literal">YAF_ERR_*</code> constants, or triggers a PHP error of the
  corresponding type — see
  <span class="methodname"><a href="yaf-dispatcher.throwexception.php" class="methodname">Yaf_Dispatcher::throwException()</a></span> and
  <span class="methodname"><a href="yaf-application.getlasterrorno.php" class="methodname">Yaf_Application::getLastErrorNo()</a></span>.
 </p>
 <p class="para">
  <dl>
   
    <dt id="constant.yaf-version">
     <strong><code><a href="yaf.constants.php#constant.yaf-version">YAF_VERSION</a></code></strong>
     (<span class="type"><a href="language.types.string.php" class="type string">string</a></span>)
    </dt>
    <dd>
     <p class="simpara">
      The version of the loaded Yaf extension, e.g.
      <code class="literal">&quot;3.3.8&quot;</code>.
     </p>
    </dd>
   
   
    <dt id="constant.yaf-environ">
     <strong><code><a href="yaf.constants.php#constant.yaf-environ">YAF_ENVIRON</a></code></strong>
     (<span class="type"><a href="language.types.string.php" class="type string">string</a></span>)
    </dt>
    <dd>
     <p class="simpara">
      The value of the
      <a href="yaf.configuration.php#ini.yaf.environ" class="link">yaf.environ</a>
      directive at the time the extension was started, used by
      <span class="classname"><a href="class.yaf-application.php" class="classname">Yaf_Application</a></span> to select the configuration
      section. Defaults to <code class="literal">&quot;product&quot;</code>.
     </p>
    </dd>
   
   
    <dt id="constant.yaf-err-startup-failed">
     <strong><code><a href="yaf.constants.php#constant.yaf-err-startup-failed">YAF_ERR_STARTUP_FAILED</a></code></strong>
     (<span class="type"><a href="language.types.integer.php" class="type int">int</a></span>)
    </dt>
    <dd>
     <p class="simpara">
      Startup failure, value <code class="literal">512</code>. Thrown as a
      <span class="exceptionname"><a href="class.yaf-exception-startuperror.php" class="exceptionname">Yaf_Exception_StartupError</a></span> when
      <span class="classname"><a href="class.yaf-application.php" class="classname">Yaf_Application</a></span> could not be started, e.g. the
      application directory is missing or the configuration is invalid.
     </p>
    </dd>
   
   
    <dt id="constant.yaf-err-route-failed">
     <strong><code><a href="yaf.constants.php#constant.yaf-err-route-failed">YAF_ERR_ROUTE_FAILED</a></code></strong>
     (<span class="type"><a href="language.types.integer.php" class="type int">int</a></span>)
    </dt>
    <dd>
     <p class="simpara">
      Routing failure, value <code class="literal">513</code>. Thrown as a
      <span class="classname"><a href="class.yaf-exception-routerfailed.php" class="classname">Yaf_Exception_RouterFailed</a></span> when no route was
      able to route the request.
     </p>
    </dd>
   
   
    <dt id="constant.yaf-err-dispatch-failed">
     <strong><code><a href="yaf.constants.php#constant.yaf-err-dispatch-failed">YAF_ERR_DISPATCH_FAILED</a></code></strong>
     (<span class="type"><a href="language.types.integer.php" class="type int">int</a></span>)
    </dt>
    <dd>
     <p class="simpara">
      Dispatch failure, value <code class="literal">514</code>. Thrown as a
      <span class="classname"><a href="class.yaf-exception-dispatchfailed.php" class="classname">Yaf_Exception_DispatchFailed</a></span> when the request
      could not be dispatched, e.g. when the
      <a href="yaf.configuration.php#ini.yaf.forward-limit" class="link">yaf.forward_limit</a> is
      exceeded.
     </p>
    </dd>
   
   
    <dt id="constant.yaf-err-notfound-module">
     <strong><code><a href="yaf.constants.php#constant.yaf-err-notfound-module">YAF_ERR_NOTFOUND_MODULE</a></code></strong>
     (<span class="type"><a href="language.types.integer.php" class="type int">int</a></span>)
    </dt>
    <dd>
     <p class="simpara">
      The module could not be found, value <code class="literal">515</code>. Thrown
      as a <span class="classname"><a href="class.yaf-exception-loadfailed-module.php" class="classname">Yaf_Exception_LoadFailed_Module</a></span>.
     </p>
    </dd>
   
   
    <dt id="constant.yaf-err-notfound-controller">
     <strong><code><a href="yaf.constants.php#constant.yaf-err-notfound-controller">YAF_ERR_NOTFOUND_CONTROLLER</a></code></strong>
     (<span class="type"><a href="language.types.integer.php" class="type int">int</a></span>)
    </dt>
    <dd>
     <p class="simpara">
      The controller could not be found, value <code class="literal">516</code>.
      Thrown as a
      <span class="classname"><a href="class.yaf-exception-loadfailed-controller.php" class="classname">Yaf_Exception_LoadFailed_Controller</a></span>.
     </p>
    </dd>
   
   
    <dt id="constant.yaf-err-notfound-action">
     <strong><code><a href="yaf.constants.php#constant.yaf-err-notfound-action">YAF_ERR_NOTFOUND_ACTION</a></code></strong>
     (<span class="type"><a href="language.types.integer.php" class="type int">int</a></span>)
    </dt>
    <dd>
     <p class="simpara">
      The action could not be found, value <code class="literal">517</code>. Thrown
      as a <span class="classname"><a href="class.yaf-exception-loadfailed-action.php" class="classname">Yaf_Exception_LoadFailed_Action</a></span>.
     </p>
    </dd>
   
   
    <dt id="constant.yaf-err-notfound-view">
     <strong><code><a href="yaf.constants.php#constant.yaf-err-notfound-view">YAF_ERR_NOTFOUND_VIEW</a></code></strong>
     (<span class="type"><a href="language.types.integer.php" class="type int">int</a></span>)
    </dt>
    <dd>
     <p class="simpara">
      The view script could not be found, value <code class="literal">518</code>.
      Thrown as a <span class="classname"><a href="class.yaf-exception-loadfailed-view.php" class="classname">Yaf_Exception_LoadFailed_View</a></span>.
     </p>
    </dd>
   
   
    <dt id="constant.yaf-err-call-failed">
     <strong><code><a href="yaf.constants.php#constant.yaf-err-call-failed">YAF_ERR_CALL_FAILED</a></code></strong>
     (<span class="type"><a href="language.types.integer.php" class="type int">int</a></span>)
    </dt>
    <dd>
     <p class="simpara">
      Calling a method failed, value <code class="literal">519</code>. Used when an
      action method or another callable could not be invoked.
     </p>
    </dd>
   
   
    <dt id="constant.yaf-err-autoload-failed">
     <strong><code><a href="yaf.constants.php#constant.yaf-err-autoload-failed">YAF_ERR_AUTOLOAD_FAILED</a></code></strong>
     (<span class="type"><a href="language.types.integer.php" class="type int">int</a></span>)
    </dt>
    <dd>
     <p class="simpara">
      Autoloading failed, value <code class="literal">520</code>. Triggered by
      <span class="classname"><a href="class.yaf-loader.php" class="classname">Yaf_Loader</a></span> when the file for a class cannot
      be loaded, e.g. the resolved path is too long.
     </p>
    </dd>
   
   
    <dt id="constant.yaf-err-type-error">
     <strong><code><a href="yaf.constants.php#constant.yaf-err-type-error">YAF_ERR_TYPE_ERROR</a></code></strong>
     (<span class="type"><a href="language.types.integer.php" class="type int">int</a></span>)
    </dt>
    <dd>
     <p class="simpara">
      A type error occurred, value <code class="literal">521</code>. Thrown as a
      <span class="exceptionname"><a href="class.yaf-exception-typeerror.php" class="exceptionname">Yaf_Exception_TypeError</a></span> when an argument or a
      class definition has an unexpected type, e.g. a controller that is
      not a class extending
      <span class="classname"><a href="class.yaf-controller-abstract.php" class="classname">Yaf_Controller_Abstract</a></span>.
     </p>
    </dd>
   
   
    <dt id="constant.yaf-err-access-error">
     <strong><code><a href="yaf.constants.php#constant.yaf-err-access-error">YAF_ERR_ACCESS_ERROR</a></code></strong>
     (<span class="type"><a href="language.types.integer.php" class="type int">int</a></span>)
    </dt>
    <dd>
     <p class="simpara">
      Access is not allowed, value <code class="literal">522</code>. Used, for
      example, when attempting to call an action method that is not
      public.
     </p>
     <p class="simpara">
      (Available since Yaf 3.2.0.)
     </p>
    </dd>
   
  </dl>
 </p>
</div>
<?php manual_footer($setup); ?>