Contao\CoreBundle\Image\ImageSizes::loadOptions PHP Метод

loadOptions() приватный Метод

Loads the options from the database.
private loadOptions ( )
    private function loadOptions()
    {
        if (null !== $this->options) {
            return;
        }
        // The framework is required to have the TL_CROP options available
        $this->framework->initialize();
        $this->options = $GLOBALS['TL_CROP'];
        $rows = $this->connection->fetchAll('SELECT id, name, width, height FROM tl_image_size ORDER BY pid, name');
        foreach ($rows as $imageSize) {
            $this->options['image_sizes'][$imageSize['id']] = sprintf('%s (%sx%s)', $imageSize['name'], $imageSize['width'], $imageSize['height']);
        }
    }