1 <?php
2
3 4 5 6 7 8 9 10
11
12 namespace Icybee\Installer;
13
14 use ICanBoogie\I18n;
15
16 class SiteOperation extends Operation
17 {
18 protected function get_controls()
19 {
20 return array
21 (
22 self::CONTROL_FORM => true
23 )
24
25 + parent::get_controls();
26 }
27
28 protected function get_form()
29 {
30 return new SiteForm;
31 }
32
33 protected function validate(\ICanBoogie\Errors $errors)
34 {
35 return $errors;
36 }
37
38 protected function process()
39 {
40 global $core;
41
42 $request = $this->request;
43
44 $core->session->install['site'] = array
45 (
46 'title' => $request['title'],
47 'language' => $request['language'],
48 'timezone' => $request['timezone']
49 );
50
51 $this->response->message = I18n\t('panel.site.success');
52
53 return parent::process();
54 }
55 }