8,8 → 8,8 |
interface ILocalizable |
{ |
/** |
* Localizes this model. The actual implementation is left to |
* the model class implementing this interface. |
* Localizes this model. The actual implementation is left to the model class |
* implementing this interface. |
*/ |
function localize (); |
} |
48,11 → 48,11 |
public function __get ($name) |
{ |
/* Support for Object-Relational Mappers */ |
// if (strpos($name, 'persistent') === 0) |
// { |
// $class = get_class($this); |
// return $class::${$name}; |
// } |
if (strpos($name, 'persistent') === 0) |
{ |
$class = get_class($this); |
return $class::${$name}; |
} |
|
$method = 'get' . ucfirst($name); |
|