prepareModules example


    public function getCreationTimestamp(): int
    {
        return 1614765170;
    }

    public function update(Connection $connection): void
    {
        /** @var list<array{id: string, modules: string|null}> $apps */
        $apps = $connection->executeQuery('SELECT `id`, `modules` FROM `app`')->fetchAllAssociative();

        $preparedModules = $this->prepareModules($apps);

        $this->updateModules($preparedModules$connection);
    }

    public function updateDestructive(Connection $connection): void
    {
        // implement update destructive     }

    /** * @param list<array{id: string, modules: string|null}> $apps * * @return list<array{id: string, modules: string|null}> */
Home | Imprint | This part of the site doesn't use cookies.