From 9f2c0d9b7acbbac3e4432083b66d5ae04920551f Mon Sep 17 00:00:00 2001 From: David Coallier Date: Fri, 30 May 2008 19:24:59 +0000 Subject: [PATCH] - Added splenum documentation (initial) - Modified whitespaces for so all is compliant - Added splenum reference in book.xml git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@260481 c90b9560-bf6c-de11-be94-00142212c4b1 --- reference/spl_types/book.xml | 10 +- reference/spl_types/splenum.xml | 61 +++++++++++ reference/spl_types/splenum/construct.xml | 121 ++++++++++++++++++++++ reference/spl_types/splfloat.xml | 6 +- reference/spl_types/splint.xml | 6 +- 5 files changed, 193 insertions(+), 11 deletions(-) create mode 100644 reference/spl_types/splenum.xml create mode 100644 reference/spl_types/splenum/construct.xml diff --git a/reference/spl_types/book.xml b/reference/spl_types/book.xml index 8b12b8efea..1556d7673a 100644 --- a/reference/spl_types/book.xml +++ b/reference/spl_types/book.xml @@ -1,5 +1,5 @@ - + @@ -10,9 +10,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, double, enum, etc. + 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. &warn.experimental; @@ -21,7 +21,7 @@ &reference.spl_types.reference; &reference.spl_types.splint; &reference.spl_types.splfloat; - + &reference.spl_types.splenum; + + The SplEnum class + SplEnum + + + + +
+ &reftitle.intro; + + SplEnum gives you the ability to emulate and create "Enum" objects natively in PHP. + +
+ + +
+ &reftitle.classsynopsis; + + + + SplEnum + + + + + abstractSplEnum + + + + + + Methods + + + +
+
+
+ + diff --git a/reference/spl_types/splenum/construct.xml b/reference/spl_types/splenum/construct.xml new file mode 100644 index 0000000000..e56f173957 --- /dev/null +++ b/reference/spl_types/splenum/construct.xml @@ -0,0 +1,121 @@ + + + + + SplEnum::__construct + Constructs an enumeger object type + + + + &reftitle.description; + + SplEnum::__construct + + + + This constructor is used to set the value and the strictness of the "Enum" + Object. + + + + + &reftitle.parameters; + + + + input + + + The input parameter accepts an enumeger + It will throw an UnexpectedValueException if you pass anything else. + + + + + strict + + + This is a boolean to indicate if you want the object to + be strict or not. If it's value can be changed or not. + + + + + + + + + &reftitle.returnvalues; + + &return.void; + + + + + &reftitle.examples; + + + <function>SplEnum::__construct</function> example + + +]]> + + &example.outputs; + + + + + + + + + diff --git a/reference/spl_types/splfloat.xml b/reference/spl_types/splfloat.xml index cd07c1d843..7c152beed5 100644 --- a/reference/spl_types/splfloat.xml +++ b/reference/spl_types/splfloat.xml @@ -1,5 +1,5 @@ - + The SplFloat class SplFloat @@ -10,8 +10,8 @@
&reftitle.intro; - The SplFloat class is used to enforce strong typing of the float type. By instantiating this - class, you insure that your variable is a float and will remain a float. + The SplFloat class is used to enforce strong typing of the float type. By instantiating this + class, you insure that your variable is a float and will remain a float.
diff --git a/reference/spl_types/splint.xml b/reference/spl_types/splint.xml index 51ef02d17d..ec88f70bf7 100644 --- a/reference/spl_types/splint.xml +++ b/reference/spl_types/splint.xml @@ -1,5 +1,5 @@ - + The SplInt class SplInt @@ -10,8 +10,8 @@
&reftitle.intro; - The SplInt class is used to enforce strong typing of the integer type. By instantiating this - class, you insure that your variable is an integer and will remain an integer. + The SplInt class is used to enforce strong typing of the integer type. By instantiating this + class, you insure that your variable is an integer and will remain an integer.