Class: DpProperties
SOURCE LOCATION: /dpuniverse/std/DpProperties.php
Class Overview
|
The DutchPIPE property and coinherit system which all objects extend on
|
METHODS:
|
Direct Descendants
| DpObject |
The standard object which is built upon by all other objects
|
| Mass |
Coinherit for adding mass (volume and weight) abstraction to an object
|
Methods Summary
| void |
coinherit() |
"Coinherit" a class located at the given pathname |
| mixed |
getDpProperty() |
Directly retrieve the value of an existing DutchPIPE property |
| boolean |
isDpProperty() |
Determines if a property is defined in this object |
| void |
setDpProperty() |
Directly set the value of an existing DutchPIPE property |
| void |
__call() |
Handles set and get methods for properties using PHP member overloading |
| mixed |
__get() |
Gets the value of a DutchPIPE property using PHP member overloading |
| boolean |
__isset() |
Determines if a property is defined in this object using PHP member overloading |
| void |
__set() |
Sets the value of a DutchPIPE property using PHP member overloading |
| void |
__unset() |
Unsets the given DutchPIPE property using PHP member overloading |
Methods
void coinherit(
string
$pathname
)
"Coinherit" a class located at the given pathname
| PARAMETERS: |
string |
$pathname |
path to code from universe base path |
mixed getDpProperty(
string
$nm
)
Directly retrieve the value of an existing DutchPIPE property
| PARAMETERS: |
string |
$nm |
name of property |
| RETURNS: | mixed | value of property |
| ACCESS: | protected |
boolean isDpProperty(
string
$nm
)
Determines if a property is defined in this object
Same as isset($ob->{$nm}), except that this method returns TRUE for properties set to NULL.
| PARAMETERS: |
string |
$nm |
name of property |
| RETURNS: | boolean | TRUE if property exists, FALSE otherwise |
removeDpProperties [line 393]
void removeDpProperties(
)
Removes properties and coinherits
Called by DpObject::removeDpObject, unsets all properties and coinherits. This makes sure all object pointers are removed and object can be removed from memory by PHP's cleanup mechanism.
| ACCESS: | protected |
| SEE: | DpObject::removeDpObject |
void setDpProperty(
string
$nm , string
$val
)
Directly set the value of an existing DutchPIPE property
| PARAMETERS: |
string |
$nm |
name of property |
| string |
$val |
value of property |
| ACCESS: | protected |
void __call(
$name ,
$params , string
$nm
)
Handles set and get methods for properties using PHP member overloading
| PARAMETERS: |
string |
$nm |
name of property |
| |
$name |
|
| |
$params |
|
| ACCESS: | public |
mixed __get(
string
$nm
)
Gets the value of a DutchPIPE property using PHP member overloading
| PARAMETERS: |
string |
$nm |
name of property |
| RETURNS: | mixed | value of property |
| ACCESS: | public |
boolean __isset(
string
$nm
)
Determines if a property is defined in this object using PHP member overloading
| PARAMETERS: |
string |
$nm |
name of property |
| RETURNS: | boolean | TRUE if property exists and not NULL, FALSE otherwise |
| ACCESS: | public |
void __set(
string
$nm , string
$val
)
Sets the value of a DutchPIPE property using PHP member overloading
| PARAMETERS: |
string |
$nm |
name of property |
| string |
$val |
value of property |
| ACCESS: | public |
void __unset(
string
$nm
)
Unsets the given DutchPIPE property using PHP member overloading
| PARAMETERS: |
string |
$nm |
name of property |
| ACCESS: | public |
|
|