private function getAutocodeProperties()
    {
        $r = '';

        $autocode = (array)$this->xml->xpath('/draggy/autocode');
        $autocode = (array)$autocode[0];

        $autocodeProperties     = (array)$autocode['properties'];
        $autocodeConfigurations = (array)$autocode['configurations'];
        $autocodeTemplates      = (array)$autocode['templates'];

        foreach ($autocodeProperties as $propertyName => $propertyValue) {
            $r .= 'Autocode.prototype.setProperty(\'' . $propertyName . '\', true === ' . $propertyValue  . ');' . PHP_EOL;
        }

        foreach ($autocodeConfigurations as $configurationName => $configurationValue) {
            $r .= 'Autocode.prototype.setConfiguration(\'' . $configurationName . '\', \'' . str_replace('\\', '\\\\', $configurationValue)  . '\');' . PHP_EOL;
        }

        foreach ($autocodeTemplates as $templateName => $templateValue) {
            $r .= 'Autocode.prototype.setTemplate(\'' . $templateName . '\', "' . str_replace('\\', '\\\\', $templateValue) . '");' . PHP_EOL;
        }

        return $r;
    }
private function getAutocodeProperties()
    {
        $r = '';

        $autocode = (array)$this->xml->xpath('/draggy/autocode');
        $autocode = (array)$autocode[0];

        $autocodeProperties     = (array)$autocode['properties'];
        $autocodeConfigurations = (array)$autocode['configurations'];
        $autocodeTemplates      = (array)$autocode['templates'];

        foreach ($autocodeProperties as $propertyName => $propertyValue) {
            $r .= 'Autocode.prototype.setProperty(\'' . $propertyName . '\', true === ' . $propertyValue  . ');' . PHP_EOL;
        }

        foreach ($autocodeConfigurations as $configurationName => $configurationValue) {
            $r .= 'Autocode.prototype.setConfiguration(\'' . $configurationName . '\', \'' . str_replace('\\', '\\\\', $configurationValue)  . '\');' . PHP_EOL;
        }

        foreach ($autocodeTemplates as $templateName => $templateValue) {
            $r .= 'Autocode.prototype.setTemplate(\'' . $templateName . '\', "' . str_replace('\\', '\\\\', $templateValue) . '");' . PHP_EOL;
        }

        return $r;
    }
private function getAutocodeProperties ( ) { $ r = '' ; $ autocode = ( array ) $ this -> xml -> xpath ( '/draggy/autocode' ) ; $ autocode = ( array ) $ autocode [ 0 ] ; $ autocodeProperties = ( array ) $ autocode [ 'properties' ] ; $ autocodeConfigurations = ( array ) $ autocode [ 'configurations' ] ; $ autocodeTemplates = ( array ) $ autocode [ 'templates' ] ; foreach ( $ autocodeProperties as $ propertyName => $ propertyValue ) { $ r .= 'Autocode.prototype.setProperty(\'' . $ propertyName . '\', true === ' . $ propertyValue . ');' . PHP_EOL ; } foreach ( $ autocodeConfigurations as $ configurationName => $ configurationValue ) { $ r .= 'Autocode.prototype.setConfiguration(\'' . $ configurationName . '\', \'' . str_replace ( '\\' , '\\\\' , $ configurationValue ) . '\');' . PHP_EOL ; } foreach ( $ autocodeTemplates as $ templateName => $ templateValue ) { $ r .= 'Autocode.prototype.setTemplate(\'' . $ templateName . '\', "' . str_replace ( '\\' , '\\\\' , $ templateValue ) . '");' . PHP_EOL ; } return $ r ; }
Get the project autocode properties from the saved file

@return string
Get the project autocode properties from the saved file