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

Class: ViewDbContainer

Source Location: /client/Views.php

Class Overview

ViewContainer
   |
   --ViewDbContainer

Views recording/loading to/from database.


Variables

Methods


Inherited Constants

Inherited Variables

Inherited Methods

Class: ViewContainer

ViewContainer::__construct()
Constructor
ViewContainer::closeResource()
Closes connection to storage resource.
ViewContainer::computeLocationId()
Returns ID of view located right after current view.
ViewContainer::computeWeight()
Computes weight of current view to determine its location in the views list.
ViewContainer::delete()
Wrapper for 'delete' action.
ViewContainer::doAction()
Performs view processing.
ViewContainer::getActionSuccess()
ViewContainer::getCatalog()
Returns views catalog.
ViewContainer::getLocationId()
ViewContainer::getMessage()
ViewContainer::getMetas()
Returns metadata.
ViewContainer::getViewId()
ViewContainer::getWeights()
Returns natural-orderedviews weights list.
ViewContainer::insert()
Wrapper for 'insert' action.
ViewContainer::lockResource()
Locks access to storage resource.
ViewContainer::openResource()
Opens a connection to storage resource.
ViewContainer::processResource()
Processes (read/write) content of storage resource.
ViewContainer::readCatalog()
Reads views catalog content.
ViewContainer::select()
Wrapper for 'select' action.
ViewContainer::setSelectData()
Sets various data while loading a view.
ViewContainer::setViewId()
Computes next available view ID.
ViewContainer::setWeightMeta()
Updates metadata with weight info and removes viewLocationId info.
ViewContainer::unlockResource()
Unlocks access to storage resource.
ViewContainer::update()
Wrapper for 'update' action.
ViewContainer::updateCatalog()
Adds new/updated view in views catalog.
ViewContainer::writeCatalog()
Writes views catalog content.

Class Details

[line 1427]
Views recording/loading to/from database.



[ Top ]


Class Variables

$db =

[line 1437]



Tags:

access:  private

Type:   DB


[ Top ]

$dsn =

[line 1432]



Tags:

access:  private

Type:   string


[ Top ]

$metasList =

[line 1442]



Tags:

access:  private

Type:   array


[ Top ]

$showDevMsg =

[line 1447]



Tags:

access:  private

Type:   boolean


[ Top ]



Class Methods


constructor __construct [line 1455]

ViewDbContainer __construct( string $dsn, array $metasList, boolean $showDevMsg)

Constructor



Tags:

access:  public


Overrides ViewContainer::__construct() (Constructor)

Parameters:

string   $dsn   database DSN
array   $metasList   list of metadata fields names
boolean   $showDevMsg   if true, DB error messages are more verbose

[ Top ]

method closeResource [line 1487]

void closeResource( )



Tags:

access:  protected
see:  ViewContainer::closeResource()


Overrides ViewContainer::closeResource() (Closes connection to storage resource.)

[ Top ]

method filterMetas [line 1594]

void filterMetas( )

Performs some manipulations on metadata.



Tags:

access:  private


[ Top ]

method getBool [line 1707]

boolean getBool( value $info)

Tells if given value is true or false.



Tags:

access:  private


Parameters:

value   $info   to test

[ Top ]

method lockResource [line 1645]

void lockResource( )



Tags:

access:  protected
see:  ViewContainer::lockResource()


Overrides ViewContainer::lockResource() (Locks access to storage resource.)

[ Top ]

method makeMetasSql [line 1634]

string makeMetasSql( )

Builds the metadata querystring



Tags:

access:  private


[ Top ]

method openResource [line 1469]

void openResource( )



Tags:

access:  protected
see:  ViewContainer::openResource()


Overrides ViewContainer::openResource() (Opens a connection to storage resource.)

[ Top ]

method processResource [line 1496]

void processResource( )



Tags:

access:  protected
see:  ViewContainer::processResource()


Overrides ViewContainer::processResource() (Processes (read/write) content of storage resource.)

[ Top ]

method readCatalog [line 1674]

void readCatalog( )



Tags:

access:  protected
see:  ViewContainer::readCatalog()


Overrides ViewContainer::readCatalog() (Reads views catalog content.)

[ Top ]

method setSelectData [line 1625]

void setSelectData( )



Tags:

access:  protected
see:  ViewContainer::setSelectData()


Overrides ViewContainer::setSelectData() (Sets various data while loading a view.)

[ Top ]

method setWeightMeta [line 1617]

void setWeightMeta( )



Tags:

access:  protected
see:  ViewContainer::setWeightMeta()


Overrides ViewContainer::setWeightMeta() (Updates metadata with weight info and removes viewLocationId info.)

[ Top ]

method unlockResource [line 1667]

void unlockResource( )



Tags:

access:  protected
see:  ViewContainer::unlockResource()


Overrides ViewContainer::unlockResource() (Unlocks access to storage resource.)

[ Top ]

method updateMetasList [line 1607]

void updateMetasList( )

Removes/adds some metas titles.



Tags:

access:  private


[ Top ]

method writeCatalog [line 1714]

void writeCatalog( )



Tags:

access:  protected
see:  ViewContainer::writeCatalog()


Overrides ViewContainer::writeCatalog() (Writes views catalog content.)

[ Top ]


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