<?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 => 'it',
  ),
  'this' => 
  array (
    0 => 'intlcalendar.setminimaldaysinfirstweek.php',
    1 => 'IntlCalendar::setMinimalDaysInFirstWeek',
    2 => 'Set minimal number of days the first week in a year or month can have',
  ),
  'up' => 
  array (
    0 => 'class.intlcalendar.php',
    1 => 'IntlCalendar',
  ),
  'prev' => 
  array (
    0 => 'intlcalendar.setlenient.php',
    1 => 'IntlCalendar::setLenient',
  ),
  'next' => 
  array (
    0 => 'intlcalendar.setrepeatedwalltimeoption.php',
    1 => 'IntlCalendar::setRepeatedWallTimeOption',
  ),
  'alternatives' => 
  array (
  ),
  'source' => 
  array (
    'lang' => 'en',
    'path' => 'reference/intl/intlcalendar/setminimaldaysinfirstweek.xml',
  ),
  'history' => 
  array (
  ),
);
$setup["toc"] = $TOC;
$setup["toc_deprecated"] = $TOC_DEPRECATED;
$setup["parents"] = $PARENTS;
manual_setup($setup);

contributors($setup);

?>
<div id="intlcalendar.setminimaldaysinfirstweek" class="refentry">
 <div class="refnamediv">
  <h1 class="refname">IntlCalendar::setMinimalDaysInFirstWeek</h1>
  <p class="verinfo">(PHP 5 &gt;= 5.5.1, PHP 7, PHP 8)</p><p class="refpurpose"><span class="refname">IntlCalendar::setMinimalDaysInFirstWeek</span> &mdash; <span class="dc-title">Set minimal number of days the first week in a year or month can have</span></p>

 </div>

 <div class="refsect1 description" id="refsect1-intlcalendar.setminimaldaysinfirstweek-description">
  <h3 class="title">Descrizione</h3>
  <p class="para">
   Stile orientato agli oggetti
  </p>
  <div class="methodsynopsis dc-description">
   <span class="modifier">public</span> <span class="methodname"><strong>IntlCalendar::setMinimalDaysInFirstWeek</strong></span>(<span class="methodparam"><span class="type"><a href="language.types.integer.php" class="type int">int</a></span> <code class="parameter">$days</code></span>): <span class="type"><a href="language.types.singleton.php" class="type true">true</a></span></div>

  <p class="para rdfs-comment">
   Stile procedurale
  </p>
  <div class="methodsynopsis dc-description"><span class="methodname"><strong>intlcal_set_minimal_days_in_first_week</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.integer.php" class="type int">int</a></span> <code class="parameter">$days</code></span>): <span class="type"><a href="language.types.singleton.php" class="type true">true</a></span></div>

  <p class="para rdfs-comment">
   Sets the smallest number of days the first week of a year or month must
   have in the new year or month.  For instance, in the Gregorian calendar, if
   this value is 1, then the first week of the year will necessarily include
   January 1st, while if this value is 7, then the week with January 1st will
   be the first week of the year only if the day of the week for January 1st
   matches the day of the week returned by
   <span class="function"><a href="intlcalendar.getfirstdayofweek.php" class="function">IntlCalendar::getFirstDayOfWeek()</a></span>; otherwise it will be
   the previous yearʼs last week.
  </p>
 </div>


 <div class="refsect1 parameters" id="refsect1-intlcalendar.setminimaldaysinfirstweek-parameters">
  <h3 class="title">Elenco dei parametri</h3>
  <dl>
   
    <dt><code class="parameter">calendar</code></dt>
    <dd>
     <p class="para">An <span class="classname"><a href="class.intlcalendar.php" class="classname">IntlCalendar</a></span> instance.</p>
    </dd>
   
   
    <dt><code class="parameter">days</code></dt>
    <dd>
     <p class="para">
      The number of minimal days to set.
     </p>
    </dd>
   
  </dl>
 </div>


 <div class="refsect1 returnvalues" id="refsect1-intlcalendar.setminimaldaysinfirstweek-returnvalues">
  <h3 class="title">Valori restituiti</h3>
  <p class="para">
   Always returns <strong><code><a href="reserved.constants.php#constant.true">true</a></code></strong>.
  </p>
 </div>


 <div class="refsect1 errors" id="refsect1-intlcalendar.setminimaldaysinfirstweek-errors">
  <h3 class="title">Errori/Eccezioni</h3>
  <p class="para">
   <span class="classname"><a href="class.valueerror.php" class="classname">ValueError</a></span> if <code class="parameter">days</code> is out of range
   (less than <code class="literal">1</code> or more than <code class="literal">7</code>).
  </p>
 </div>


 <div class="refsect1 changelog" id="refsect1-intlcalendar.setminimaldaysinfirstweek-changelog">
  <h3 class="title">Log delle modifiche</h3>
  <p class="para">
   <table class="doctable informaltable">
    
     <thead>
      <tr>
       <th>Versione</th>
       <th>Descrizione</th>
      </tr>

     </thead>

     <tbody class="tbody">
      <tr>
       <td>8.0.0</td>
       <td>
        A <span class="classname"><a href="class.valueerror.php" class="classname">ValueError</a></span> is now thrown on invalid input.  Previously, <strong><code><a href="reserved.constants.php#constant.false">false</a></code></strong> was returned.
       </td>
      </tr>

     </tbody>
    
   </table>

  </p>
 </div>


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