php-doc-en/reference/intl/intlcalendar/getavailablelocales.xml
Sara Golemon 9e0df2f6fe Improve IntlCalendar documentation
Add style.oop/style.procedural sections for dual interface.
Document IntlCalendar::setMinimalDaysInFirstWeek().
Add libicu version requirements.



git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@332609 c90b9560-bf6c-de11-be94-00142212c4b1
2014-01-13 22:28:40 +00:00

110 lines
2.4 KiB
XML

<?xml version="1.0" encoding="utf-8"?>
<!-- $Revision$ -->
<refentry xml:id="intlcalendar.getavailablelocales" xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink">
<refnamediv>
<refname>IntlCalendar::getAvailableLocales</refname>
<refpurpose>Get array of locales for which there is data</refpurpose>
</refnamediv>
<refsect1 role="description">
&reftitle.description;
<para>
&style.oop;
</para>
<methodsynopsis>
<modifier>public</modifier> <modifier>static</modifier> <type>array</type><methodname>IntlCalendar::getAvailableLocales</methodname>
<void />
</methodsynopsis>
<para>
&style.procedural;
</para>
<methodsynopsis>
<type>array</type><methodname>intlcal_get_available_locales</methodname>
<void />
</methodsynopsis>
<para>
Gives the list of locales for which calendars are installed. As of ICU 51,
this is the list of all installed ICU locales.
</para>
</refsect1>
<refsect1 role="parameters">
&reftitle.parameters;
&no.function.parameters;
</refsect1>
<refsect1 role="returnvalues">
&reftitle.returnvalues;
<para>
An <type>array</type> of <type>string</type>s, one for which locale.
</para>
</refsect1>
<refsect1 role="examples">
&reftitle.examples;
<para>
<example>
<title><function>IntlCalendar::getAvailableLocales()</function></title>
<programlisting role="php">
<![CDATA[
<?php
print_r(IntlCalendar::getAvailableLocales());
]]>
</programlisting>
&example.outputs;
<screen>
<![CDATA[
Array
(
[0] => af
[1] => af_NA
[2] => af_ZA
[3] => agq
[4] => agq_CM
[5] => ak
[6] => ak_GH
[7] => am
[8] => am_ET
[9] => ar
[10] => ar_001
[11] => ar_AE
[12] => ar_BH
[13] => ar_DJ
… output abbreviated …
[595] => zh_Hant_HK
[596] => zh_Hant_MO
[597] => zh_Hant_TW
[598] => zu
[599] => zu_ZA
)
]]>
</screen>
</example>
</para>
</refsect1>
</refentry>
<!-- Keep this comment at the end of the file
Local variables:
mode: sgml
sgml-omittag:t
sgml-shorttag:t
sgml-minimize-attributes:nil
sgml-always-quote-attributes:t
sgml-indent-step:1
sgml-indent-data:t
indent-tabs-mode:nil
sgml-parent-document:nil
sgml-default-dtd-file:"~/.phpdoc/manual.ced"
sgml-exposed-tags:nil
sgml-local-catalogs:nil
sgml-local-ecat-files:nil
End:
vim600: syn=xml fen fdm=syntax fdl=2 si
vim: et tw=78 syn=sgml
vi: ts=1 sw=1
-->