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( );
}
Updated by beat over 13 years ago
r1495 is removing all global uses of $Itemid and adding a few funcitons CBFramework class.
Updated by beat over 13 years ago
- Assignee set to beat
- Target version set to CB 1.7
- Estimated time set to 1:00 h
Actions