svn: /phpdoc/en/trunk/reference/classobj/functions/ get-declared-traits.xml trait-exists.xml
| From: | Jakub Vrana | Date: | Fri, 23 Dec 2011 08:29:43 +0000 |
| Subject: | svn: /phpdoc/en/trunk/reference/classobj/functions/ get-declared-traits.xml trait-exists.xml | ||
| Groups: | php.doc.cvs | ||
| Request: | Send a blank email to doc-cvs+get-9273@lists.php.net to get a copy of this message | ||
vrana Fri, 23 Dec 2011 08:29:43 +0000
Revision: http://svn.php.net/viewvc?view=revision&revision=321345
Log:
Trait functions
Changed paths:
A phpdoc/en/trunk/reference/classobj/functions/get-declared-traits.xml
A phpdoc/en/trunk/reference/classobj/functions/trait-exists.xml
Added: phpdoc/en/trunk/reference/classobj/functions/get-declared-traits.xml
===================================================================
--- phpdoc/en/trunk/reference/classobj/functions/get-declared-traits.xml
(rev 0)
+++ phpdoc/en/trunk/reference/classobj/functions/get-declared-traits.xml 2011-12-23 08:29:43 UTC
(rev 321345)
@@ -0,0 +1,57 @@
+<?xml version="1.0" encoding="utf-8"?>
+<!-- $Revision$ -->
+
+<refentry xml:id="function.get-declared-traits" xmlns="http://docbook.org/ns/docbook"
xmlns:xlink="http://www.w3.org/1999/xlink">
+ <refnamediv>
+ <refname>get_declared_traits</refname>
+ <refpurpose>Returns an array of all declared traits</refpurpose>
+ </refnamediv>
+
+ <refsect1 role="description">
+ &reftitle.description;
+ <methodsynopsis>
+ <type>array</type><methodname>get_declared_traits</methodname>
+ <void />
+ </methodsynopsis>
+ <para>
+
+ </para>
+
+ </refsect1>
+
+ <refsect1 role="parameters">
+ &reftitle.parameters;
+ &no.function.parameters;
+ </refsect1>
+
+ <refsect1 role="returnvalues">
+ &reftitle.returnvalues;
+ <para>
+ Returns an array with names of all declared traits in values.
+ Returns &null; in case of a failure.
+ </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
+-->
Added: phpdoc/en/trunk/reference/classobj/functions/trait-exists.xml
===================================================================
--- phpdoc/en/trunk/reference/classobj/functions/trait-exists.xml (rev 0)
+++ phpdoc/en/trunk/reference/classobj/functions/trait-exists.xml 2011-12-23 08:29:43 UTC (rev
321345)
@@ -0,0 +1,74 @@
+<?xml version="1.0" encoding="utf-8"?>
+<!-- $Revision$ -->
+
+<refentry xml:id="function.trait-exists" xmlns="http://docbook.org/ns/docbook"
xmlns:xlink="http://www.w3.org/1999/xlink">
+ <refnamediv>
+ <refname>trait_exists</refname>
+ <refpurpose>Checks if the trait exists</refpurpose>
+ </refnamediv>
+
+ <refsect1 role="description">
+ &reftitle.description;
+ <methodsynopsis>
+ <type>bool</type><methodname>trait_exists</methodname>
+
<methodparam><type>string</type><parameter>traitname</parameter></methodparam>
+ <methodparam
choice="opt"><type>bool</type><parameter>autoload</parameter></methodparam>
+ </methodsynopsis>
+ <para>
+
+ </para>
+
+ </refsect1>
+
+ <refsect1 role="parameters">
+ &reftitle.parameters;
+ <variablelist>
+ <varlistentry>
+ <term><parameter>traitname</parameter></term>
+ <listitem>
+ <para>
+ Name of the trait to check
+ </para>
+ </listitem>
+ </varlistentry>
+ <varlistentry>
+ <term><parameter>autoload</parameter></term>
+ <listitem>
+ <para>
+ Whether to autoload if not already loaded.
+ </para>
+ </listitem>
+ </varlistentry>
+ </variablelist>
+ </refsect1>
+
+ <refsect1 role="returnvalues">
+ &reftitle.returnvalues;
+ <para>
+ Returns &true; if trait exists, &false; if not, &null; in case of an error.
+ </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
+-->