Completed
Push — master ( 9d10c2...bf46e5 )
by Lars
05:14
created
src/Intraface/modules/cms/ElementGateway.php 2 patches
Doc Comments   +9 added lines patch added patch discarded remove patch
@@ -11,6 +11,9 @@  discard block
 block discarded – undo
11 11
         $this->kernel = $kernel;
12 12
     }
13 13
 
14
+    /**
15
+     * @param string $type
16
+     */
14 17
     function findBySectionAndType($section, $type)
15 18
     {
16 19
         $class = $this->class_prefix . ucfirst($type);
@@ -37,6 +40,9 @@  discard block
 block discarded – undo
37 40
         return new $class(CMS_Section::factory($this->kernel, 'id', $this->db->f('section_id')), $this->db->f('id'));
38 41
     }
39 42
 
43
+    /**
44
+     * @param string $id
45
+     */
40 46
     function findByKernelAndId($kernel, $id)
41 47
     {
42 48
         $cms_module = $kernel->getModule('cms');
@@ -53,6 +59,9 @@  discard block
 block discarded – undo
53 59
         return new $class(CMS_Section::factory($kernel, 'id', $this->db->f('section_id')), $this->db->f('id'));
54 60
     }
55 61
 
62
+    /**
63
+     * @param string $id
64
+     */
56 65
     function findBySectionAndId($section, $id)
57 66
     {
58 67
         // FIXME - jeg tror den her kan skabe en del
Please login to merge, or discard this patch.
Spacing   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -13,7 +13,7 @@  discard block
 block discarded – undo
13 13
 
14 14
     function findBySectionAndType($section, $type)
15 15
     {
16
-        $class = $this->class_prefix . ucfirst($type);
16
+        $class = $this->class_prefix.ucfirst($type);
17 17
 
18 18
         if (!class_exists($class)) {
19 19
             throw new Exception('Class does not exist');
@@ -26,11 +26,11 @@  discard block
 block discarded – undo
26 26
         $cms_module = $this->kernel->getModule('cms');
27 27
         $element_types = $cms_module->getSetting('element_types');
28 28
 
29
-        $this->db->query("SELECT id, section_id, type_key FROM cms_element WHERE id = " . $id . " AND intranet_id = " . $this->kernel->intranet->get('id'));
29
+        $this->db->query("SELECT id, section_id, type_key FROM cms_element WHERE id = ".$id." AND intranet_id = ".$this->kernel->intranet->get('id'));
30 30
         if (!$this->db->nextRecord()) {
31 31
             return false;
32 32
         }
33
-        $class = $this->class_prefix . ucfirst($element_types[$this->db->f('type_key')]);
33
+        $class = $this->class_prefix.ucfirst($element_types[$this->db->f('type_key')]);
34 34
         if (!class_exists($class)) {
35 35
             return false;
36 36
         }
@@ -42,11 +42,11 @@  discard block
 block discarded – undo
42 42
         $cms_module = $kernel->getModule('cms');
43 43
         $element_types = $cms_module->getSetting('element_types');
44 44
 
45
-        $this->db->query("SELECT id, section_id, type_key FROM cms_element WHERE id = " . $id . " AND intranet_id = " . $kernel->intranet->get('id'));
45
+        $this->db->query("SELECT id, section_id, type_key FROM cms_element WHERE id = ".$id." AND intranet_id = ".$kernel->intranet->get('id'));
46 46
         if (!$this->db->nextRecord()) {
47 47
             return false;
48 48
         }
49
-        $class = $this->class_prefix . ucfirst($element_types[$this->db->f('type_key')]);
49
+        $class = $this->class_prefix.ucfirst($element_types[$this->db->f('type_key')]);
50 50
         if (!class_exists($class)) {
51 51
             return false;
52 52
         }
@@ -61,12 +61,12 @@  discard block
 block discarded – undo
61 61
         $cms_module = $section->kernel->getModule('cms');
62 62
         $element_types = $cms_module->getSetting('element_types');
63 63
 
64
-        $this->db->query("SELECT id, section_id, type_key FROM cms_element WHERE id = " . $id . " AND intranet_id = " . $section->kernel->intranet->get('id'));
64
+        $this->db->query("SELECT id, section_id, type_key FROM cms_element WHERE id = ".$id." AND intranet_id = ".$section->kernel->intranet->get('id'));
65 65
         if (!$this->db->nextRecord()) {
66 66
             return false;
67 67
         }
68 68
 
69
-        $class = $this->class_prefix . ucfirst($element_types[$this->db->f('type_key')]);
69
+        $class = $this->class_prefix.ucfirst($element_types[$this->db->f('type_key')]);
70 70
         if (!class_exists($class)) {
71 71
             return false;
72 72
         }
Please login to merge, or discard this patch.
src/Intraface/modules/cms/HTML_Parser.php 2 patches
Doc Comments   +3 added lines patch added patch discarded remove patch
@@ -21,6 +21,9 @@
 block discarded – undo
21 21
         $this->translation = $translation;
22 22
     }
23 23
 
24
+    /**
25
+     * @param string $phrase
26
+     */
24 27
     function t($phrase)
25 28
     {
26 29
         return utf8_encode($this->translation->get($phrase));
Please login to merge, or discard this patch.
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -58,7 +58,7 @@  discard block
 block discarded – undo
58 58
                 $element['extra_style'] = ' style="'.$element['extra_style'].'"';
59 59
             }
60 60
 
61
-            $function =  'parse'.$element['type'] . 'Element';
61
+            $function = 'parse'.$element['type'].'Element';
62 62
             $output = $this->$function($element);
63 63
 
64 64
             $display .= '<div id="element-'.$element['id'].'"'.$element['extra_class'].$element['extra_style'].'>';
@@ -76,9 +76,9 @@  discard block
 block discarded – undo
76 76
             } else {
77 77
                 $display .= '		<li><a href="'.url(null).'?action=move&amp;element_id='.$element['id'].'&amp;id='.$element['section_id'].'">'.$this->t('move').'</a></li>';
78 78
             }
79
-            $display .= '		<li><a class="confirm" href="' . url(null) . '?delete='.$element['id'].'">'.$this->t('delete').'</a></li>';
80
-            $display .=     '	</ul>';
81
-            $display .= '<div>' .           $output . '</div>';
79
+            $display .= '		<li><a class="confirm" href="'.url(null).'?delete='.$element['id'].'">'.$this->t('delete').'</a></li>';
80
+            $display .= '	</ul>';
81
+            $display .= '<div>'.$output.'</div>';
82 82
             $display .= '</div>';
83 83
         }
