release; } /** * {@inheritdoc} */ public function require_all_upgrades() { return true; } /** * {@inheritdoc} */ public function concern() { return $this->concern; } /** * {@inheritdoc} */ public function getDoctrineMigrations() { return []; } /** * {@inheritdoc} */ public function apply(base $databox, Application $app) { $sxe = $databox->get_sxml_structure(); if ($sxe !== false) { foreach ($sxe->statbits->bit as $sb) { $bit = (int) ($sb["n"]); if ($bit < 4 && $bit > 31) { continue; } $name = (string) $sb; $labelOff = (string) $sb['labelOff']; $labelOn = (string) $sb['labelOn']; $this->status[$bit]["labeloff"] = $labelOff ? : 'no-' . $name; $this->status[$bit]["labelon"] = $labelOn ? : 'ok-' . $name; } } $dom = new \DOMDocument(); $dom->loadXML($sxe->asXML()); $databox->saveStructure($dom); return true; } }