Actions
Feature proposal #2656
closedImprove API of CBFramework
Description
Add to framework functions to allow to remove globals use of:
- $_CB_framework
- $_CB_database
- $ueConfig
- $Itemid
class CBframework {
/**
* Returns the global $_CB_framework object
* @since 1.7
*
* @return CBframework
*/
public static function & framework( );
/**
* Returns the global $_CB_database object
* @since 1.7
*
* @return CBdatabase
*/
public static function & database( );
/**
* Returns a config from gloabal CB Configuration
*
* @param string $name
* @return string
*/
public function cbConfig( $name );
/**
* Returns the called page's Itemid (or int 0)
* @since 1.7
*
* @return int Always returns int
*/
public function itemid( );
}
Actions