public function init( $config = NULL )
    {
        parent::init( $config );

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

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

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

        $this->doAction( self::ON_MODEL_INIT_ACTION );
    }
public function init ( $ config = NULL ) { parent :: init ( $ config ) ; if ( isset ( $ config [ 'id' ] ) ) { $ this -> id = ( int ) $ config [ 'id' ] ; } $ this -> doAction ( self :: ON_MODEL_INIT_ACTION ) ; }
Initialises the model.

@param array $config configuration array

@action ON_MODEL_INIT_ACTION
Initialises the model .