Class Context

Description

the Context Object is the core object for the Pomo website management system.

It provides central functions and data access to all parts of the system.

Located in /core/Context.class.inc (line 17)


	
			
Variable Summary
mixed $currentPage
mixed $currentUser
mixed $db
mixed $isValid
mixed $ViewMode
Method Summary
Context Context (string $passedparams)
void getAttachmentByAttachmentID (mixed $_attachID)
void getPageByPageID (paramname $_pageID)
Page getPageByPath (string $_path)
Variables
mixed $currentPage (line 19)
  • access: public
mixed $currentPipeline (line 22)
  • access: public
mixed $currentUser (line 23)
  • access: public
mixed $db (line 24)
  • access: public
mixed $isValid (line 20)
  • access: public
mixed $ViewMode (line 21)
  • access: public
Methods
Constructor Context (line 40)

create a new Context object

  • access: public
  • todo: add the option of adding the hostname to the passedparams list. This will allow multiple sites to be accessed using this one installation (similar to MSCMS' "Map Channel Names to Host Header Names Feature" http://support.microsoft.com/?id=326783)
Context Context (string $passedparams)
  • string $passedparams: the full path By going to the page "http://localhost/root/page.htm" passedparams is 'path=root/page.htm' "http://localhost/" passedparams is '' "http://localhost/page.htm" passedparams is 'path=page.htm' "http://localhost/1/2/3/4.htm" passedparams is 'path=1/2/3/4.htm'
getAttachmentByAttachmentID (line 280)
  • access: public
void getAttachmentByAttachmentID (mixed $_attachID)
getPageByPageID (line 139)

gets a page object by a given page ID (AKA a page GUID)

  • access: public
void getPageByPageID (paramname $_pageID)
  • paramname $_pageID: description
getPageByPath (line 175)

gets a Page based on a given path

  • return: returns the page associated with a given path, or NULL if no page is found
  • access: public
Page getPageByPath (string $_path)
  • string $_path: the slash ('/') delimited path of the page to return. The path can have a query string and a filename extension - both of which will be ignored.

Documentation generated on Tue, 4 Oct 2005 21:59:04 -0700 by phpDocumentor 1.3.0RC3