<?php
include_once $_SERVER['DOCUMENT_ROOT'] . '/include/shared-manual.inc';
$TOC = array();
$TOC_DEPRECATED = array();
$PARENTS = array();
include_once dirname(__FILE__) ."/toc/class.intlcalendar.inc";
$setup = array (
  'home' => 
  array (
    0 => 'index.php',
    1 => 'PHP Manual',
  ),
  'head' => 
  array (
    0 => 'UTF-8',
    1 => 'zh',
  ),
  'this' => 
  array (
    0 => 'intlcalendar.setlenient.php',
    1 => 'IntlCalendar::setLenient',
    2 => 'Set whether date/time interpretation is to be lenient',
  ),
  'up' => 
  array (
    0 => 'class.intlcalendar.php',
    1 => 'IntlCalendar',
  ),
  'prev' => 
  array (
    0 => 'intlcalendar.setfirstdayofweek.php',
    1 => 'IntlCalendar::setFirstDayOfWeek',
  ),
  'next' => 
  array (
    0 => 'intlcalendar.setminimaldaysinfirstweek.php',
    1 => 'IntlCalendar::setMinimalDaysInFirstWeek',
  ),
  'alternatives' => 
  array (
  ),
  'source' => 
  array (
    'lang' => 'en',
    'path' => 'reference/intl/intlcalendar/setlenient.xml',
  ),
  'history' => 
  array (
  ),
);
$setup["toc"] = $TOC;
$setup["toc_deprecated"] = $TOC_DEPRECATED;
$setup["parents"] = $PARENTS;
manual_setup($setup);

contributors($setup);

?>
<div id="intlcalendar.setlenient" class="refentry">
 <div class="refnamediv">
  <h1 class="refname">IntlCalendar::setLenient</h1>
  <p class="verinfo">(PHP 5 &gt;= 5.5.0, PHP 7, PHP 8, PECL &gt;= 3.0.0a1)</p><p class="refpurpose"><span class="refname">IntlCalendar::setLenient</span> &mdash; <span class="dc-title">Set whether date/time interpretation is to be lenient</span></p>

 </div>

 <div class="refsect1 description" id="refsect1-intlcalendar.setlenient-description">
  <h3 class="title">说明</h3>
  <p class="para">
   面向对象风格
  </p>
  <div class="methodsynopsis dc-description">
   <span class="modifier">public</span> <span class="methodname"><strong>IntlCalendar::setLenient</strong></span>(<span class="methodparam"><span class="type"><a href="language.types.boolean.php" class="type bool">bool</a></span> <code class="parameter">$lenient</code></span>): <span class="type"><a href="language.types.singleton.php" class="type true">true</a></span></div>

  <p class="para rdfs-comment">
   过程化风格
  </p>
  <div class="methodsynopsis dc-description"><span class="methodname"><strong>intlcal_set_lenient</strong></span>(<span class="methodparam"><span class="type"><a href="class.intlcalendar.php" class="type IntlCalendar">IntlCalendar</a></span> <code class="parameter">$calendar</code></span>, <span class="methodparam"><span class="type"><a href="language.types.boolean.php" class="type bool">bool</a></span> <code class="parameter">$lenient</code></span>): <span class="type"><a href="language.types.singleton.php" class="type true">true</a></span></div>

  <p class="para rdfs-comment">
   Defines whether the calendar is ‘lenient mode’. In such a mode, some of
   out-of-bounds values for some fields are accepted, the behavior being
   similar to that of <span class="function"><a href="intlcalendar.add.php" class="function">IntlCalendar::add()</a></span> (i.e., the value
   wraps around, carrying into more significant fields each time). If the
   lenient mode is off, then such values will generate an error.
  </p>
 </div>


 <div class="refsect1 parameters" id="refsect1-intlcalendar.setlenient-parameters">
  <h3 class="title">参数</h3>
  <dl>
   
    <dt><code class="parameter">calendar</code></dt>
    <dd>
     <p class="para"><span class="classname"><a href="class.intlcalendar.php" class="classname">IntlCalendar</a></span> 实例。</p>
    </dd>
   
   
    <dt><code class="parameter">lenient</code></dt>
    <dd>
     <p class="para">
      Use <strong><code><a href="reserved.constants.php#constant.true">true</a></code></strong> to activate the lenient mode; <strong><code><a href="reserved.constants.php#constant.false">false</a></code></strong> otherwise.
     </p>
    </dd>
   
  </dl>
 </div>


 <div class="refsect1 returnvalues" id="refsect1-intlcalendar.setlenient-returnvalues">
  <h3 class="title">返回值</h3>
  <p class="para">
   总是返回 <strong><code><a href="reserved.constants.php#constant.true">true</a></code></strong>。
  </p>
 </div>


 <div class="refsect1 changelog" id="refsect1-intlcalendar.setlenient-changelog">
  <h3 class="title">更新日志</h3>
  <p class="para">
   <table class="doctable informaltable">
    
     <thead>
      <tr>
       <th>版本</th>
       <th>说明</th>
      </tr>

     </thead>

     <tbody class="tbody">
      <tr>
 <td>8.2.0</td>
 <td>
  现在返回类型为 <strong><code><a href="reserved.constants.php#constant.true">true</a></code></strong>；之前是 <span class="type"><a href="language.types.boolean.php" class="type bool">bool</a></span>。
 </td>
</tr>

     </tbody>
    
   </table>

  </p>
 </div>


 <div class="refsect1 examples" id="refsect1-intlcalendar.setlenient-examples">
  <h3 class="title">示例</h3>
  <p class="para">
   See the example in <span class="function"><a href="intlcalendar.islenient.php" class="function">IntlCalendar::isLenient()</a></span>.
  </p>
 </div>


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