public function saveRequest($ids)
    {
        // Work on $_POST
        $request = $_POST;

        if (empty($request) || empty($ids) || !isset($request['updated']) || 'true' !== $request['updated']) {
            return;
        }

        // Iterate
        foreach ($request as $k => $v) {
            // Don't register this default value
            if (in_array($k, ['updated','submit']) || !in_array($k, $ids)) {
                continue;
            }

            // Register settings
            Option::set($k, $v);
        }
    }
public function saveRequest($ids)
    {
        // Work on $_POST
        $request = $_POST;

        if (empty($request) || empty($ids) || !isset($request['updated']) || 'true' !== $request['updated']) {
            return;
        }

        // Iterate
        foreach ($request as $k => $v) {
            // Don't register this default value
            if (in_array($k, ['updated','submit']) || !in_array($k, $ids)) {
                continue;
            }

            // Register settings
            Option::set($k, $v);
        }
    }
public function saveRequest ( $ ids ) { // Work on $_POST $ request = $ _POST ; if ( empty ( $ request ) || empty ( $ ids ) || ! isset ( $ request [ 'updated' ] ) || 'true' !== $ request [ 'updated' ] ) { return ; } // Iterate foreach ( $ request as $ k => $ v ) { // Don't register this default value if ( in_array ( $ k , [ 'updated' , 'submit' ] ) || ! in_array ( $ k , $ ids ) ) { continue ; } // Register settings Option :: set ( $ k , $ v ) ; } }
Save request.

@param array $ids
Save request .