final public static function load($noconfirmation = false,
                                      $createManialinkElement = true)
    {
        self::$domDocument = new \DOMDocument('1.0', 'utf8');
        self::$parentNodes = array();

        if ($createManialinkElement) {
            $maniacode = self::$domDocument->createElement('maniacode');
            if ($noconfirmation)
                $maniacode->setAttribute('noconfirmation', $noconfirmation);
            self::$domDocument->appendChild($maniacode);
            self::$parentNodes[] = $maniacode;
        }
    }
final public static function load($noconfirmation = false,
                                      $createManialinkElement = true)
    {
        self::$domDocument = new \DOMDocument('1.0', 'utf8');
        self::$parentNodes = array();

        if ($createManialinkElement) {
            $maniacode = self::$domDocument->createElement('maniacode');
            if ($noconfirmation)
                $maniacode->setAttribute('noconfirmation', $noconfirmation);
            self::$domDocument->appendChild($maniacode);
            self::$parentNodes[] = $maniacode;
        }
    }
final public static function load ( $ noconfirmation = false , $ createManialinkElement = true ) { self :: $ domDocument = new \ DOMDocument ( '1.0' , 'utf8' ) ; self :: $ parentNodes = array ( ) ; if ( $ createManialinkElement ) { $ maniacode = self :: $ domDocument -> createElement ( 'maniacode' ) ; if ( $ noconfirmation ) $ maniacode -> setAttribute ( 'noconfirmation' , $ noconfirmation ) ; self :: $ domDocument -> appendChild ( $ maniacode ) ; self :: $ parentNodes [ ] = $ maniacode ; } }
Loads the Maniacode GUI Toolkit. This should be called before doing anything with the toolkit

@param bool True if you don't want to see a message at the end of the execution of the maniacode
@param bool Wheter you want to create the root "<maniacode>" element in the XML
Loads the Maniacode GUI Toolkit . This should be called before doing anything with the toolkit