mirror of
https://github.com/sigmasternchen/php-doc-en
synced 2025-03-19 10:28:54 +00:00

still using this, after discussion on the phpdoc list. From now on, manual.ced will need to be found at ~/.phpdoc/manual.ced. git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@288721 c90b9560-bf6c-de11-be94-00142212c4b1
126 lines
3.1 KiB
XML
126 lines
3.1 KiB
XML
<?xml version="1.0" encoding="utf-8"?>
|
|
<!-- $Revision$ -->
|
|
<refentry xml:id="collator.setattribute" xmlns="http://docbook.org/ns/docbook">
|
|
<refnamediv>
|
|
<refname>Collator::setAttribute</refname>
|
|
<refname>collator_set_attribute</refname>
|
|
<refpurpose>Set collation attribute</refpurpose>
|
|
</refnamediv>
|
|
|
|
<refsect1 role="description">
|
|
&reftitle.description;
|
|
<para>
|
|
Object oriented style
|
|
</para>
|
|
<methodsynopsis>
|
|
<type>bool</type>
|
|
<methodname>Collator::setAttribute</methodname>
|
|
<methodparam><type>int</type><parameter>attr</parameter></methodparam>
|
|
<methodparam><type>int</type><parameter>val</parameter></methodparam>
|
|
</methodsynopsis>
|
|
<para>
|
|
Procedural style
|
|
</para>
|
|
<methodsynopsis>
|
|
<type>bool</type>
|
|
<methodname>collator_set_attribute</methodname>
|
|
<methodparam><type>Collator</type><parameter>coll</parameter></methodparam>
|
|
<methodparam><type>int</type><parameter>attr</parameter></methodparam>
|
|
<methodparam><type>int</type><parameter>val</parameter></methodparam>
|
|
</methodsynopsis>
|
|
<para>
|
|
<!-- description goes here -->
|
|
</para>
|
|
</refsect1>
|
|
|
|
<refsect1 role="parameters">
|
|
&reftitle.parameters;
|
|
<para>
|
|
<variablelist>
|
|
<varlistentry>
|
|
<term><parameter>coll</parameter></term>
|
|
<listitem>
|
|
<para>
|
|
<classname>Collator</classname> <type>object</type>.
|
|
</para>
|
|
</listitem>
|
|
</varlistentry>
|
|
<varlistentry>
|
|
<term><parameter>attr</parameter></term>
|
|
<listitem>
|
|
<para>Attribute.</para>
|
|
</listitem>
|
|
</varlistentry>
|
|
<varlistentry>
|
|
<term><parameter>val</parameter></term>
|
|
<listitem>
|
|
<para>
|
|
Attribute value.
|
|
</para>
|
|
</listitem>
|
|
</varlistentry>
|
|
</variablelist>
|
|
</para>
|
|
</refsect1>
|
|
|
|
<refsect1 role="returnvalues">
|
|
&reftitle.returnvalues;
|
|
<para>
|
|
&return.success;
|
|
</para>
|
|
</refsect1>
|
|
|
|
<refsect1 role="examples">
|
|
&reftitle.examples;
|
|
<para>
|
|
<example>
|
|
<title><function>collator_set_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.
|
|
} elseif ($val === Collator::ON) {
|
|
// Do something useful.
|
|
}
|
|
?>
|
|
]]>
|
|
</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_get_attribute</function></member>
|
|
<member><function>collator_set_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:"~/.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
|
|
-->
|