- Fixed a little copy and paste typo in splint

- Added the SplString basic documentation
- Added the good constructor parameters for splint and splenum


git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@279996 c90b9560-bf6c-de11-be94-00142212c4b1
This commit is contained in:
David Coallier 2009-05-05 22:41:44 +00:00
parent ab84161554
commit 95f25f8c5a
4 changed files with 79 additions and 8 deletions

View file

@ -1,5 +1,5 @@
<?xml version="1.0" encoding="utf-8"?>
<!-- $Revision: 1.6 $ -->
<!-- $Revision: 1.7 $ -->
<!-- State: new -->
<book xml:id="book.spl-types" xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink">
@ -11,8 +11,9 @@
&reftitle.intro;
<para>
This extension aims at helping people making PHP a stronger typed
language. It provides different typehandling classes as such as
<type>integer</type>, <type>float</type>, <type>bool</type>, <type>enum</type>, etc.
language and can be a good alternative to scalar type hinting.
It provides different typehandling classes as such as
<type>integer</type>, <type>float</type>, <type>bool</type>, <type>enum</type> and <type>string</type>
</para>
&warn.experimental;
</preface>
@ -22,6 +23,7 @@
&reference.spl-types.splfloat;
&reference.spl-types.splenum;
&reference.spl-types.splbool;
&reference.spl-types.splstring;
</book>

View file

@ -1,5 +1,5 @@
<?xml version='1.0' encoding='iso-8859-1'?>
<!-- $Revision: 1.3 $ -->
<!-- $Revision: 1.4 $ -->
<refentry xml:id="splfloat.construct" xmlns="http://docbook.org/ns/docbook">
<refnamediv>
<refname>SplFloat::__construct</refname>
@ -10,7 +10,10 @@
&reftitle.description;
<constructorsynopsis>
<methodname>SplFloat::__construct</methodname>
<void />
<methodparam>
<type>float</type>
<parameter>input</parameter>
</methodparam>
</constructorsynopsis>
<para>
This constructs a new object of type float.

View file

@ -1,5 +1,5 @@
<?xml version='1.0' encoding='iso-8859-1'?>
<!-- $Revision: 1.5 $ -->
<!-- $Revision: 1.6 $ -->
<refentry xml:id="splint.construct" xmlns="http://docbook.org/ns/docbook">
<refnamediv>
<refname>SplInt::__construct</refname>
@ -10,10 +10,13 @@
&reftitle.description;
<constructorsynopsis>
<methodname>SplInt::__construct</methodname>
<void />
<methodparam>
<type>integer</type>
<parameter>input</parameter>
</methodparam>
</constructorsynopsis>
<para>
This constructs a new object of type float.
This constructs a new object of type integer.
</para>
</refsect1>

View file

@ -0,0 +1,63 @@
<?xml version="1.0" encoding="utf-8"?>
<!-- $Revision: 1.1 $ -->
<phpdoc:classref xmlns:phpdoc="http://php.net/ns/phpdoc" xml:id="class.splstring" xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:xi="http://www.w3.org/2001/XInclude">
<title>The SplString class</title>
<titleabbrev>SplString</titleabbrev>
<partintro>
<!-- {{{ splstring intro -->
<section xml:id="splstring.intro">
&reftitle.intro;
<para>
The SplString class is used to enforce strong typing of the string type.
</para>
</section>
<!-- }}} -->
<section xml:id="splstring.synopsis">
&reftitle.classsynopsis;
<!-- {{{ Synopsis -->
<classsynopsis>
<ooclass><classname>SplString</classname></ooclass>
<!-- {{{ Class synopsis -->
<classsynopsisinfo>
<ooclass>
<classname>SplString</classname>
</ooclass>
</classsynopsisinfo>
<!-- }}} -->
<classsynopsisinfo role="comment">Methods</classsynopsisinfo>
<xi:include xpointer="xmlns(db=http://docbook.org/ns/docbook) xpointer(id('class.splstring')/db:refentry/db:refsect1[@role='description']/descendant::db:constructorsynopsis[1])" />
</classsynopsis>
</section>
</partintro>
&reference.spl-types.entities.splstring;
</phpdoc:classref>
<!-- 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
-->