| 1 |
<?php |
| 2 |
/** |
| 3 |
* |
| 4 |
*/ |
| 5 |
|
| 6 |
/** |
| 7 |
* |
| 8 |
*/ |
| 9 |
class CJT_Framework_View_Block_Parameter_Grouper_Factory { |
| 10 |
|
| 11 |
/** |
| 12 |
* put your comment there... |
| 13 |
* |
| 14 |
* @param mixed $name |
| 15 |
* @param mixed $params |
| 16 |
*/ |
| 17 |
public function create($name, $params) { |
| 18 |
// Upper case first letter. |
| 19 |
$name = ucfirst($name); |
| 20 |
// Build class name. |
| 21 |
$className = "CJT_Framework_View_Block_Parameter_Grouper_{$name}_{$name}"; |
| 22 |
// Inistntiate grouper object. |
| 23 |
return new $className($params); |
| 24 |
} |
| 25 |
|
| 26 |
} // End class. |
| 27 |
|