Called after the check that all required registry values
have been set correctly has run.

@return void
320659
public function afterRegistry()
    {
        parent::afterRegistry();

        $orgId = $this->respondent->getOrganizationId();

        // These values are set for the generic table snippet and
        // should be reset for this snippet
        $this->browse          = false;
        $this->extraFilter     = array("gtr_organizations LIKE '%|$orgId|%'");
        $this->menuEditActions = 'view';
        $this->menuShowActions = 'create';
    }
532751
private function updateRegistry()
    {
        if (!file_exists($this->listFilePath)) {
            $this->dumpRegistry();
        } else {
            $actualization = filemtime($this->listFilePath);
            if ($actualization > $this->registryActualTime) {
                $this->storage = require $this->listFilePath;
                $this->registryActualTime = $actualization;
            }
        }
    }
1159889
public function afterRegistry()
    {
        parent::afterRegistry();

        // Load the pdf class from the project settings if available
        if (isset($this->project->export) && isset($this->project->export['pdfExportCommand'])) {
            $this->_pdfExportCommand = $this->project->export['pdfExportCommand'];
        }
    }
1301169
public function afterRegistry()
    {
        parent::afterRegistry();

        $this->setOnSave('gr2o_opened', new \MUtil_Db_Expr_CurrentTimestamp());
        $this->setSaveOnChange('gr2o_opened');
        $this->setOnSave('gr2o_opened_by', $this->currentUser->getUserId());
        $this->setSaveOnChange('gr2o_opened_by');
    }
575894
public function run()
    {
        if ($this->unRegister() && empty(static::$keys[$this->getKey()])) {
            call_user_func_array($this->callback, $this->arguments);
        }
    }
568326
public function afterRegistry()
    {
        parent::afterRegistry();

        $allowedGroups = $this->loader->getCurrentUser()->getAllowedStaffGroups();
        if ($allowedGroups) {
            $expr = new \Zend_Db_Expr(sprintf(
                    "CASE WHEN gsf_id_primary_group IN (%s) THEN 1 ELSE 0 END",
                    implode(", ", array_keys($allowedGroups))
                    ));
        } else {
            $expr = new \Zend_Db_Expr('0');
        }
        $this->addColumn($expr, 'accessible_role');
        $this->set('accessible_role', 'default', 1);
    }
363955
protected function registryTableExists()
    {
        $sql = sprintf(
            'SHOW CREATE TABLE `%s`;',
            $this->mysql->quote($this->section)
        );

        if (false === $this->mysql->query($sql)) {

            $this->throwException(
                'The registry table does not exists: ',
                $this->mysql->errorInfo()
            );
        }
    }
1141138
public function afterBootingApplication()
    {
        if (!$this->activateEventMiddleWare()) {
            return false;
        }

        if ($this->container->get('event')->isAppEventEnabled() == false) {
            return true;
        }
        return $this->container->get('event')->trigger('afterBootingApplication', $this->container);
    }
1082762
public function afterRegistry()
    {
        parent::afterRegistry();

        if ($this->calSearchFilter instanceof AppointmentFilterInterface) {
            if ($this->calSearchFilter instanceof AppointmentFilterInterface) {
                $this->searchFilter = [
                    \MUtil_Model::SORT_DESC_PARAM => 'gec_startdate',
                    $this->calSearchFilter->getSqlEpisodeWhere(),
                    'limit' => 10,
                    ];
                // \MUtil_Echo::track($this->calSearchFilter->getSqlEpisodeWhere());

                $this->bridgeMode = \MUtil_Model_Bridge_BridgeAbstract::MODE_ROWS;
                $this->caption = $this->_('Example episodes');
                $this->onEmpty = $this->_('No example episodes found');
            } else {
                $this->searchFilter = $this->calSearchFilter;
            }
        }
    }
770233
public function afterRegistry()
    {
        parent::afterRegistry();

        $this->saveLabel = $this->_('Insert survey');
        $this->tracker   = $this->loader->getTracker();
    }
57458
public function resetRegistry()
    {
        $aRegKeys = \OxidEsales\Eshop\Core\Registry::getKeys();

        $aSkippedClasses = array();

        foreach ($aRegKeys as $sKey) {
            if (!in_array($sKey, $aSkippedClasses)) {
                $oInstance = null;
                if (!isset($this->registryCache[$sKey])) {
                    try {
                        $oNewInstance = oxNew($sKey);
                        $this->registryCache[$sKey] = $oNewInstance;
                    } catch (\OxidEsales\Eshop\Core\Exception\SystemComponentException $oException) {
                        \OxidEsales\Eshop\Core\Registry::set($sKey, null);
                        continue;
                    }
                }
                $oInstance = clone $this->registryCache[$sKey];
                \OxidEsales\Eshop\Core\Registry::set($sKey, $oInstance);
            }
        }
    }
407962
public function afterRegistry()
    {
        $this->mailElements = $this->loader->getMailLoader()->getMailElements();
        $this->mailTargets  = $this->loader->getMailLoader()->getMailTargets();

        parent::afterRegistry();
    }
1245666
public function afterRegistry()
    {
        parent::afterRegistry();

        if (! $this->tokenLibrary instanceof \Gems_Tracker_Token_TokenLibrary) {
            $this->tokenLibrary = $this->loader->getTracker()->getTokenLibrary();
        }
    }
1367890
public function run(): void
    {
        // Set default privacy settings for new trees
        foreach (self::DEFAULT_RESTRICTIONS as $tag_type => $resn) {
            DB::table('default_resn')->updateOrInsert([
                'gedcom_id' => -1,
                'tag_type'  => $tag_type,
            ], [
                'resn'      => $resn,
            ]);
        }
    }
898597
public function afterRegistry()
    {
        parent::afterRegistry();

        // Loaded from tracker and tracker does not always have the request as source value
        if (! $this->request instanceof \Zend_Controller_Request_Abstract) {
            $this->request = \Zend_Controller_Front::getInstance()->getRequest();
        }
    }
553145
public function afterRegistry()
    {
        parent::afterRegistry();

        $this->model = $this->loader->getModels()->getRespondentModel(true);
        if ($this->addLoginCheck) {
            $this->model->addLoginCheck();
        }
        // Load the data
        $this->refresh();
    }
721276
private function init()
    {
        foreach ($this->get(Registry::class)->get('services', []) as $name => $definition) {
            $this->set($name, $definition);
        }
    }