KWeb  6.4
KErrorStack Class Reference

Public Member Functions

 __construct ($id, $registerInstance=false)
 push ($type, $msg)
 pop ()
 count ($type=false)
 reset ()
 getAll ()
 Returns errors in the stack as array.
 setAll ($errors)
 mergeStack (KErrorStack $stack, $reset=true)
 Merges another stack into this one.

Static Public Member Functions

static instance ($id=self::MAIN, $create=true)
 Returns named instance of KErrorStack.
static registerStack ($id, $stack)
 Registers specified stack under different id.
static getStackNames ()
 Returns active error stacks.
static getStacks ()
 Returns active error stacks.
static pushStack ($stackId, $type, $msg)
static popStack ($stackId)
static countStack ($stackId)

Data Fields

const MAIN = ''
const NOTIFY = 'notify'
 $id = false

Static Public Attributes

static $inst
static $instances = array()

Protected Attributes

 $errors = array()

Constructor & Destructor Documentation

KErrorStack::__construct ( id,
registerInstance = false 
)

Member Function Documentation

KErrorStack::count ( type = false)
static KErrorStack::countStack ( stackId) [static]
KErrorStack::getAll ( )

Returns errors in the stack as array.

static KErrorStack::getStackNames ( ) [static]

Returns active error stacks.

static KErrorStack::getStacks ( ) [static]

Returns active error stacks.

static KErrorStack::instance ( id = self::MAIN,
create = true 
) [static]

Returns named instance of KErrorStack.

Parameters:
$id- Pass false to use self::MAIN id. Pass null to just create a stack and not store it anywhere... If you pass a KErrorStack object, it will bre returned back.
Returns:
KErrorStack
KErrorStack::mergeStack ( KErrorStack stack,
reset = true 
)

Merges another stack into this one.

Returns:
Merged count
KErrorStack::pop ( )
static KErrorStack::popStack ( stackId) [static]
KErrorStack::push ( type,
msg 
)
static KErrorStack::pushStack ( stackId,
type,
msg 
) [static]
static KErrorStack::registerStack ( id,
stack 
) [static]

Registers specified stack under different id.

KErrorStack::reset ( )
KErrorStack::setAll ( errors)

Field Documentation

KErrorStack::$errors = array() [protected]
KErrorStack::$id = false
KErrorStack::$inst [static]
KErrorStack::$instances = array() [static]
const KErrorStack::MAIN = ''
const KErrorStack::NOTIFY = 'notify'

The documentation for this class was generated from the following file: