shared-urls.php File Reference

Go to the source code of this file.

Functions

 siteURL ($removepagename=false)
 thisPageURL ($header=false, $absoluteURL=true, $extraReqVars="")
 globalID_user ($splitID)
 handleGlobalID ()
 getGlobalIDThumbnail ($globalID)
 globalIDtoURL ($globalID, $extraReqVars=null)

Variables

 $modules_globalID [] = "globalID_user"


Function Documentation

getGlobalIDThumbnail ( globalID  ) 

Will return the an array with information for the thumbnail for a specified global ID

Parameters:
globalID The global ID to fetch thumbnail information for
Returns:
Array containing array( "uri" => the fully qualified URI for the thumbnail, "width" => the width in pixels, "height" => the height in pixels )

Definition at line 210 of file shared-urls.php.

References $setup_folder, and siteURL().

Referenced by confirmDeleteDialog::render(), and renderUpdates().

Here is the call graph for this function:

globalID_user ( splitID  ) 

Returns the url that corresponds to the globalID

Parameters:
splitID The global ID to check
Returns:
string A string containing the URL corresponding to the globalID, if existing

Definition at line 105 of file shared-urls.php.

References $viewUser.

globalIDtoURL ( globalID,
extraReqVars = null 
)

Will return the appropriate URL for a page from a global ID

Parameters:
globalID The global ID to create a URL for
extraReqVars An array containing pairs of name=values to add to the URL
Returns:
string The URL

Definition at line 272 of file shared-urls.php.

References $systemOptions, and siteURL().

Referenced by discussForum::discussForum(), discussThread::discussThread(), dox_renderListOptions(), drawProfileHint(), Page::fetchMenuMenu(), generate_pagehelplink(), getBreadcrumbs(), globalIDtoBreadcrumb(), Convention::handleRegistration(), Convention::load(), modulesetup_convention(), modulesetup_discuss(), modulesetup_documents(), modulesetup_events(), modulesetup_gallery2(), Member::newConfirmationCode(), parse_convention(), parse_gallery2(), parse_profilelinks(), parse_userlist_control(), parse_userlists(), parse_wikilinks(), profilemodule_blogger(), profilemodule_discuss(), profilemodule_events(), profilemodule_gallery2(), SimpleListEditor::render(), render(), discuss_importer_phpbb2::render(), discussThread::render(), discussForum::render(), Hotel::render(), Event::render(), Convention::render(), blogger_entryEditor::render(), SimpleListEditor::renderAdd(), discussForum::renderBlock(), Member::renderBlock(), blogger_entry::renderControls(), SimpleListEditor::renderDelete(), SimpleListEditor::renderEdit(), renderEditor(), Member::renderEditor(), Hotel::renderEditor(), Event::renderEditor(), Convention::renderEditor(), blogger_user::renderEditor(), blogger_entry::renderEditor(), Event::renderLink(), discussForum::renderNewThread(), gallery2_viewType_oldstyle::renderSingleImage(), gallery2_viewType_table::renderSingleImage(), renderUpdates(), discussThread::save(), and setupPage::setupPage().

Here is the call graph for this function:

handleGlobalID (  ) 

Takes a global ID and passes it to each module's globalID handler and sets the a header to redirect to the corresponding URL, or returns a negative page ID, so that the main function knows to show an unknown page

Create functions named globalID_modulename which take a split globalID array and add it into the global $modules_globalID[] array Sample function:

function globalID_foo( $splitID )
{
        $pageID = null;
        
        // Is the globalID directly aimed at this module?
        if( $splitID[0] == "foo" )
        {
                $pageID = $foo_pageID;
        }
        // Or is it aimed at the module's profile module?
        else if( $splitID[0] == "user" && $splitID[2] == "foo" )
        {
                $_REQUEST["user_id"] = $splitID[1];
                $_REQUEST["module"] = "profilemodule_foo";
                $pageID = "13";
        }
        
        return $pageID;
}

Returns:
integer the base pageID if found

Definition at line 179 of file shared-urls.php.

References $modules_globalID, and $page_id.

siteURL ( removepagename = false  ) 

thisPageURL ( header = false,
absoluteURL = true,
extraReqVars = "" 
)


Variable Documentation

$modules_globalID[] = "globalID_user"

Definition at line 145 of file shared-urls.php.


Generated on Sun Oct 26 20:33:14 2008 for The Travelsized Content Management System by  doxygen 1.5.5