Neos\Flow\Core\Migrations\Version20130523180140::up PHP Метод

up() публичный Метод

public up ( ) : void
Результат void
    public function up()
    {
        $this->searchAndReplace('TYPO3.TYPO3CR:Folder', 'unstructured', array('php', 'ts2'));
        $this->processConfiguration('NodeTypes', function (&$configuration) {
            foreach ($configuration as &$nodeType) {
                if (isset($nodeType['superTypes'])) {
                    foreach ($nodeType['superTypes'] as &$superType) {
                        $superType = str_replace('TYPO3.TYPO3CR:Folder', 'unstructured', $superType);
                    }
                }
                if (isset($nodeType['childNodes'])) {
                    foreach ($nodeType['childNodes'] as &$type) {
                        $type = str_replace('TYPO3.TYPO3CR:Folder', 'unstructured', $type);
                    }
                }
            }
        }, true);
    }
Version20130523180140