| applications_cms

# Class: Bs_Cms_BlockDsn Source Location: /applications/cms/Bs_Cms_BlockDsn.class.php
### Class Overview
    Bs_Cms_Block
       |
       --Bs_Cms_BlockDsn
| ### Methods Bs_Cms_BlockDsn getDbObj load render
### Inherited Variables #### Class: Bs_Cms_Block Bs_Cms_Block::$blockFullPath Bs_Cms_Block::$blockJunks Bs_Cms_Block::$blockName Bs_Cms_Block::$Bs_HeadCollector Bs_Cms_Block::$data Bs_Cms_Block::$user Bs_Cms_Block::$xmlProps Bs_Cms_Block::$_failed Bs_Cms_Block::$_failedReason Bs_Cms_Block::$_xPath | ### Inherited Methods #### Class: Bs_Cms_Block Bs_Cms_Block::Bs_Cms_Block() constructor. Bs_Cms_Block::bs_fia_getHints() CALLBACK Funtion of Bs_FormItAble Bs_Cms_Block::bs_fia_loadHints() Bs_Cms_Block::edit() Bs_Cms_Block::initByFullPath() inits the object by the given full path to the block file. Bs_Cms_Block::isEditable() Bs_Cms_Block::load() Bs_Cms_Block::loadFromIni() Bs_Cms_Block::loadFromXml() Bs_Cms_Block::render() Bs_Cms_Block::store() Bs_Cms_Block::_generateXmlHelper() Bs_Cms_Block::_loadFromIni() overwrite this method. Bs_Cms_Block::_loadFromXml() Bs_Cms_Block::_loadFromXmlHelper()
### Class Details [line 8] [ Top ] ### Class Methods ### constructor Bs_Cms_BlockDsn [line 14]
`Bs_Cms_BlockDsn Bs_Cms_BlockDsn( [mixed $xmlProps = NULL], [mixed $blockName = NULL], [mixed $blockJunks = NULL], [mixed $blockFullPath = NULL])`
constructor. [ Top ] ### method getDbObj [line 46]
`& &getDbObj( )`
returns a reference(!) to an instance of the db object with the params defined in that block. example: $dsnBlock =& new Bs_Cms_BlockDsn(null, null, null, 'somepath'); $db = &$dsnBlock->getDbObj(); //ampersand! if (isEx($db)) die('db connection failed!'); //well do it better than that. #### Tags:
return: | instance of Bs_Db
throws: | bs_exception or string (error msg if it could not select db) on failure.
access: | public
[ Top ] ### method load [line 29]
`void load( )`
Overrides Bs_Cms_Block::load() (parent method not documented) [ Top ] ### method render [line 24]
`string render( )`
makes no sense to render this block. so it returns an empty string. #### Tags:
return: | (empty string)
access: | public
Overrides Bs_Cms_Block::render() (parent method not documented) [ Top ] Documentation generated on Mon, 29 Dec 2003 21:08:11 +0100 by phpDocumentor 1.2.3