aboutsummaryrefslogtreecommitdiff
path: root/ratatoeskr/sys/models.php
diff options
context:
space:
mode:
authorKevin Chabowski <kevin@kch42.de>2012-06-08 21:41:25 +0200
committerKevin Chabowski <kevin@kch42.de>2012-06-08 21:41:25 +0200
commit709fd51d0681fe28753205d24d2fea3ccee76672 (patch)
treedf490486bea2dd39afa5ff019485fb56937e028e /ratatoeskr/sys/models.php
parent11c872b1d8cd4cd905e2184f698af71862602d0b (diff)
downloadratatoeskr-cms-709fd51d0681fe28753205d24d2fea3ccee76672.tar.gz
ratatoeskr-cms-709fd51d0681fe28753205d24d2fea3ccee76672.tar.bz2
ratatoeskr-cms-709fd51d0681fe28753205d24d2fea3ccee76672.zip
Made Article::test_urlname public and added docu.
Diffstat (limited to 'ratatoeskr/sys/models.php')
-rw-r--r--ratatoeskr/sys/models.php12
1 files changed, 11 insertions, 1 deletions
diff --git a/ratatoeskr/sys/models.php b/ratatoeskr/sys/models.php
index 5d6ee66..95a500f 100644
--- a/ratatoeskr/sys/models.php
+++ b/ratatoeskr/sys/models.php
@@ -2336,7 +2336,17 @@ class Article extends BySQLRowEnabled
*/
public function get_id() { return $this->id; }
- private static function test_urlname($urlname)
+ /*
+ * Function: test_urlname
+ * Test, if a urlname is a valid urlname.
+ *
+ * Parameters:
+ * $urlname - Urlname to test
+ *
+ * Returns:
+ * True, if the urlname is valid, False otherwise.
+ */
+ public static function test_urlname($urlname)
{
return (bool) preg_match('/^[a-zA-Z0-9-_]+$/', $urlname);
}