Rev 52 | Rev 59 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 52 | Rev 54 | ||
---|---|---|---|
Line 46... | Line 46... | ||
46 | * @return mixed
|
46 | * @return mixed
|
47 | */
|
47 | */
|
48 | public function __get ($name) |
48 | public function __get ($name) |
49 | {
|
49 | {
|
50 | /* Support for Object-Relational Mappers */
|
50 | /* Support for Object-Relational Mappers */
|
51 | // if (strpos($name, 'persistent') === 0)
|
51 | // if (strpos($name, 'persistent') === 0)
|
52 | // {
|
52 | // {
|
53 | // $class = get_class($this);
|
53 | // $class = get_class($this);
|
54 | // return $class::${$name};
|
54 | // return $class::${"_" . $name};
|
55 | // }
|
55 | // }
|
56 | 56 | ||
57 | $method = 'get' . ucfirst($name); |
57 | $method = 'get' . ucfirst($name); |
58 | 58 | ||
59 | if (method_exists($this, $method)) |
59 | if (method_exists($this, $method)) |