public function init( $config = NULL )
    {
        $this->config = $config;

        if ( isset( $config[ 'debug' ] ) )
        {
            $this->debug = $config[ 'debug' ];
        }

        $this->log = $this->filter( self::ON_SET_LOG_FILTER, NULL );

        $this->doAction( self::ON_COMPONENT_INIT_ACTION );
    }
public function init( $config = NULL )
    {
        $this->config = $config;

        if ( isset( $config[ 'debug' ] ) )
        {
            $this->debug = $config[ 'debug' ];
        }

        $this->log = $this->filter( self::ON_SET_LOG_FILTER, NULL );

        $this->doAction( self::ON_COMPONENT_INIT_ACTION );
    }
public function init ( $ config = NULL ) { $ this -> config = $ config ; if ( isset ( $ config [ 'debug' ] ) ) { $ this -> debug = $ config [ 'debug' ] ; } $ this -> log = $ this -> filter ( self :: ON_SET_LOG_FILTER , NULL ) ; $ this -> doAction ( self :: ON_COMPONENT_INIT_ACTION ) ; }
Initialises the component.

NOTE: All components SHOULD call <code>init()</code>, even without
passing a value.

@param array $config configuration array

@filter ON_SET_LOG_FILTER(1)

@action ON_COMPONENT_INIT_ACTION
Initialises the component .