PHP 8.2.31
Preview: ImageGenerationController.php Size: 887 B
/home/nshryvcy/radiantskinclinics.org/wp-content/plugins/extendify_old/app/Shared/Controllers/ImageGenerationController.php

<?php

/**
 * Controls Draft Settings
 */

namespace Extendify\Shared\Controllers;

defined('ABSPATH') || die('No direct access.');

use Extendify\Shared\Services\Sanitizer;

/**
 * The controller for keeping draft settings in sync
 */

class ImageGenerationController
{
    /**
     * Return the data
     *
     * @return \WP_REST_Response
     */
    public static function get()
    {
        $data = get_option('extendify_draft_settings', []);
        return new \WP_REST_Response($data);
    }

    /**
     * Persist the data
     *
     * @param \WP_REST_Request $request - The request.
     * @return \WP_REST_Response
     */
    public static function store($request)
    {
        $data = json_decode($request->get_param('state'), true);
        update_option('extendify_draft_settings', Sanitizer::sanitizeArray($data));
        return new \WP_REST_Response($data);
    }
}

Directory Contents

Dirs: 0 × Files: 7

Name Size Perms Modified Actions
885 B lrw-r--r-- 2025-05-22 22:26:12
Edit Download
904 B lrw-r--r-- 2025-06-09 17:02:32
Edit Download
887 B lrw-r--r-- 2025-10-23 20:20:58
Edit Download
2.31 KB lrw-r--r-- 2025-05-22 22:26:12
Edit Download
980 B lrw-r--r-- 2026-03-19 23:35:18
Edit Download
902 B lrw-r--r-- 2025-05-22 22:26:12
Edit Download
1.21 KB lrw-r--r-- 2025-05-22 22:26:12
Edit Download

If ZipArchive is unavailable, a .tar will be created (no compression).