Namespaces | Functions

cms/parseurl.lib.php File Reference

Go to the source code of this file.

Namespaces

namespace  pragyan
 

Widget Framework for Pragyan CMS (c) 2010 Pragyan Team http://www.gnu.org/licenses/ GNU Public License For more details, see README Add support for File Upload/Download via the widget's configurations Reload Widgets ,Get Widget Instances. see bottom.


Functions

 parseUrlReal ($url, &$pageids)
 parseUrlDereferenced ($pageid, &$pageids)

Function Documentation

parseUrlDereferenced ( pageid,
&$  pageids 
)

parseUrlDereferenced: Takes a url as string, and retrieves the path to the page, dereferencing any links.

Parameters:
$pageid Page id of the requested page.
$pageids An array to hold the list of page ids.

Definition at line 102 of file parseurl.lib.php.

parseUrlReal ( url,
&$  pageids 
)

parseUrlReal: Takes a url as string, and retrieves the pageid of the requested page.

Parameters:
$url String denoting the url of the page.
$pageids An array to hold the list of page ids.
Returns:
Integer denoting the page id of the page.

Build query string: SELECT IF(node[J].module = "link", node[J].page_modulecomponentid, node[J].page_id) as pageid[J] FROM pagestable AS node[J] WHERE node[J].page_parentid = node[J-1].page_id; J from 0 to count(urlPieces) - 1

Definition at line 25 of file parseurl.lib.php.