From 95f25f8c5a7d3c0c4617d6ef303ac235b1c4bac3 Mon Sep 17 00:00:00 2001 From: David Coallier Date: Tue, 5 May 2009 22:41:44 +0000 Subject: [PATCH] - 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 --- reference/spl_types/book.xml | 8 +-- reference/spl_types/splfloat/construct.xml | 7 ++- reference/spl_types/splint/construct.xml | 9 ++-- reference/spl_types/splstring.xml | 63 ++++++++++++++++++++++ 4 files changed, 79 insertions(+), 8 deletions(-) create mode 100755 reference/spl_types/splstring.xml diff --git a/reference/spl_types/book.xml b/reference/spl_types/book.xml index 940f8a4ccb..1c569f7fcc 100644 --- a/reference/spl_types/book.xml +++ b/reference/spl_types/book.xml @@ -1,5 +1,5 @@ - + @@ -11,8 +11,9 @@ &reftitle.intro; This extension aims at helping people making PHP a stronger typed - language. It provides different typehandling classes as such as - integer, float, bool, enum, etc. + language and can be a good alternative to scalar type hinting. + It provides different typehandling classes as such as + integer, float, bool, enum and string &warn.experimental; @@ -22,6 +23,7 @@ &reference.spl-types.splfloat; &reference.spl-types.splenum; &reference.spl-types.splbool; + &reference.spl-types.splstring; diff --git a/reference/spl_types/splfloat/construct.xml b/reference/spl_types/splfloat/construct.xml index 4b717a6c35..6d688e2177 100644 --- a/reference/spl_types/splfloat/construct.xml +++ b/reference/spl_types/splfloat/construct.xml @@ -1,5 +1,5 @@ - + SplFloat::__construct @@ -10,7 +10,10 @@ &reftitle.description; SplFloat::__construct - + + float + input + This constructs a new object of type float. diff --git a/reference/spl_types/splint/construct.xml b/reference/spl_types/splint/construct.xml index de5928391a..70a57b4875 100644 --- a/reference/spl_types/splint/construct.xml +++ b/reference/spl_types/splint/construct.xml @@ -1,5 +1,5 @@ - + SplInt::__construct @@ -10,10 +10,13 @@ &reftitle.description; SplInt::__construct - + + integer + input + - This constructs a new object of type float. + This constructs a new object of type integer. diff --git a/reference/spl_types/splstring.xml b/reference/spl_types/splstring.xml new file mode 100755 index 0000000000..c24410fd95 --- /dev/null +++ b/reference/spl_types/splstring.xml @@ -0,0 +1,63 @@ + + + + The SplString class + SplString + + + + +
+ &reftitle.intro; + + The SplString class is used to enforce strong typing of the string type. + +
+ + +
+ &reftitle.classsynopsis; + + + + SplString + + + + + SplString + + + + + + Methods + + + +
+
+ + &reference.spl-types.entities.splstring; +
+ +