mirror of
https://github.com/sigmasternchen/php-doc-en
synced 2025-03-23 04:18:56 +00:00
119 lines
2.8 KiB
XML
119 lines
2.8 KiB
XML
![]() |
<?xml version="1.0" encoding="utf-8"?>
|
||
|
<!-- $Revision: 1.1 $ -->
|
||
|
<refentry xml:id="collator.getattribute" xmlns="http://docbook.org/ns/docbook">
|
||
|
<refnamediv>
|
||
|
<refname>Collator::getAttribute</refname>
|
||
|
<refname>collator_get_attribute</refname>
|
||
|
<refpurpose>Get collation attribute value</refpurpose>
|
||
|
</refnamediv>
|
||
|
|
||
|
<refsect1 role="description">
|
||
|
&reftitle.description;
|
||
|
<para>
|
||
|
Object oriented style
|
||
|
</para>
|
||
|
<methodsynopsis>
|
||
|
<type>integer</type>
|
||
|
<methodname>Collator::getAttribute</methodname>
|
||
|
<methodparam><type>integer</type><parameter>attr</parameter></methodparam>
|
||
|
</methodsynopsis>
|
||
|
<para>
|
||
|
Procedural style
|
||
|
</para>
|
||
|
<methodsynopsis>
|
||
|
<type>integer</type>
|
||
|
<methodname>collator_get_attribute</methodname>
|
||
|
<methodparam><type>Collator</type><parameter>coll</parameter></methodparam>
|
||
|
<methodparam><type>integer</type><parameter>attr</parameter></methodparam>
|
||
|
</methodsynopsis>
|
||
|
<para>
|
||
|
Get a value of an integer collator attribute.
|
||
|
</para>
|
||
|
</refsect1>
|
||
|
|
||
|
<refsect1 role="parameters">
|
||
|
&reftitle.parameters;
|
||
|
<para>
|
||
|
<variablelist>
|
||
|
<varlistentry>
|
||
|
<term><parameter>coll</parameter></term>
|
||
|
<listitem>
|
||
|
<para>
|
||
|
<classname>Collator</classname> object.
|
||
|
</para>
|
||
|
</listitem>
|
||
|
</varlistentry>
|
||
|
<varlistentry>
|
||
|
<term><parameter>attr</parameter></term>
|
||
|
<listitem>
|
||
|
<para>
|
||
|
Attribute to get value for.
|
||
|
</para>
|
||
|
</listitem>
|
||
|
</varlistentry>
|
||
|
</variablelist>
|
||
|
</para>
|
||
|
</refsect1>
|
||
|
|
||
|
|
||
|
<refsect1 role="returnvalues">
|
||
|
&reftitle.returnvalues;
|
||
|
<para>
|
||
|
Attribute value, or <type>boolean</type> &false; on error.
|
||
|
</para>
|
||
|
</refsect1>
|
||
|
|
||
|
<refsect1 role="examples">
|
||
|
&reftitle.examples;
|
||
|
<para>
|
||
|
<example>
|
||
|
<title><function>collator_get_attribute</function> example</title>
|
||
|
<programlisting role="php">
|
||
|
<![CDATA[
|
||
|
<?php
|
||
|
$coll = collator_create( 'en_CA' );
|
||
|
$val = collator_get_attribute( $coll, Collator::NUMERIC_COLLATION );
|
||
|
if( $val === false )
|
||
|
{
|
||
|
// Handle error.
|
||
|
}
|
||
|
?>
|
||
|
]]>
|
||
|
</programlisting>
|
||
|
</example>
|
||
|
</para>
|
||
|
</refsect1>
|
||
|
|
||
|
<refsect1 role="seealso">
|
||
|
&reftitle.seealso;
|
||
|
<para>
|
||
|
<simplelist>
|
||
|
<member><link linkend="intl.collator-constants"><classname>Collator</classname> constants</link></member>
|
||
|
<member><function>collator_set_attribute</function></member>
|
||
|
<member><function>collator_get_strength</function></member>
|
||
|
</simplelist>
|
||
|
</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:"../../../../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
|
||
|
-->
|