| 1 | <?php |
||
| 13 | class Entity |
||
| 14 | { |
||
| 15 | /** Entity configuration file pattern */ |
||
| 16 | const FILE_PATTERN = '*Config.php'; |
||
| 17 | |||
| 18 | /** Entity configuration class name pattern */ |
||
| 19 | const CLASS_PATTERN = '/Config$/i'; |
||
| 20 | |||
| 21 | /** |
||
| 22 | * Configure object with configuration entity parameters. |
||
| 23 | * If additional parameters key=>value collection is passed, they |
||
| 24 | * will be used to configure object. |
||
| 25 | * |
||
| 26 | * @param mixed $object Object for configuration with entity |
||
| 27 | * @param array|null $params Collection of configuration parameters |
||
| 28 | * |
||
| 29 | * @return boolean True if everything is fine, otherwise false |
||
| 30 | */ |
||
| 31 | public function configure(& $object, $params = null) |
||
| 44 | } |
||
| 45 |