Client

# Class: ViewDbContainer Source Location: /client/Views.php
### Class Overview
    ViewContainer
       |
       --ViewDbContainer
Views recording/loading to/from database. | ### Variables $db $dsn $metasList $showDevMsg | ### Methods __construct closeResource filterMetas getBool lockResource makeMetasSql openResource processResource readCatalog setSelectData setWeightMeta unlockResource updateMetasList writeCatalog
### Inherited Constants #### Class: ViewContainer ViewContainer::BASE_WEIGHT | ### Inherited Variables #### Class: ViewContainer ViewContainer::$action ViewContainer::$catalog ViewContainer::$data ViewContainer::$isActionSuccess ViewContainer::$locationId ViewContainer::$log ViewContainer::$message ViewContainer::$metas ViewContainer::$viewId ViewContainer::$weight ViewContainer::$writeActions | ### 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 1463] Views recording/loading to/from database. [ Top ] ### Class Variables #### $db = [line 1473] #### Tags:
access: | private
Type: | DB
[ Top ] #### $dsn = [line 1468] #### Tags:
access: | private
Type: | string
[ Top ] #### $metasList = [line 1478] #### Tags:
access: | private
Type: | array
[ Top ] #### $showDevMsg = [line 1483] #### Tags:
access: | private
Type: | boolean
[ Top ] ### Class Methods ### constructor __construct [line 1491]
`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 1523]
`void closeResource( )`
#### Tags:
access: | protected
see: | ViewContainer::closeResource()
Overrides ViewContainer::closeResource() (Closes connection to storage resource.) [ Top ] ### method filterMetas [line 1630]
`void filterMetas( )`
Performs some manipulations on metadata. #### Tags:
access: | private
[ Top ] ### method getBool [line 1741]
`boolean getBool( value $info)`
Tells if given value is true or false. #### Tags:
access: | private
#### Parameters:
value | $info | to test
[ Top ] ### method lockResource [line 1679]
`void lockResource( )`
#### Tags:
access: | protected
see: | ViewContainer::lockResource()
Overrides ViewContainer::lockResource() (Locks access to storage resource.) [ Top ] ### method makeMetasSql [line 1668]
`string makeMetasSql( )`
Builds the metadata querystring #### Tags:
access: | private
[ Top ] ### method openResource [line 1505]
`void openResource( )`
#### Tags:
access: | protected
see: | ViewContainer::openResource()
Overrides ViewContainer::openResource() (Opens a connection to storage resource.) [ Top ] ### method processResource [line 1532]
`void processResource( )`
#### Tags:
access: | protected
see: | ViewContainer::processResource()
Overrides ViewContainer::processResource() (Processes (read/write) content of storage resource.) [ Top ] ### method readCatalog [line 1708]
`void readCatalog( )`
#### Tags:
access: | protected
see: | ViewContainer::readCatalog()
Overrides ViewContainer::readCatalog() (Reads views catalog content.) [ Top ] ### method setSelectData [line 1659]
`void setSelectData( )`
#### Tags:
access: | protected
see: | ViewContainer::setSelectData()
Overrides ViewContainer::setSelectData() (Sets various data while loading a view.) [ Top ] ### method setWeightMeta [line 1651]
`void setWeightMeta( )`
#### Tags:
access: | protected
see: | ViewContainer::setWeightMeta()
Overrides ViewContainer::setWeightMeta() (Updates metadata with weight info and removes viewLocationId info.) [ Top ] ### method unlockResource [line 1701]
`void unlockResource( )`
#### Tags:
access: | protected
see: | ViewContainer::unlockResource()
Overrides ViewContainer::unlockResource() (Unlocks access to storage resource.) [ Top ] ### method updateMetasList [line 1641]
`void updateMetasList( )`
Removes/adds some metas titles. #### Tags:
access: | private
[ Top ] ### method writeCatalog [line 1748]
`void writeCatalog( )`
#### Tags:
access: | protected
see: | ViewContainer::writeCatalog()
Overrides ViewContainer::writeCatalog() (Writes views catalog content.) [ Top ] Documentation generated on Fri, 21 Sep 2007 13:31:11 +0200 by phpDocumentor 1.3.0RC3