application/Espo/Core/Utils/Database/Schema/Schema.php
protected function initRebuildActions($currentSchema = null, $metadataSchema = null)
    {
        $methods = array('beforeRebuild', 'afterRebuild');

        $this->getClassParser()->setAllowedMethods($methods);
        $rebuildActions = $this->getClassParser()->getData($this->rebuildActionsPath);

        $classes = array();
        foreach ($rebuildActions as $actionName => $actionClass) {
            $rebuildActionClass = new $actionClass($this->metadata, $this->config, $this->entityManager);
            if (isset($currentSchema)) {
                $rebuildActionClass->setCurrentSchema($currentSchema);
            }
            if (isset($metadataSchema)) {
                $rebuildActionClass->setMetadataSchema($metadataSchema);
            }

            foreach ($methods as $methodName) {
                if (method_exists($rebuildActionClass, $methodName)) {
                    $classes[$methodName][] = $rebuildActionClass;
                }
            }
        }

        $this->rebuildActionClasses = $classes;
    }
protected function initRebuildActions($currentSchema = null, $metadataSchema = null)
    {
        $methods = array('beforeRebuild', 'afterRebuild');

        $this->getClassParser()->setAllowedMethods($methods);
        $rebuildActions = $this->getClassParser()->getData($this->rebuildActionsPath);

        $classes = array();
        foreach ($rebuildActions as $actionName => $actionClass) {
            $rebuildActionClass = new $actionClass($this->metadata, $this->config, $this->entityManager);
            if (isset($currentSchema)) {
                $rebuildActionClass->setCurrentSchema($currentSchema);
            }
            if (isset($metadataSchema)) {
                $rebuildActionClass->setMetadataSchema($metadataSchema);
            }

            foreach ($methods as $methodName) {
                if (method_exists($rebuildActionClass, $methodName)) {
                    $classes[$methodName][] = $rebuildActionClass;
                }
            }
        }

        $this->rebuildActionClasses = $classes;
    }
protected function initRebuildActions ( $ currentSchema = null , $ metadataSchema = null ) { $ methods = array ( 'beforeRebuild' , 'afterRebuild' ) ; $ this -> getClassParser ( ) -> setAllowedMethods ( $ methods ) ; $ rebuildActions = $ this -> getClassParser ( ) -> getData ( $ this -> rebuildActionsPath ) ; $ classes = array ( ) ; foreach ( $ rebuildActions as $ actionName => $ actionClass ) { $ rebuildActionClass = new $ actionClass ( $ this -> metadata , $ this -> config , $ this -> entityManager ) ; if ( isset ( $ currentSchema ) ) { $ rebuildActionClass -> setCurrentSchema ( $ currentSchema ) ; } if ( isset ( $ metadataSchema ) ) { $ rebuildActionClass -> setMetadataSchema ( $ metadataSchema ) ; } foreach ( $ methods as $ methodName ) { if ( method_exists ( $ rebuildActionClass , $ methodName ) ) { $ classes [ $ methodName ] [ ] = $ rebuildActionClass ; } } } $ this -> rebuildActionClasses = $ classes ; }
Init Rebuild Actions, get all classes and create them
@return void
Init Rebuild Actions get all classes and create them