protected function validateInitializer()
    {
        if ($this->renderer === null) {
            $settingsInstance = $this->getSettingsInstance();

            if ($this->type === static::TYPE_EXCEL) {
                $initializerClass = $settingsInstance->getDefaultExcelInitializerClass();
            } elseif ($this->type === static::TYPE_PDF) {
                $initializerClass = $settingsInstance->getDefaultPDFInitializerClass();
            } else {
                $initializerClass = $settingsInstance->getDefaultInitializerClass();
            }

            $this->initializer = new $initializerClass;
        }
    }
protected function validateInitializer()
    {
        if ($this->renderer === null) {
            $settingsInstance = $this->getSettingsInstance();

            if ($this->type === static::TYPE_EXCEL) {
                $initializerClass = $settingsInstance->getDefaultExcelInitializerClass();
            } elseif ($this->type === static::TYPE_PDF) {
                $initializerClass = $settingsInstance->getDefaultPDFInitializerClass();
            } else {
                $initializerClass = $settingsInstance->getDefaultInitializerClass();
            }

            $this->initializer = new $initializerClass;
        }
    }
protected function validateInitializer ( ) { if ( $ this -> renderer === null ) { $ settingsInstance = $ this -> getSettingsInstance ( ) ; if ( $ this -> type === static :: TYPE_EXCEL ) { $ initializerClass = $ settingsInstance -> getDefaultExcelInitializerClass ( ) ; } elseif ( $ this -> type === static :: TYPE_PDF ) { $ initializerClass = $ settingsInstance -> getDefaultPDFInitializerClass ( ) ; } else { $ initializerClass = $ settingsInstance -> getDefaultInitializerClass ( ) ; } $ this -> initializer = new $ initializerClass ; } }
Construct an initializer from setting defaults, if none has been provided.

@return void
Construct an initializer from setting defaults if none has been provided .