used to create new classes dynamicly.
Definition at line 10 of file nReflection.class.php.
◆ __construct()
__construct |
( |
|
$elt = 'object' | ) |
|
Overload the ReflectionClass to accept no parameter
- Parameters
-
Definition at line 17 of file nReflection.class.php.
◆ callMethod()
static callMethod |
( |
|
$object, |
|
|
|
$function, |
|
|
|
$args = array() |
|
) |
| |
|
static |
Call a method from an object. Used when the function name is dynamic
- Parameters
-
object | $object | The object where call the function |
string | $function | Function name |
array | $args | Argumens for the call |
- Returns
- mixed Function result
- Exceptions
-
nExecption | If method is not callable |
Definition at line 97 of file nReflection.class.php.
◆ getParentsClass()
static getParentsClass |
( |
|
$className | ) |
|
|
static |
Return all the parents. The first element is the oldest This function doesn't change the nReflection state
- Parameters
-
- Returns
- array
Definition at line 84 of file nReflection.class.php.
◆ getPublicProperties()
◆ isSubclassOf()
isSubclassOf |
( |
|
$className | ) |
|
Test if the className is a parent fo the actual class
- Parameters
-
string | $className | The className to test |
- Returns
- bool
Definition at line 55 of file nReflection.class.php.
◆ newInstanceCfg()
Create a new object with one argument, a config passed in parameter.
- Parameters
-
config | $cfg | The config parameter |
- Returns
- stdclass The new instance
Definition at line 45 of file nReflection.class.php.
◆ rebuild()
Change the present class to be able to use reflection on it.
- Parameters
-
- Returns
- bool True if success
Definition at line 30 of file nReflection.class.php.
The documentation for this class was generated from the following file: