blueshoes php application framework and cms            applications_cms
[ class tree: applications_cms ] [ index: applications_cms ] [ all elements ]

Class: Bs_Cms_BlockDsn

Source Location: /applications/cms/Bs_Cms_BlockDsn.class.php

Class Overview

Bs_Cms_Block
   |
   --Bs_Cms_BlockDsn



Methods


Inherited Variables

Inherited Methods


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