Sophie

Sophie

distrib > Mageia > 7 > i586 > by-pkgid > 2b917e0437961edec048f1d15e2d7449 > files > 8953

php-manual-en-7.2.11-1.mga7.noarch.rpm

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
 <head>
  <meta http-equiv="content-type" content="text/html; charset=UTF-8">
  <title>Set whether date/time interpretation is to be lenient</title>

 </head>
 <body><div class="manualnavbar" style="text-align: center;">
 <div class="prev" style="text-align: left; float: left;"><a href="intlcalendar.setfirstdayofweek.html">IntlCalendar::setFirstDayOfWeek</a></div>
 <div class="next" style="text-align: right; float: right;"><a href="intlcalendar.setminimaldaysinfirstweek.html">IntlCalendar::setMinimalDaysInFirstWeek</a></div>
 <div class="up"><a href="class.intlcalendar.html">IntlCalendar</a></div>
 <div class="home"><a href="index.html">PHP Manual</a></div>
</div><hr /><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, 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">Description</h3>
  <p class="para">
   Object oriented style
  </p>
  <div class="methodsynopsis dc-description">
   <span class="modifier">public</span> <span class="type">bool</span> <span class="methodname"><strong>IntlCalendar::setLenient</strong></span>
    ( <span class="methodparam"><span class="type">bool</span> <code class="parameter">$isLenient</code></span>
   )</div>

  <p class="para rdfs-comment">
   Procedural style
  </p>
  <div class="methodsynopsis dc-description">
   <span class="type">bool</span> <span class="methodname"><strong>intlcal_set_lenient</strong></span>
    ( <span class="methodparam"><span class="type"><a href="class.intlcalendar.html" class="type IntlCalendar">IntlCalendar</a></span> <code class="parameter">$cal</code></span>
   , <span class="methodparam"><span class="type">bool</span> <code class="parameter">$isLenient</code></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.html" 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">Parameters</h3>
  <dl>

   
    <dt>
<code class="parameter">cal</code></dt>

    <dd>

     <p class="para">
      The IntlCalendar resource.
     </p>
    </dd>

   
   
    <dt>
<code class="parameter">isLenient</code></dt>

    <dd>

     <p class="para">
      Use <strong><code>TRUE</code></strong> to activate the lenient mode; <strong><code>FALSE</code></strong> otherwise.
     </p>
    </dd>

   
  </dl>

 </div>


 <div class="refsect1 returnvalues" id="refsect1-intlcalendar.setlenient-returnvalues">
  <h3 class="title">Return Values</h3>
  <p class="para">
   Returns <strong><code>TRUE</code></strong> on success. Failure can only happen due to invalid parameters.
  </p>
 </div>



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


</div><hr /><div class="manualnavbar" style="text-align: center;">
 <div class="prev" style="text-align: left; float: left;"><a href="intlcalendar.setfirstdayofweek.html">IntlCalendar::setFirstDayOfWeek</a></div>
 <div class="next" style="text-align: right; float: right;"><a href="intlcalendar.setminimaldaysinfirstweek.html">IntlCalendar::setMinimalDaysInFirstWeek</a></div>
 <div class="up"><a href="class.intlcalendar.html">IntlCalendar</a></div>
 <div class="home"><a href="index.html">PHP Manual</a></div>
</div></body></html>