Packages:
System
System.Collections
System.Data
System.I18N
System.Util
System.Web.Services
System.Web.UI.ActiveControls
System.Web.UI.WebControls


Classes:
Services
   LPageService
   LStaticPageService

Class LPageService

TPageService
   |
   --LPageService

Direct Known Sub-classes:

Extended page service.

This service is able to use propel node tree objects from a database (l_virtual_nodes). You can request a node with a predefined NODE_PREFIX the node maps to a .page or and external link.


Method Summary
void
Returns if node-based service is available
protected  void
Checks availablity of node service
void
constructUrl ( mixed $pagePath, mixed $getParams, mixed $encodeAmpersand, mixed $encodeGetItems, mixed $log)
wrapper function
protected  string
Determines the requested page path.
protected  void
findNodeByAlias ( mixed $startNode, mixed $searchAlias)
Finds a node in the tree by alias
void
Returns the current node object
void
getNodeById ( mixed $id)
void
Returns all nodes in tree structure starting from root
void
Returns all nodes in list structure
void
Returns the current node object
void
getServicePage ( mixed $return_node_alias)
return current selected page for this service
void
init ( mixed $config)
Reads MasterConfig
protected  void
Queries all nodes in database and serves them for later use
void
reload ()

Constant Summary
string NODE_PREFIX
string PATH_PREFIX

Method Details

areNodesAvailable

public void areNodesAvailable ()

Returns if node-based service is available

Output
Exception

checkVirtualNodes

protected void checkVirtualNodes ()

Checks availablity of node service

Output
Exception

constructUrl

public void constructUrl (mixed $pagePath , mixed $getParams , mixed $encodeAmpersand , mixed $encodeGetItems , mixed $log )

wrapper function

Input
mixed$pagePath
mixed$getParams
mixed$encodeAmpersand
mixed$encodeGetItems
mixed$log
Output
Exception

determineRequestedPagePath

protected string determineRequestedPagePath ()

Determines the requested page path.

  1. nodeId (database needed)
  2. path (database needed)
  3. page

Output
string page path requested
Exception

findNodeByAlias

protected void findNodeByAlias (mixed $startNode , mixed $searchAlias )

Finds a node in the tree by alias

Input
mixed$startNode
mixed$searchAlias
Output
Exception

getCurrentNode

public void getCurrentNode ()

Returns the current node object

getNodeById

public void getNodeById (mixed $id )

Input
mixed$id
Output
Exception

getNodes

public void getNodes ()

Returns all nodes in tree structure starting from root

getNodesList

public void getNodesList ()

Returns all nodes in list structure

getPageName

public void getPageName ()

Returns the current node object

getServicePage

public void getServicePage (mixed $return_node_alias )

return current selected page for this service

Input
mixed$return_node_alias
Output
Exception

init

public void init (mixed $config )

Reads MasterConfig

Input
mixed$config
Output
Exception

prepareNodes

protected void prepareNodes ()

Queries all nodes in database and serves them for later use

Output
Exception

reload

public void reload ()

Output
Exception


Constant Details

NODE_PREFIX

Type:

string

Value:

'*'

PATH_PREFIX

Type:

string

Value:

'ยง'