@@ -15,7 +15,7 @@ |
||
15 | 15 | $module = $this->getKernel()->module("intranetmaintenance"); |
16 | 16 | $translation = $this->getKernel()->getTranslation('intranetmaintenance'); |
17 | 17 | |
18 | - $smarty = $this->template->create(dirname(__FILE__) . '/../templates/user/permission'); |
|
18 | + $smarty = $this->template->create(dirname(__FILE__).'/../templates/user/permission'); |
|
19 | 19 | return $smarty->render($this); |
20 | 20 | } |
21 | 21 |
@@ -68,8 +68,8 @@ discard block |
||
68 | 68 | $this->intranetmaintenance = $intranet; |
69 | 69 | |
70 | 70 | $data = array( |
71 | - 'intranet' => $intranet, |
|
72 | - 'user' => $user); |
|
71 | + 'intranet' => $intranet, |
|
72 | + 'user' => $user); |
|
73 | 73 | |
74 | 74 | $smarty = $this->template->create(dirname(__FILE__) . '/../templates/user/show'); |
75 | 75 | return $smarty->render($this, $data); |
@@ -208,7 +208,7 @@ discard block |
||
208 | 208 | |
209 | 209 | function getKernel() |
210 | 210 | { |
211 | - return $this->context->getKernel(); |
|
211 | + return $this->context->getKernel(); |
|
212 | 212 | } |
213 | 213 | |
214 | 214 | /* |
@@ -71,7 +71,7 @@ discard block |
||
71 | 71 | 'intranet' => $intranet, |
72 | 72 | 'user' => $user); |
73 | 73 | |
74 | - $smarty = $this->template->create(dirname(__FILE__) . '/../templates/user/show'); |
|
74 | + $smarty = $this->template->create(dirname(__FILE__).'/../templates/user/show'); |
|
75 | 75 | return $smarty->render($this, $data); |
76 | 76 | } |
77 | 77 | |
@@ -104,7 +104,7 @@ discard block |
||
104 | 104 | |
105 | 105 | function renderHtmlEdit() |
106 | 106 | { |
107 | - $smarty = $this->template->create(dirname(__FILE__) . '/../templates/user/edit'); |
|
107 | + $smarty = $this->template->create(dirname(__FILE__).'/../templates/user/edit'); |
|
108 | 108 | return $smarty->render($this); |
109 | 109 | } |
110 | 110 |
@@ -25,8 +25,8 @@ discard block |
||
25 | 25 | $user = new UserMaintenance(); |
26 | 26 | |
27 | 27 | if ($this->query('add_user_id') != 0) { |
28 | - $this->getRedirect()->setParameter('user_id', intval($this->query('add_user_id'))); |
|
29 | - return new k_SeeOther($this->getRedirect()->getRedirect($this->url(null))); |
|
28 | + $this->getRedirect()->setParameter('user_id', intval($this->query('add_user_id'))); |
|
29 | + return new k_SeeOther($this->getRedirect()->getRedirect($this->url(null))); |
|
30 | 30 | } |
31 | 31 | |
32 | 32 | $smarty = $this->template->create(dirname(__FILE__) . '/../templates/user/index'); |
@@ -82,15 +82,15 @@ discard block |
||
82 | 82 | if (!is_null($this->redirect)) { |
83 | 83 | return $this->redirect; |
84 | 84 | } |
85 | - return $this->redirect = Intraface_Redirect::factory($this->getKernel(), 'receive'); |
|
85 | + return $this->redirect = Intraface_Redirect::factory($this->getKernel(), 'receive'); |
|
86 | 86 | } |
87 | 87 | |
88 | 88 | function isAddUserTrue() |
89 | 89 | { |
90 | 90 | if ($this->getRedirect()->get('identifier') == 'add_user') { |
91 | - return true; |
|
91 | + return true; |
|
92 | 92 | } else { |
93 | - return false; |
|
93 | + return false; |
|
94 | 94 | } |
95 | 95 | } |
96 | 96 | |
@@ -106,11 +106,11 @@ discard block |
||
106 | 106 | { |
107 | 107 | if (isset($_GET["search"])) { |
108 | 108 | |
109 | - if (isset($_GET["text"]) && $_GET["text"] != "") { |
|
110 | - $this->getUser()->getDBQuery($this->getKernel())->setFilter("text", $_GET["text"]); |
|
111 | - } |
|
109 | + if (isset($_GET["text"]) && $_GET["text"] != "") { |
|
110 | + $this->getUser()->getDBQuery($this->getKernel())->setFilter("text", $_GET["text"]); |
|
111 | + } |
|
112 | 112 | } elseif (isset($_GET['character'])) { |
113 | - $this->getUser()->getDBQuery($this->getKernel())->useCharacter(); |
|
113 | + $this->getUser()->getDBQuery($this->getKernel())->useCharacter(); |
|
114 | 114 | } |
115 | 115 | |
116 | 116 | $this->getUser()->getDBQuery($this->getKernel())->defineCharacter('character', 'name'); |
@@ -131,7 +131,7 @@ discard block |
||
131 | 131 | |
132 | 132 | function getKernel() |
133 | 133 | { |
134 | - return $this->context->getKernel(); |
|
134 | + return $this->context->getKernel(); |
|
135 | 135 | } |
136 | 136 | |
137 | 137 | function getIntranet() |
@@ -29,13 +29,13 @@ |
||
29 | 29 | return new k_SeeOther($this->getRedirect()->getRedirect($this->url(null))); |
30 | 30 | } |
31 | 31 | |
32 | - $smarty = $this->template->create(dirname(__FILE__) . '/../templates/user/index'); |
|
32 | + $smarty = $this->template->create(dirname(__FILE__).'/../templates/user/index'); |
|
33 | 33 | return $smarty->render($this); |
34 | 34 | } |
35 | 35 | |
36 | 36 | function renderHtmlCreate() |
37 | 37 | { |
38 | - $smarty = $this->template->create(dirname(__FILE__) . '/../templates/user/edit'); |
|
38 | + $smarty = $this->template->create(dirname(__FILE__).'/../templates/user/edit'); |
|
39 | 39 | return $smarty->render($this); |
40 | 40 | } |
41 | 41 |
@@ -111,7 +111,7 @@ |
||
111 | 111 | |
112 | 112 | function getKernel() |
113 | 113 | { |
114 | - return $this->context->getKernel(); |
|
114 | + return $this->context->getKernel(); |
|
115 | 115 | } |
116 | 116 | |
117 | 117 | function getModules() |
@@ -35,7 +35,7 @@ |
||
35 | 35 | |
36 | 36 | function renderHtml() |
37 | 37 | { |
38 | - $smarty = $this->template->create(dirname(__FILE__) . '/templates/userpreferences'); |
|
38 | + $smarty = $this->template->create(dirname(__FILE__).'/templates/userpreferences'); |
|
39 | 39 | return $smarty->render($this); |
40 | 40 | } |
41 | 41 |
@@ -26,7 +26,7 @@ |
||
26 | 26 | |
27 | 27 | function getKernel() |
28 | 28 | { |
29 | - return $this->context->getKernel(); |
|
29 | + return $this->context->getKernel(); |
|
30 | 30 | } |
31 | 31 | |
32 | 32 | function getModules() |
@@ -20,7 +20,7 @@ |
||
20 | 20 | { |
21 | 21 | $this->getKernel()->module('controlpanel'); |
22 | 22 | |
23 | - $smarty = $this->template->create(dirname(__FILE__) . '/templates/index'); |
|
23 | + $smarty = $this->template->create(dirname(__FILE__).'/templates/index'); |
|
24 | 24 | return $smarty->render($this); |
25 | 25 | } |
26 | 26 |
@@ -16,10 +16,10 @@ |
||
16 | 16 | |
17 | 17 | function putForm() |
18 | 18 | { |
19 | - if ($this->getUser()->updatePassword($_POST['old_password'], $_POST['new_password'], $_POST['repeat_password'])) { |
|
20 | - return new k_SeeOther($this->url('../')); |
|
21 | - } |
|
22 | - return $this->render(); |
|
19 | + if ($this->getUser()->updatePassword($_POST['old_password'], $_POST['new_password'], $_POST['repeat_password'])) { |
|
20 | + return new k_SeeOther($this->url('../')); |
|
21 | + } |
|
22 | + return $this->render(); |
|
23 | 23 | } |
24 | 24 | |
25 | 25 | function getValues() |
@@ -10,7 +10,7 @@ |
||
10 | 10 | |
11 | 11 | function renderHtml() |
12 | 12 | { |
13 | - $smarty = $this->template->create(dirname(__FILE__) . '/templates/changepassword'); |
|
13 | + $smarty = $this->template->create(dirname(__FILE__).'/templates/changepassword'); |
|
14 | 14 | return $smarty->render($this); |
15 | 15 | } |
16 | 16 |
@@ -77,7 +77,7 @@ |
||
77 | 77 | |
78 | 78 | function getValues() |
79 | 79 | { |
80 | - if ($this->body()) { |
|
80 | + if ($this->body()) { |
|
81 | 81 | $value = $this->body(); |
82 | 82 | $address_value['name'] = $this->body('address_name'); |
83 | 83 | $address_value['email'] = $this->body('address_email'); |
@@ -36,13 +36,13 @@ |
||
36 | 36 | |
37 | 37 | function renderHtml() |
38 | 38 | { |
39 | - $smarty = $this->template->create(dirname(__FILE__) . '/templates/user'); |
|
39 | + $smarty = $this->template->create(dirname(__FILE__).'/templates/user'); |
|
40 | 40 | return $smarty->render($this, $this->getValues()); |
41 | 41 | } |
42 | 42 | |
43 | 43 | function renderHtmlEdit() |
44 | 44 | { |
45 | - $smarty = $this->template->create(dirname(__FILE__) . '/templates/useredit'); |
|
45 | + $smarty = $this->template->create(dirname(__FILE__).'/templates/useredit'); |
|
46 | 46 | return $smarty->render($this, $this->getValues()); |
47 | 47 | } |
48 | 48 |
@@ -75,7 +75,7 @@ discard block |
||
75 | 75 | */ |
76 | 76 | public function convertAmountToCurrency($amount) |
77 | 77 | { |
78 | - return new Ilib_Variable_Float($amount->getAsIso() / ($this->getRate()->getAsIso() / 100)); |
|
78 | + return new Ilib_Variable_Float($amount->getAsIso()/($this->getRate()->getAsIso()/100)); |
|
79 | 79 | } |
80 | 80 | |
81 | 81 | |
@@ -87,7 +87,7 @@ discard block |
||
87 | 87 | */ |
88 | 88 | public function convertAmountFromCurrency($amount) |
89 | 89 | { |
90 | - return new Ilib_Variable_Float($amount->getAsIso() * ($this->getRate()->getAsIso() / 100)); |
|
90 | + return new Ilib_Variable_Float($amount->getAsIso()*($this->getRate()->getAsIso()/100)); |
|
91 | 91 | } |
92 | 92 | |
93 | 93 | public function getUsedForTypes() |
@@ -43,7 +43,7 @@ |
||
43 | 43 | |
44 | 44 | function wrapHtml($content) |
45 | 45 | { |
46 | - $tpl = $this->template->create(dirname(__FILE__) . '/tpl/content'); |
|
46 | + $tpl = $this->template->create(dirname(__FILE__).'/tpl/content'); |
|
47 | 47 | return $tpl->render($this, array('content' => $content)); |
48 | 48 | } |
49 | 49 |