Project

General

Profile

Actions

Feature proposal #2656

closed

Improve API of CBFramework

Added by beat almost 13 years ago. Updated almost 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 #1

Updated by beat almost 13 years ago

r1495 is removing all global uses of $Itemid and adding a few funcitons CBFramework class.

Actions #2

Updated by beat almost 13 years ago

  • Assignee set to beat
  • Target version set to CB 1.7
  • Estimated time set to 1:00 h
Actions #3

Updated by beat almost 13 years ago

  • Status changed from New to Closed

Implemented in r1495.

Actions #4

Updated by beat almost 13 years ago

  • % Done changed from 0 to 100
Actions

Also available in: Atom PDF