Constructor & Destructor Documentation
magic constructor
parameter list is not explicit: we're expecting the LAST argument to be the dependence, other are fed to construct()
- Author:
- greg
Member Function Documentation
| __call |
( |
$ |
name, |
|
|
$ |
arguments |
|
) |
| |
Magic php function used when a non-defined method is called. Here we mimics multi-inheritance by calling methods from "roots"
- Parameters:
-
| string | $name | |
| mixed | $arguments | |
- Returns:
- mixed
Magic php function, called when trying to access a non-defined field
When a method want a field which doesn't exist, we assume it's a data from the father
- Version:
- 2.0
- Author:
- greg
- Date:
- 20110818 (v2.0) (greg) added external access to private/protected fields either by accessor or read-only ; cleanup
-
20100805 (v1.0.2) (greg) removed direct access to fields to avoid giving public access to private/protected fields
-
20100426 (v1.0.1) (greg) change to use PHPDS_dependance() to get the proper top owner
- Parameters:
-
| $name | string name of the field to fetch |
- Returns:
- mixed
| __set |
( |
$ |
name, |
|
|
$ |
value |
|
) |
| |
Sets property names when none existant and makes them available in core.
- Parameters:
-
- Returns:
- mixed
DEPRECATED: alias for log()
- Parameters:
-
| debugInstance |
( |
$ |
domain = null | ) |
|
Create a new instance of the given class and link it as dependant (variable number of argument)
- Parameters:
-
| string | array | $classname,... | name of the class to instanciate, or factory array parameter (see PHPDS->_factory() ) |
| mixed | ... optionnal class specific parameters |
- Date:
- 20111219 (v1.2.1) (greg) rewrote signature description for phpDoc
-
20100922 (v1.2) (greg) created factoryWith()
-
20100217 Split into factory() and PHPDS._factory() so the latter can be called with an array of arguments
-
20091125 Added the dependance link as the last parameter of the constructor
- Version:
- 1.2.1
- Author:
- greg
- See also:
- PHPDS_debug
-
PHPDS::_factory()
- Returns:
- instance of $classname
| factoryWith |
( |
$ |
classname, |
|
|
array $ |
params |
|
) |
| |
Create a new instance of the given class and link it as dependant (variable number of argument)
- Parameters:
-
| string | array | $classname,... | name of the class to instanciate, or factory array parameter (see PHPDS->_factory() ) |
| array | $params | optionnal class specific parameters |
- Date:
- 20111219 (v1.0.2) (greg) rewrote signature description for phpDoc
-
20110915 (v1.0.1) (greg) moved class aliasing support to PHPDS skel
- Version:
- 1.0.2
- Author:
- greg
- Returns:
- instance of $classname
Send info data to the debug subsystem (console, firebug, ...)
The goal of this function is to be called all thourough the code to be able to track bugs.
- Date:
- 20100928 (v1.1) (greg) this function send data with the DEBUG level
- Version:
- 1.1
- Parameters:
-
| PHPDS_dependance |
( |
$ |
dependance = null | ) |
|
Inject the given dependency into $this, and/or returns the owner
The default behavior is to try to get the top owner, ie the main PHPDS instance. However the given parmeter is supposed to be the object from where the new object is created. That means you can override this to "catch" the real owner at this time.
- Date:
- 20110202 (v1.1.1) (greg) added a check to prevent breaking on $this->dependancy if it's not an object
- Version:
- 1.1.1
- Author:
- greg
- Date:
- 20100426
- Parameters:
-
- Returns:
- owner of $this
Gives an instance of the class according to the singleton pattern i.e., the first time the class is asked for, an object is instanciated and every following class will return the same object
- Parameters:
-
| string | $classname | name of the class to instanciate |
| mixed | ... optionnal class specific parameters |
- Date:
- 20111219 (v1.0) (greg) added
- Version:
- 1.0
- Author:
- greg <greg@phpdevshell.org>
- Returns:
- instance of $classname
| singletonWith |
( |
$ |
classname, |
|
|
array $ |
params |
|
) |
| |
Gives an instance of the class according to the singleton pattern i.e., the first time the class is asked for, an object is instanciated and every following class will return the same object
- Parameters:
-
| string | $classname | name of the class to instanciate |
- Date:
- 20111219 (v1.0) (greg) added
- Version:
- 1.0
- Author:
- greg <greg@phpdevshell.org>
- Returns:
- instance of $classname
Field Documentation
$privateFields = false [protected] |
The documentation for this class was generated from the following file: