| 1 | <?php |
||
| 11 | class DecoratorFactory |
||
| 12 | { |
||
| 13 | |||
| 14 | /** |
||
| 15 | * The decorator manger |
||
| 16 | * |
||
| 17 | * @var null|DecoratorPluginManager |
||
| 18 | */ |
||
| 19 | protected static $decoratorManager = null; |
||
| 20 | |||
| 21 | const CELL_PREFIX = 'cell'; |
||
| 22 | const HEADER_PREFIX = 'header'; |
||
| 23 | const ROW_PREFIX = 'row'; |
||
| 24 | |||
| 25 | /** |
||
| 26 | * |
||
| 27 | * @param string $name |
||
| 28 | * @param array $options |
||
| 29 | * @return AbstractDecorator |
||
| 30 | */ |
||
| 31 | public static function factoryCell($name, $options) |
||
| 36 | |||
| 37 | /** |
||
| 38 | * |
||
| 39 | * @param string $name |
||
| 40 | * @param array $options |
||
| 41 | * @return AbstractDecorator |
||
| 42 | */ |
||
| 43 | public static function factoryRow($name, $options) |
||
| 48 | |||
| 49 | /** |
||
| 50 | * |
||
| 51 | * @param string $name |
||
| 52 | * @param array $options |
||
| 53 | * @return AbstractDecorator |
||
| 54 | */ |
||
| 55 | public static function factoryHeader($name, $options) |
||
| 60 | |||
| 61 | /** |
||
| 62 | * Get the pattern plugin manager |
||
| 63 | * |
||
| 64 | * @return DecoratorPluginManager |
||
| 65 | */ |
||
| 66 | public static function getPluginManager() |
||
| 73 | } |
||
| 74 |