summaryrefslogtreecommitdiff
path: root/inc/pageutils.php
diff options
context:
space:
mode:
authorChristopher Smith <chris@jalakai.co.uk>2014-03-02 19:22:07 +0000
committerChristopher Smith <chris@jalakai.co.uk>2014-03-02 19:22:07 +0000
commit85312e0a1accea20df49579b509eb88ba5643384 (patch)
tree08c6c8d4b56758ac298d366e5b2c3a19f7eb598e /inc/pageutils.php
parentff388af35a3aed43d96bc31ae6b553f8a37050e0 (diff)
parent74160ca1dea24b237ff3e956d19a420a1593b957 (diff)
downloadrpg-85312e0a1accea20df49579b509eb88ba5643384.tar.gz
rpg-85312e0a1accea20df49579b509eb88ba5643384.tar.bz2
Merge pull request #557 from splitbrain/cachetimeattr
Add _time attribute to cache object and minor PHPDocs improvements
Diffstat (limited to 'inc/pageutils.php')
-rw-r--r--inc/pageutils.php8
1 files changed, 8 insertions, 0 deletions
diff --git a/inc/pageutils.php b/inc/pageutils.php
index c8d3cf4bb..9c2794387 100644
--- a/inc/pageutils.php
+++ b/inc/pageutils.php
@@ -94,6 +94,7 @@ function getID($param='id',$clean=true){
* @author Andreas Gohr <andi@splitbrain.org>
* @param string $raw_id The pageid to clean
* @param boolean $ascii Force ASCII
+ * @return string cleaned id
*/
function cleanID($raw_id,$ascii=false){
global $conf;
@@ -244,6 +245,7 @@ function page_exists($id,$rev='',$clean=true) {
* @param $rev string page revision, empty string for current
* @param $clean bool flag indicating that $raw_id should be cleaned. Only set to false
* when $id is guaranteed to have been cleaned already.
+ * @return string full path
*
* @author Andreas Gohr <andi@splitbrain.org>
*/
@@ -361,6 +363,7 @@ function mediaFN($id, $rev=''){
*
* @param string $id The id of the local file
* @param string $ext The file extension (usually txt)
+ * @return string full filepath to localized file
* @author Andreas Gohr <andi@splitbrain.org>
*/
function localeFN($id,$ext='txt'){
@@ -543,6 +546,11 @@ function isHiddenPage($id){
return $data['hidden'];
}
+/**
+ * callback checks if page is hidden
+ *
+ * @param array $data event data see isHiddenPage()
+ */
function _isHiddenPage(&$data) {
global $conf;
global $ACT;