| Total Complexity | 7 |
| Total Lines | 37 |
| Duplicated Lines | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 8 | class Dialog extends CallableClass |
||
| 9 | { |
||
| 10 | public function success() |
||
| 11 | { |
||
| 12 | $this->response->dialog->title('Success')->success('This is a message!!'); |
||
| 13 | } |
||
| 14 | |||
| 15 | public function info() |
||
| 16 | { |
||
| 17 | $this->response->dialog->title('Info')->info('This is a message!!'); |
||
| 18 | } |
||
| 19 | |||
| 20 | public function warning() |
||
| 21 | { |
||
| 22 | $this->response->dialog->title('Warning')->warning('This is a message!!'); |
||
| 23 | } |
||
| 24 | |||
| 25 | public function error() |
||
| 26 | { |
||
| 27 | $this->response->dialog->title('Error')->error('This is a message!!'); |
||
| 28 | } |
||
| 29 | |||
| 30 | public function show() |
||
| 31 | { |
||
| 32 | $this->response->dialog->show('Dialog', 'This is the dialog content!!', |
||
| 33 | [['title' => 'Save', 'class' => 'btn', 'click' => $this->rq()->save()->confirm('Save?')]]); |
||
| 34 | } |
||
| 35 | |||
| 36 | public function showWith() |
||
| 37 | { |
||
| 38 | $this->response->dialog->with('bootbox')->show('Dialog', 'This is the dialog content!!', |
||
| 39 | [['title' => 'Save', 'class' => 'btn', 'click' => $this->rq()->save()->confirm('Save?')]]); |
||
| 40 | } |
||
| 41 | |||
| 42 | public function hide() |
||
| 45 | } |
||
| 46 | } |
||
| 47 | |||
| 48 | class TestDialogLibrary extends AbstractLibrary implements LibraryInterface, ConfirmInterface |
||
| 49 | { |
||
| 50 | /** |
||
| 51 | * @const The library name |
||
| 76 |