84 84
         return $display;
Please login to merge, or discard this patch.
src/Intraface/modules/cms/Navigation.php 1 patch
Doc Comments   +3 added lines patch added patch discarded remove patch
@@ -10,6 +10,9 @@
 block discarded – undo
10 10
     private $cmspage;
11 11
     public $value;
12 12
 
13
+    /**
14
+     * @param CMS_Page $cmspage
15
+     */
13 16
     function __construct($cmspage)
14 17
     {
15 18
         $this->cmspage = $cmspage;
Please login to merge, or discard this patch.
src/Intraface/modules/cms/PageGateway.php 2 patches
Doc Comments   +5 added lines, -2 removed lines patch added patch discarded remove patch
@@ -25,7 +25,7 @@  discard block
 block discarded – undo
25 25
     /**
26 26
      * Returns the possible page types
27 27
      *
28
-     * @return array possible page types
28
+     * @return string[] possible page types
29 29
      */
30 30
     public function getTypes()
31 31
     {
@@ -59,6 +59,9 @@  discard block
 block discarded – undo
59 59
         return $object;
60 60
     }
61 61
 
62
+    /**
63
+     * @param string $identifier
64
+     */
62 65
     function findBySiteIdAndIdentifier($site_id, $identifier)
63 66
     {
64 67
         $identifier = strip_tags($identifier);
@@ -282,7 +285,7 @@  discard block
 block discarded – undo
282 285
     /**
283 286
      * Returns the possible page types but with a binary index
284 287
      *
285
-     * @return array possible page types with binary index
288
+     * @return string[] possible page types with binary index
286 289
      */
287 290
     static public function getTypesWithBinaryIndex()
288 291
     {
Please login to merge, or discard this patch.
Spacing   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -40,7 +40,7 @@  discard block
 block discarded – undo
40 40
         if ($this->dbquery) {
41 41
             return $this->dbquery;
42 42
         }
43
-        return ($this->dbquery = new Intraface_DBQuery($this->kernel, 'cms_page', 'cms_page.intranet_id = '.$this->kernel->intranet->get('id').' AND cms_page.active = 1 AND site_id = ' . $this->cmssite->get('id')));
43
+        return ($this->dbquery = new Intraface_DBQuery($this->kernel, 'cms_page', 'cms_page.intranet_id = '.$this->kernel->intranet->get('id').' AND cms_page.active = 1 AND site_id = '.$this->cmssite->get('id')));
44 44
     }
45 45
 
46 46
     function setDBQuery($dbquery)
@@ -50,7 +50,7 @@  discard block
 block discarded – undo
50 50
 
51 51
     function findById($id)
52 52
     {
53
-        $this->db->query("SELECT id, site_id FROM cms_page WHERE id = " . (int)$id . " AND intranet_id = " . $this->kernel->intranet->get('id'));
53
+        $this->db->query("SELECT id, site_id FROM cms_page WHERE id = ".(int)$id." AND intranet_id = ".$this->kernel->intranet->get('id'));
54 54
         if (!$this->db->nextRecord()) {
55 55
             return false;
56 56
         }
@@ -64,13 +64,13 @@  discard block
 block discarded – undo
64 64
         $identifier = strip_tags($identifier);
65 65
 
66 66
         if (!empty($identifier)) {
67
-            $this->db->query("SELECT site_id, id FROM cms_page WHERE identifier = '" . $identifier . "' AND intranet_id = " . $this->kernel->intranet->get('id') . " AND active = 1 AND site_id = " . $site_id);
67
+            $this->db->query("SELECT site_id, id FROM cms_page WHERE identifier = '".$identifier."' AND intranet_id = ".$this->kernel->intranet->get('id')." AND active = 1 AND site_id = ".$site_id);
68 68
         } else {
69 69
             // @todo choose the default page - vi skal lige have noget med publish og expire date her ogs�
70
-            $this->db->query("SELECT site_id, id FROM cms_page WHERE intranet_id = " . $this->kernel->intranet->get('id') . " AND active = 1 AND status_key = 1 AND site_id = " . $site_id . " ORDER BY position ASC LIMIT 1");
70
+            $this->db->query("SELECT site_id, id FROM cms_page WHERE intranet_id = ".$this->kernel->intranet->get('id')." AND active = 1 AND status_key = 1 AND site_id = ".$site_id." ORDER BY position ASC LIMIT 1");
71 71
         }
72 72
         if (!$this->db->nextRecord()) {
73
-            $this->db->query("SELECT site_id, id FROM cms_page WHERE id = " . (int)$identifier . " AND intranet_id = " . $this->kernel->intranet->get('id') . " AND active = 1 AND site_id = " . $site_id);
73
+            $this->db->query("SELECT site_id, id FROM cms_page WHERE id = ".(int)$identifier." AND intranet_id = ".$this->kernel->intranet->get('id')." AND active = 1 AND site_id = ".$site_id);
74 74
             if (!$this->db->nextRecord()) {
75 75
                 return false;
76 76
             }
@@ -211,8 +211,8 @@  discard block
 block discarded – undo
211 211
                 // til google sitemaps
212 212
                 // sp�rgsm�let er om vi ikke skal starte et objekt op for hver pages
213 213
 
214
-                $pages[$i]['url'] = $this->cmssite->get('url') . $pages[$i]['identifier'] . '/';
215
-                $pages[$i]['url_self'] = $pages[$i]['identifier'] . '/';
214
+                $pages[$i]['url'] = $this->cmssite->get('url').$pages[$i]['identifier'].'/';
215
+                $pages[$i]['url_self'] = $pages[$i]['identifier'].'/';
216 216
                 $pages[$i]['changefreq'] = 'weekly';
217 217
                 $pages[$i]['priority'] = 0.5;
218 218
 
Please login to merge, or discard this patch.
src/Intraface/modules/cms/Stylesheet.php 2 patches
Doc Comments   +3 added lines patch added patch discarded remove patch
@@ -7,6 +7,9 @@
 block discarded – undo
7 7
     private $cmssite;
8 8
     public $error;
9 9
 
10
+    /**
11
+     * @param CMS_Site $cmssite
12
+     */
10 13
     function __construct($cmssite)
11 14
     {
12 15
         if (!is_object($cmssite) OR strtolower(get_class($cmssite)) != 'cms_site') {
Please login to merge, or discard this patch.
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -10,7 +10,7 @@
 block discarded – undo
10 10
     function __construct($cmssite)
11 11
     {
12 12
         if (!is_object($cmssite) or strtolower(get_class($cmssite)) != 'cms_site') {
13
-            throw new Exception('CMS_Stylesheet::__construct needs CMS_Site - got ' . get_class($cmssite));
13
+            throw new Exception('CMS_Stylesheet::__construct needs CMS_Site - got '.get_class($cmssite));
14 14
         }
15 15
         $this->cmssite = $cmssite;
16 16
         $this->error = new Intraface_Error;
Please login to merge, or discard this patch.
src/Intraface/modules/cms/TemplateSection.php 2 patches
Doc Comments   +6 added lines patch added patch discarded remove patch
@@ -62,11 +62,17 @@
 block discarded – undo
62 62
         return new CMS_Parameter($this);
63 63
     }
64 64
 
65
+    /**
66
+     * @param string $key
67
+     */
65 68
     function addParameter($key, $value)
66 69
     {
67 70
         return $this->parameter->save($key, $value);
68 71
     }
69 72
 
73
+    /**
74
+     * @param string $type
75
+     */
70 76
     function factory($object, $type, $value)
71 77
     {
72 78
         $class_prefix = 'Intraface_modules_cms_templatesection_';
Please login to merge, or discard this patch.
Spacing   +15 added lines, -15 removed lines patch added patch discarded remove patch
@@ -31,11 +31,11 @@  discard block
 block discarded – undo
31 31
             throw new Exception('TemplateSection::__construct skal bruge CMS_Template');
32 32
         }
33 33
         $this->error    = new Intraface_Error;
34
-        $this->id       = (int) $id;
34
+        $this->id       = (int)$id;
35 35
         $this->template = $template;
36 36
         $this->kernel   = $template->kernel;
37 37
 
38
-        $this->value['identify_as'] = 'cms_template_section';  // bruges af parameter
38
+        $this->value['identify_as'] = 'cms_template_section'; // bruges af parameter
39 39
 
40 40
         $this->parameter = $this->createParameterObject();
41 41
 
@@ -75,7 +75,7 @@  discard block
 block discarded – undo
75 75
                 // validering p� value
76 76
                 // kun v�re gyldige elementtyper
77 77
                 // object skal vre cmspage
78
-                $class = $class_prefix . ucfirst($value);
78
+                $class = $class_prefix.ucfirst($value);
79 79
                 return new $class($object);
80 80
                 break;
81 81
             case 'id':
@@ -84,12 +84,12 @@  discard block
 block discarded – undo
84 84
                 $section_types = $cms_module->getSetting('section_types');
85 85
 
86 86
                 $db = new DB_Sql;
87
-                $db->query("SELECT id, type_key, template_id FROM cms_template_section WHERE id = " . $value . " AND intranet_id = " . $object->intranet->get('id'));
87
+                $db->query("SELECT id, type_key, template_id FROM cms_template_section WHERE id = ".$value." AND intranet_id = ".$object->intranet->get('id'));
88 88
                 if (!$db->nextRecord()) {
89 89
                     return false;
90 90
                 }
91 91
 
92
-                $class = $class_prefix . ucfirst($section_types[$db->f('type_key')]);
92
+                $class = $class_prefix.ucfirst($section_types[$db->f('type_key')]);
93 93
                 return new $class(CMS_Template::factory($object, 'id', $db->f('template_id')), $db->f('id'));
94 94
 
95 95
                 break;
@@ -99,12 +99,12 @@  discard block
 block discarded – undo
99 99
                 $section_types = $cms_module->getSetting('section_types');
100 100
 
101 101
                 $db = new DB_Sql;
102
-                $db->query("SELECT id, type_key FROM cms_template_section WHERE id = " . $value . " AND intranet_id = " . $object->kernel->intranet->get('id'));
102
+                $db->query("SELECT id, type_key FROM cms_template_section WHERE id = ".$value." AND intranet_id = ".$object->kernel->intranet->get('id'));
103 103
                 if (!$db->nextRecord()) {
104 104
                     return false;
105 105
                 }
106 106
 
107
-                $class = $class_prefix . ucfirst($section_types[$db->f('type_key')]);
107
+                $class = $class_prefix.ucfirst($section_types[$db->f('type_key')]);
108 108
                 return new $class($object, $db->f('id'));
109 109
 
110 110
                 break;
@@ -117,7 +117,7 @@  discard block
 block discarded – undo
117 117
     function load()
118 118
     {
119 119
         $db = new DB_Sql;
120
-        $db->query("SELECT id, name, identifier, type_key, locked FROM cms_template_section WHERE cms_template_section.intranet_id = ".$this->template->cmssite->kernel->intranet->get('id')." AND cms_template_section.id = " . $this->id);
120
+        $db->query("SELECT id, name, identifier, type_key, locked FROM cms_template_section WHERE cms_template_section.intranet_id = ".$this->template->cmssite->kernel->intranet->get('id')." AND cms_template_section.id = ".$this->id);
121 121
         if (!$db->nextRecord()) {
122 122
             return 0;
123 123
         }
@@ -145,7 +145,7 @@  discard block
 block discarded – undo
145 145
             $this->error->set('error in identifier - cannot be empty');
146 146
         }
147 147
 
148
-        if (!Validate::string($var['identifier'], array('format' => VALIDATE_ALPHA . VALIDATE_NUM . '-_'))) {
148
+        if (!Validate::string($var['identifier'], array('format' => VALIDATE_ALPHA.VALIDATE_NUM.'-_'))) {
149 149
             $this->error->set('error in identfier - allowed characters are a-z and 1-9');
150 150
         }
151 151
         if ($this->isIdentifierUnique($var['identifier'])) {
@@ -176,12 +176,12 @@  discard block
 block discarded – undo
176 176
             $sql_end = ", date_created = NOW()";
177 177
         } else {
178 178
             $sql_type = "UPDATE ";
179
-            $sql_end = " WHERE id = " . $this->id;
179
+            $sql_end = " WHERE id = ".$this->id;
180 180
         }
181
-        $sql = $sql_type . " cms_template_section SET
181
+        $sql = $sql_type." cms_template_section SET
182 182
                 name = '".safeToDb($var['name'])."',
183 183
                 identifier = '".safeToDb($var['identifier'])."',
184
-                site_id = " . $this->template->cmssite->get('id') . ",
184
+                site_id = " . $this->template->cmssite->get('id').",
185 185
                 intranet_id = ".$this->template->kernel->intranet->get('id').",
186 186
                 template_id = ".$this->template->get('id').",
187 187
                 type_key = ".$this->value['type_key'].",
@@ -211,14 +211,14 @@  discard block
 block discarded – undo
211 211
     function delete()
212 212
     {
213 213
         $db = new DB_Sql;
214
-        $db->query("UPDATE cms_template_section SET active = 0 WHERE id = " . $this->id);
214
+        $db->query("UPDATE cms_template_section SET active = 0 WHERE id = ".$this->id);
215 215
         return true;
216 216
     }
217 217
 
218 218
     function getList()
219 219
     {
220 220
         $db = new DB_Sql;
221
-        $db->query("SELECT id, name, identifier, type_key FROM cms_template_section WHERE template_id = " . $this->template->get('id') . " AND intranet_id = " . $this->kernel->intranet->get('id') . " AND active = 1 ORDER BY position ASC");
221
+        $db->query("SELECT id, name, identifier, type_key FROM cms_template_section WHERE template_id = ".$this->template->get('id')." AND intranet_id = ".$this->kernel->intranet->get('id')." AND active = 1 ORDER BY position ASC");
222 222
 
223 223
         $i = 0;
224 224
         $sections = array();
@@ -237,7 +237,7 @@  discard block
 block discarded – undo
237 237
     function isIdentifierUnique($identifier)
238 238
     {
239 239
         $db = new DB_Sql;
240
-        $db->query("SELECT count(*) AS antal FROM cms_template_section WHERE identifier = '".$identifier."' AND intranet_id = " . $this->kernel->intranet->get('id') . " AND template_id = " . $this->template->get('id') . " AND active = 1 AND id != " . $this->id);
240
+        $db->query("SELECT count(*) AS antal FROM cms_template_section WHERE identifier = '".$identifier."' AND intranet_id = ".$this->kernel->intranet->get('id')." AND template_id = ".$this->template->get('id')." AND active = 1 AND id != ".$this->id);
241 241
         if (!$db->nextRecord()) {
242 242
             return 0;
243 243
         }
Please login to merge, or discard this patch.
src/Intraface/modules/cms/templatesection/Mixed.php 1 patch
Doc Comments   +3 added lines patch added patch discarded remove patch
@@ -6,6 +6,9 @@
 block discarded – undo
6 6
  */
7 7
 class Intraface_modules_cms_templatesection_Mixed extends CMS_TemplateSection
8 8
 {
9
+    /**
10
+     * @param CMS_Template $cmspage
11
+     */
9 12
     function __construct($cmspage, $id = 0)
10 13
     {
11 14
         $this->value['type'] = 'mixed';
Please login to merge, or discard this patch.
src/Intraface/modules/debtor/Controller/Create.php 2 patches
Doc Comments   +3 added lines patch added patch discarded remove patch
@@ -87,6 +87,9 @@
 block discarded – undo
87 87
         return 'Create';
88 88
     }
89 89
 
90
+    /**
91
+     * @return string
92
+     */
90 93
     function getType()
91 94
     {
92 95
         return $this->context->context->getType();
Please login to merge, or discard this patch.
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -25,7 +25,7 @@  discard block
 block discarded – undo
25 25
         if ($this->query('contact_id') == '') {
26 26
             return new k_SeeOther($this->url('contact'));
27 27
         }
28
-        $smarty = $this->template->create(dirname(__FILE__) . '/templates/edit');
28
+        $smarty = $this->template->create(dirname(__FILE__).'/templates/edit');
29 29
         return $smarty->render($this);
30 30
     }
31 31
 
@@ -55,7 +55,7 @@  discard block
 block discarded – undo
55 55
         }
56 56
 
57 57
         if ($debtor->update($_POST)) {
58
-            return new k_SeeOther($this->url('../' . $debtor->get('id')));
58
+            return new k_SeeOther($this->url('../'.$debtor->get('id')));
59 59
         }
60 60
 
61 61
         return $this->render();
@@ -67,7 +67,7 @@  discard block
 block discarded – undo
67 67
             return $this->body();
68 68
         }
69 69
 
70
-        $due_time = time() + $this->getContact()->get('paymentcondition') * 24 * 60 * 60;
70
+        $due_time = time() + $this->getContact()->get('paymentcondition')*24*60*60;
71 71
         $due_date = date('d-m-Y', $due_time);
72 72
 
73 73
         return array(
Please login to merge, or discard this patch.
src/Intraface/modules/debtor/Controller/Depreciations.php 2 patches
Doc Comments   +3 added lines patch added patch discarded remove patch
@@ -23,6 +23,9 @@
 block discarded – undo
23 23
         return $this->context->getKernel();
24 24
     }
25 25
 
26
+    /**
27
+     * @return Invoice
28
+     */
26 29
     function getModel()
27 30
     {
28 31
         return $this->context->getModel();
Please login to merge, or discard this patch.
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -52,7 +52,7 @@  discard block
 block discarded – undo
52 52
         $depreciation = $this->getDepreciation();
53 53
         if ($id = $depreciation->update($_POST)) {
54 54
             if ($this->getKernel()->user->hasModuleAccess('accounting')) {
55
-                return new k_SeeOther($this->url($id . '/state'));
55
+                return new k_SeeOther($this->url($id.'/state'));
56 56
             } else {
57 57
                 return new k_SeeOther($this->url('../'));
58 58
             }
@@ -64,7 +64,7 @@  discard block
 block discarded – undo
64 64
     {
65 65
         $invoice_module = $this->getKernel()->useModule('invoice');
66 66
         $depreciation = $this->getDepreciation();
67
-        $smarty = $this->template->create(dirname(__FILE__) . '/templates/depreciation');
67
+        $smarty = $this->template->create(dirname(__FILE__).'/templates/depreciation');
68 68
         return $smarty->render($this);
69 69
     }
70 70
 }
Please login to merge, or discard this patch.