TypoScript 

\nn\t3::TypoScript() 

Methods for parsing and converting TypoScript

Overview of Methods 

\nn\t3::TypoScript()->addPageConfig($str = ''); 

Add page config Alias to \nn\t3::Registry()->addPageConfig( $str );

\nn\t3::TypoScript()->addPageConfig( 'test.was = 10' );
\nn\t3::TypoScript()->addPageConfig( '' );
\nn\t3::TypoScript()->addPageConfig( '@import "EXT:extname/Configuration/TypoScript/page.ts"' );
Copied!

| @return void

| ➜ Go to source code of TypoScript::addPageConfig()

\nn\t3::TypoScript()->convertToPlainArray($ts); 

Convert TypoScript 'name.' syntax to normal array. Facilitates access

\nn\t3::TypoScript()->convertToPlainArray(['example'=>'test', 'example.'=>'here']);
Copied!

| @return array

| ➜ Go to source code of TypoScript::convertToPlainArray()

\nn\t3::TypoScript()->fromString($str = '', $overrideSetup = []); 

Converts a text into a TypoScript array.

$example = '
    lib.test {
      someVal = 10
    }
';
\nn\t3::TypoScript()->fromString($example); => ['lib'=>['test'=>['someVal'=>10]]]
\nn\t3::TypoScript()->fromString($example, $mergeSetup); => ['lib'=>['test'=>['someVal'=>10]]]
Copied!

| @return array

| ➜ Go to source code of TypoScript::fromString()

Methods