|
XCL Web Application Platform 2.5.0
The XoopsCube Legacy Project
|
[Abstract] Defines common array property class which implements XCube_PropertyInterface. More...
Public Member Functions | |
| __construct ( $classname, $name) | |
| Constructor. | |
| set ( $arg1, $arg2=null) | |
| Sets a value. And the value is casted by the property's type'. | |
| add ( $arg1, $arg2=null) | |
| _set ( $index, $value) | |
| This member function helps set(). | |
| get ( $index=null) | |
| Gets values of this property. | |
| reset () | |
| Resets all properties of this. | |
| isArray () | |
| Gets a value indicating whether this object expresses Array. | |
| isNull () | |
| Gets a value indicating whether this object is null. | |
| toNumber () | |
| Gets a value as integer — but, gets null always. | |
| toString () | |
| Gets a value as string — but, gets 'Array' always. | |
| toHTML () | |
| Gets a value as encoded HTML code — but, gets 'Array' always. | |
| hasFetchControl () | |
| Gets a value indicating whether this object has a fetch control. | |
Public Member Functions inherited from XCube_PropertyInterface | |
| __construct ( $name) | |
| Constructor. | |
| set ( $value) | |
| [Abstract] Sets $value as raw value to this property. And the value is defined by the property's type'. | |
| get () | |
| [Abstract] Gets the value of this property. | |
| setValue ( $arg0=null, $arg1=null) | |
| getValue ( $arg0=null) | |
| fetch (&$form) | |
Data Fields | |
| $mName | |
| string | |
| $mProperties = [] | |
| XCube_AbstractProperty[] - std::map<mixed_key, mixed_value> | |
| $mPropertyClassName | |
| string - <T> | |
[Abstract] Defines common array property class which implements XCube_PropertyInterface.
This class is a kind of template-class — XCube_GenericArrayProperty<T>. Developers should know about sub-classes of XCube_AbstractProperty.
Definition at line 239 of file XCube_Property.class.php.
| __construct | ( | $classname, | |
| $name ) |
Constructor.
| string | $classname | - <T> |
| string | $name | - A name of the property. |
Definition at line 268 of file XCube_Property.class.php.
| _set | ( | $index, | |
| $value ) |
This member function helps set().
| string | $index | |
| mixed | $value |
Definition at line 327 of file XCube_Property.class.php.
| add | ( | $arg1, | |
| $arg2 = null ) |
| $arg1 | ||
| null | $arg2 |
Definition at line 308 of file XCube_Property.class.php.
| get | ( | $index = null | ) |
Gets values of this property.
| mixed | $index | - If $indes is null, gets array (std::map<mixed_key, mixed_value>). |
Definition at line 342 of file XCube_Property.class.php.
| hasFetchControl | ( | ) |
Gets a value indicating whether this object has a fetch control.
Reimplemented from XCube_PropertyInterface.
Reimplemented in XCube_FileArrayProperty.
Definition at line 420 of file XCube_Property.class.php.
| isArray | ( | ) |
Gets a value indicating whether this object expresses Array.
Reimplemented from XCube_PropertyInterface.
Definition at line 374 of file XCube_Property.class.php.
| isNull | ( | ) |
Gets a value indicating whether this object is null.
Reimplemented from XCube_PropertyInterface.
Definition at line 383 of file XCube_Property.class.php.
| reset | ( | ) |
Resets all properties of this.
Definition at line 360 of file XCube_Property.class.php.
| set | ( | $arg1, | |
| $arg2 = null ) |
Sets a value. And the value is casted by the property's type'.
This member function has two signatures.
| $arg1 | ||
| null | $arg2 |
Definition at line 288 of file XCube_Property.class.php.
| toHTML | ( | ) |
Gets a value as encoded HTML code — but, gets 'Array' always.
Reimplemented from XCube_PropertyInterface.
Definition at line 411 of file XCube_Property.class.php.
| toNumber | ( | ) |
Gets a value as integer — but, gets null always.
Reimplemented from XCube_PropertyInterface.
Definition at line 392 of file XCube_Property.class.php.
| toString | ( | ) |
Gets a value as string — but, gets 'Array' always.
Reimplemented from XCube_PropertyInterface.
Definition at line 401 of file XCube_Property.class.php.
| $mName |
string
Definition at line 244 of file XCube_Property.class.php.
| $mProperties = [] |
XCube_AbstractProperty[] - std::map<mixed_key, mixed_value>
Definition at line 250 of file XCube_Property.class.php.
| $mPropertyClassName |
string - <T>
If this class is XCube_GenericArrayProperty<T>, mPropertyClassName is <T>.
Definition at line 258 of file XCube_Property.class.php.