| 1 | <?php |
||
| 23 | abstract class Plugin implements Code\Contracts\Generator |
||
| 24 | { |
||
| 25 | use \Jaxon\Features\Config; |
||
| 26 | |||
| 27 | /** |
||
| 28 | * Check if the assets of this plugin shall be included in Jaxon generated code. |
||
| 29 | * |
||
| 30 | * @return boolean |
||
| 31 | */ |
||
| 32 | protected function includeAssets() |
||
| 45 | |||
| 46 | /** |
||
| 47 | * Get a unique name to identify the plugin. |
||
| 48 | * |
||
| 49 | * @return string |
||
| 50 | */ |
||
| 51 | abstract public function getName(); |
||
| 52 | |||
| 53 | /** |
||
| 54 | * @inheritDoc |
||
| 55 | */ |
||
| 56 | public final function readyEnabled() |
||
| 61 | |||
| 62 | /** |
||
| 63 | * @inheritDoc |
||
| 64 | */ |
||
| 65 | public function getHash() |
||
| 69 | |||
| 70 | /** |
||
| 71 | * @inheritDoc |
||
| 72 | */ |
||
| 73 | public function getCss() |
||
| 77 | |||
| 78 | /** |
||
| 79 | * @inheritDoc |
||
| 80 | */ |
||
| 81 | public function getJs() |
||
| 85 | |||
| 86 | /** |
||
| 87 | * @inheritDoc |
||
| 88 | */ |
||
| 89 | public function getScript() |
||
| 93 | |||
| 94 | /** |
||
| 95 | * @inheritDoc |
||
| 96 | */ |
||
| 97 | public function getReadyScript() |
||
| 101 | } |
||
| 102 |