Exponential Basic 2.4.0.1 Exponential Basic CMS — PHP Class Reference

ezxmlrpcbool.php
Go to the documentation of this file.
1 <?php
3 //
4 // $Id: ezxmlrpcbool.php 2835 2001-01-25 09:23:53Z bf $
5 //
6 // Definition of eZXMLRPCBool class
7 //
8 // B�rd Farstad <bf@ez.no>
9 // Created on: <17-Dec-2000 14:15:13 bf>
10 //
11 // This source file is part of Exponential Basic, publishing software.
12 // Copyright (C) 1999-2000 eZ systems as
13 //
14 // This program is free software; you can redistribute it and/or
15 // modify it under the terms of the GNU General Public License
16 // as published by the Free Software Foundation; either version 2
17 // of the License, or (at your option) any later version.
18 //
19 // This program is distributed in the hope that it will be useful,
20 // but WITHOUT ANY WARRANTY; without even the implied warranty of
21 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
22 // GNU General Public License for more details.
23 //
24 // You should have received a copy of the GNU General Public License
25 // along with this program; if not, write to the Free Software
26 // Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, US
27 //
28
29
32
36 class eZXMLRPCBool
37 {
43 function __construct( $value=true )
44 {
45 $this->Value = $value;
46 setType( $this->Value, "boolean" );
47
48 }
49
53 function &serialize( )
54 {
55 if ( $this->Value == true )
56 {
57 $bool = "true";
58 }
59 else
60 {
61 $bool = "false";
62 }
63
64 $ret = "<value>";
65 $ret .= "<boolean>";
66 $ret .= $bool;
67 $ret .= "</boolean>";
68 $ret .= "</value>";
69
70 return $ret;
71 }
72
76 function value()
77 {
78 return $this->Value;
79 }
80
84 function decode( $value )
85 {
86 if ( $value == "true" )
87 {
88 $this->Value = true;
89 }
90 else
91 {
92 $this->Value = false;
93 }
94 }
95
96 // The bool value
97 var $Value;
98 }
99
100 ?>
eZXMLRPCBool
Definition: ezxmlrpcbool.php:37
eZXMLRPCBool\decode
decode( $value)
Definition: ezxmlrpcbool.php:84
eZXMLRPCBool\$Value
$Value
Definition: ezxmlrpcbool.php:97
eZXMLRPCBool\serialize
& serialize()
Definition: ezxmlrpcbool.php:53
eZXMLRPCBool\__construct
__construct( $value=true)
Definition: ezxmlrpcbool.php:43
eZXMLRPCBool\value
value()
Definition: ezxmlrpcbool.php:76
$ret
$ret
Definition: ezsitemanager/admin/filelist.php:88
Copyright © 1998 – 2026 7x. All rights reserved. Licensed under the GNU GPLv2+.