Client
[ class tree: Client ] [ index: Client ] [ all elements ]

Class: ViewManager

Source Location: /client/Views.php

Class Overview


Global views management.


Variables

Constants

Methods



Class Details

[line 28]
Global views management.



[ Top ]


Class Variables

$cartoclient =

[line 38]



Tags:

access:  private

Type:   Cartoclient


[ Top ]

$data =

[line 58]



Tags:

access:  private

Type:   stdClass


[ Top ]

$isActionSuccess =

[line 83]



Tags:

access:  private

Type:   boolean


[ Top ]

$log =

[line 33]



Tags:

access:  private

Type:   Logger


[ Top ]

$message =

[line 63]



Tags:

access:  private

Type:   string


[ Top ]

$metas =

[line 73]



Tags:

access:  private

Type:   array


[ Top ]

$metasList =

[line 68]



Tags:

access:  private

Type:   array


[ Top ]

$sessionCacheLocation =

[line 88]



Tags:

access:  private

Type:   string


[ Top ]

$viewablePlugins =

[line 78]



Tags:

access:  private

Type:   array


[ Top ]

$viewId =

[line 53]



Tags:

access:  private

Type:   int


[ Top ]

$wc =

[line 43]



Tags:

access:  private

Type:   ViewContainer


[ Top ]

$wf =

[line 48]



Tags:

access:  private

Type:   ViewFilter


[ Top ]



Class Methods


constructor __construct [line 96]

ViewManager __construct( Cartoclient $cartoclient)

Constructor



Tags:

access:  public


Parameters:

Cartoclient   $cartoclient  

[ Top ]

method checkViewId [line 158]

int checkViewId( mixed $viewId, [boolean $mute = false])

Checks view ID validity (non zero positive integer).



Tags:

return:  view ID if valid, else 0
access:  public


Parameters:

mixed   $viewId   viewId
boolean   $mute   if true, no message is issued when ID is invalid

[ Top ]

method getActionSuccess [line 488]

boolean getActionSuccess( )



Tags:

access:  public


[ Top ]

method getCatalog [line 470]

void getCatalog( )

Returns view catalog.



Tags:

access:  public
see:  ViewContainer::getCatalog()


[ Top ]

method getDefaultSessionData [line 211]

ClientSession getDefaultSessionData( )

Returns default session.



Tags:

access:  public


[ Top ]

method getId [line 173]

int getId( string $source)

Gets id from given request parameter and checks its validity.



Tags:

return:  id
access:  private


Parameters:

string   $source   request parameter name

[ Top ]

method getMessage [line 435]

string getMessage( )

Returns result message if any.



Tags:

access:  public


[ Top ]

method getMetas [line 478]

array getMetas( )

Returns metadata.



Tags:

return:  metadata
access:  public


[ Top ]

method getMetasList [line 454]

array getMetasList( )

Returns ViewManager::metasList, list of metadata fields.



Tags:

return:  list of metadata fields
access:  public


[ Top ]

method getPluginSession [line 142]

stdClass getPluginSession( ClientSession $sessionData)



Tags:

return:  collection of viewable plugins states
access:  private


Parameters:

ClientSession   $sessionData  

[ Top ]

method getRequestValue [line 402]

string getRequestValue( string $name)

Returns value of given request parameter if exists.



Tags:

return:  parameter value
access:  private


Parameters:

string   $name   parameter name

[ Top ]

method getSessionCacheLocation [line 198]

string getSessionCacheLocation( )

Returns path of cached session file.



Tags:

access:  public


[ Top ]

method getViewablePlugins [line 127]

array getViewablePlugins( )

Returns the list of plugins that have their data recorded in views (set in client.ini "viewablePlugins" parameter).



Tags:

access:  private


[ Top ]

method getViewContainer [line 427]

ViewContainer getViewContainer( )

Returns view container instance (file or DB using).



Tags:

access:  public


[ Top ]

method getViewId [line 443]

int getViewId( )

Returns current view ID.



Tags:

access:  public


[ Top ]

method handleView [line 248]

bool handleView( ClientSession &$sessionData)

Main view handler: detects what action to perform.



Tags:

return:  true if some view has been processed
access:  public


Parameters:

ClientSession   &$sessionData  

[ Top ]

method hasRole [line 181]

boolean hasRole( [mixed $mute = false])

Checks that user is allowed to perform special view actions.



Tags:

access:  public


[ Top ]

method makeSessionCache [line 228]

bool makeSessionCache( ClientSession $clientSession)

Writes cached session file.



Tags:

return:  true if success
access:  public


Parameters:

ClientSession   $clientSession  

[ Top ]

method setMetasFromRequest [line 413]

void setMetasFromRequest( )

Sets metadata from request.



Tags:

access:  private


[ Top ]


Class Constants

BASE_METAS =  'viewTitle, viewShow, viewLocationId'

[line 90]


[ Top ]



Documentation generated on Mon, 13 Feb 2006 11:44:19 +0100 by phpDocumentor 1.3.0RC3