blob: eceb1147c693925770e38489f28b36ed111f20bd (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
|
/**
* Base class for defining your own objects
*
* @author Emiel Bruijntjes <emiel.bruijntjes@copernica.com>
* @copyright 2013 Copernica BV
*/
/**
* Namespace
*/
namespace Php {
/**
* Class definition
*/
class Base
{
public:
/**
* The pseudo constructor that is called from PHP after the object is constructed
* @param environment
* @param parameters
*/
virtual void __construct(Environment &environment, const Parameters ¶meters)
{
// call all other possible implementations
__construct(environment);
__construct(parameters);
__construct();
}
/**
* The pseudo constructor that is called from PHP after the object is constructed
* @param environment
*/
virtual void __construct(Environment &environment) {}
/**
* The pseudo constructor that is called from PHP after the object is constructed
* @param parameters
*/
virtual void __construct(const Parameters ¶meters) {}
/**
* The pseudo constructor that is called from PHP after the object is constructed
*/
virtual void __construct() {}
};
/**
* End of namespace
*/
}
|