Allow parenthesis before hasPerm in smarty templates
[platal.git] / classes / pltableeditor.php
index 89c0b14..d847aab 100644 (file)
@@ -234,6 +234,11 @@ class PLTableEditor
         }
     }
 
+    // add a link on a field, the field value will be added at the end of the url
+    public function addLink($field, $url) {
+        $this->vars[$field]['url'] = $url;
+    }
+
     // force the value of a field in select and add
     public function force_field_value($field, $value)
     {
@@ -469,5 +474,5 @@ class PLTableEditor
     }
 }
 
-// vim:set et sw=4 sts=4 sws=4 foldmethod=marker enc=utf-8:
+// vim:set et sw=4 sts=4 sws=4 foldmethod=marker fenc=utf-8:
 ?>