public function init($configuration = null)
    {
        if ($this->isInitialized) {
            return;
        }

        // Calls the base class's constructor manually as this isn't done automatically.
        parent::__construct();

        $this->initializeConfiguration($configuration);
        $this->ensureContentObject();

        if ($this->extKey !== '') {
            $this->pi_setPiVarDefaults();
            $this->pi_loadLL();
            $this->initializeConfigurationCheck();
        }

        $this->isInitialized = true;
    }
public function init($configuration = null)
    {
        if ($this->isInitialized) {
            return;
        }

        // Calls the base class's constructor manually as this isn't done automatically.
        parent::__construct();

        $this->initializeConfiguration($configuration);
        $this->ensureContentObject();

        if ($this->extKey !== '') {
            $this->pi_setPiVarDefaults();
            $this->pi_loadLL();
            $this->initializeConfigurationCheck();
        }

        $this->isInitialized = true;
    }
public function init ( $ configuration = null ) { if ( $ this -> isInitialized ) { return ; } // Calls the base class's constructor manually as this isn't done automatically. parent :: __construct ( ) ; $ this -> initializeConfiguration ( $ configuration ) ; $ this -> ensureContentObject ( ) ; if ( $ this -> extKey !== '' ) { $ this -> pi_setPiVarDefaults ( ) ; $ this -> pi_loadLL ( ) ; $ this -> initializeConfigurationCheck ( ) ; } $ this -> isInitialized = true ; }
Initializes the FE plugin stuff and reads the configuration.

It is harmless if this function gets called multiple times as it
recognizes this and ignores all calls but the first one.

This is merely a convenience function.

If the parameter is omitted, the configuration for plugin.tx_[extkey] is
used instead, e.g. plugin.tx_seminars.

@param array|null $configuration TypoScript configuration for the plugin, set to null to load the configuration
from a BE page

@return void
Initializes the FE plugin stuff and reads the configuration .