Airship\Engine\Continuum::doUpdateCheck PHP Method

doUpdateCheck() public method

1. Update all cabins 2. Update all gadgets 3. Update the core
public doUpdateCheck ( )
    public function doUpdateCheck()
    {
        $config = State::instance();
        // First, update each cabin
        foreach ($this->getCabins() as $cabin) {
            if ($cabin instanceof CabinUpdater) {
                $cabin->autoUpdate();
            }
        }
        // Next, update each gadget
        foreach ($this->getGadgets() as $gadget) {
            if ($gadget instanceof GadgetUpdater) {
                $gadget->autoUpdate();
            }
        }
        // Also, motifs:
        foreach ($this->getMotifs() as $motif) {
            if ($motif instanceof MotifUpdater) {
                $motif->autoUpdate();
            }
        }
        // Finally, let's update the core
        $s = $config->universal['airship']['trusted-supplier'];
        if (!empty($s)) {
            $ha = new AirshipUpdater($this->hail, $this->getSupplier($s));
            $ha->autoUpdate();
        }
    }