From fd86ab0b1dc078492d6149bb7967adf06f15fdfb Mon Sep 17 00:00:00 2001 From: David Coallier Date: Fri, 30 May 2008 19:55:38 +0000 Subject: [PATCH] - Added splbool description git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@260484 c90b9560-bf6c-de11-be94-00142212c4b1 --- reference/spl_types/book.xml | 4 +- reference/spl_types/splbool.xml | 61 +++++++++++++ reference/spl_types/splbool/construct.xml | 105 ++++++++++++++++++++++ 3 files changed, 169 insertions(+), 1 deletion(-) create mode 100644 reference/spl_types/splbool.xml create mode 100644 reference/spl_types/splbool/construct.xml diff --git a/reference/spl_types/book.xml b/reference/spl_types/book.xml index 1556d7673a..a9357a900d 100644 --- a/reference/spl_types/book.xml +++ b/reference/spl_types/book.xml @@ -1,5 +1,5 @@ - + @@ -22,6 +22,8 @@ &reference.spl_types.splint; &reference.spl_types.splfloat; &reference.spl_types.splenum; + &reference.spl_types.splbool; + + + The SplBool class + SplBool + + + + +
+ &reftitle.intro; + + The SplBool class is used to enforce strong typing of the bool type. + +
+ + +
+ &reftitle.classsynopsis; + + + + SplBool + + + + + SplBool + + + + + + Methods + + + +
+
+
+ + diff --git a/reference/spl_types/splbool/construct.xml b/reference/spl_types/splbool/construct.xml new file mode 100644 index 0000000000..416c6b2157 --- /dev/null +++ b/reference/spl_types/splbool/construct.xml @@ -0,0 +1,105 @@ + + + + + SplBool::__construct + Constructs a bool object type + + + + &reftitle.description; + + SplBool::__construct + + + + This constructs a new object of type bool. + + + + + &reftitle.parameters; + + + + input + + + The input parameter accepts a bool. + + + + + strict + + + A boolean variable to indicate wether the object's + strictness should be set or not. + + + + + + + + + &reftitle.returnvalues; + + &return.void; + + + + + &reftitle.examples; + + + <function>SplBool::__construct</function> example + + +]]> + + &example.outputs; + + + bool(true) +} +object(SplBool)#1 (1) { + ["__default"]=> + bool(true) +} +]]> + + + + + + +