| Total Complexity | 8 |
| Total Lines | 72 |
| Duplicated Lines | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 19 | abstract class AbstractDialogLibrary implements DialogLibraryInterface |
||
| 20 | { |
||
| 21 | use DialogLibraryTrait; |
||
| 22 | |||
| 23 | /** |
||
| 24 | * Add a client side plugin command to the response object |
||
| 25 | * |
||
| 26 | * @param array $aAttributes The attributes of the command |
||
| 27 | * @param mixed $xData The data to be added to the command |
||
| 28 | * |
||
| 29 | * @return void |
||
| 30 | */ |
||
| 31 | final public function addCommand(array $aAttributes, $xData) |
||
| 32 | { |
||
| 33 | $aAttributes['plg'] = $this->getName(); |
||
| 34 | $this->xResponse->addCommand($aAttributes, $xData); |
||
| 35 | } |
||
| 36 | |||
| 37 | /** |
||
| 38 | * @inheritDoc |
||
| 39 | */ |
||
| 40 | public function getUri(): string |
||
| 41 | { |
||
| 42 | return 'https://cdn.jaxon-php.org/libs'; |
||
| 43 | } |
||
| 44 | |||
| 45 | /** |
||
| 46 | * @inheritDoc |
||
| 47 | */ |
||
| 48 | public function getSubdir(): string |
||
| 49 | { |
||
| 50 | return ''; |
||
| 51 | } |
||
| 52 | |||
| 53 | /** |
||
| 54 | * @inheritDoc |
||
| 55 | */ |
||
| 56 | public function getVersion(): string |
||
| 59 | } |
||
| 60 | |||
| 61 | /** |
||
| 62 | * @inheritDoc |
||
| 63 | */ |
||
| 64 | public function getJs(): string |
||
| 65 | { |
||
| 66 | return ''; |
||
| 67 | } |
||
| 68 | |||
| 69 | /** |
||
| 70 | * @inheritDoc |
||
| 71 | */ |
||
| 72 | public function getCss(): string |
||
| 73 | { |
||
| 74 | return ''; |
||
| 75 | } |
||
| 76 | |||
| 77 | /** |
||
| 78 | * @inheritDoc |
||
| 79 | */ |
||
| 80 | public function getScript(): string |
||
| 83 | } |
||
| 84 | |||
| 85 | /** |
||
| 86 | * @inheritDoc |
||
| 87 | */ |
||
| 88 | public function getReadyScript(): string |
||
| 91 | } |
||
| 92 | } |
||
| 93 |