Project

General

Profile

Actions

Feature proposal #2656

closed

Improve API of CBFramework

Added by beat over 13 years ago. Updated over 13 years ago.

Status:
Closed
Priority:
Normal
Assignee:
Target version:
Start date:
16 July 2011
Due date:
% Done:

100%

Estimated time:
1:00 h

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( );
}

Related issues 1 (0 open1 closed)

Blocks CB - Bug #2482: J1.6: userlist paging wrong itemidClosedbeat11 April 2011

Actions
Actions

Also available in: Atom PDF