File manager - Edit - /home/proidvn/me.proid.vn/wp-content/plugins/jetformbuilder/components/rest-api/traits/paginated-args.php
Back
<?php namespace JFB_Components\Rest_Api\Traits; use Jet_Form_Builder\Db_Queries\Views\View_Base; // If this file is called directly, abort. if ( ! defined( 'WPINC' ) ) { die; } trait Paginated_Args { protected function get_paginate_args( \WP_REST_Request $request ) { $body = $request->get_query_params(); return array( 'limit' => (int) ( $body['limit'] ?? 5 ), 'sort' => $body['sort'] ?? View_Base::FROM_HIGH_TO_LOW, 'page' => (int) ( $body['page'] ?? 1 ), 'filters' => (array) ( $body['filters'] ?? array() ), ); } }
| ver. 1.4 |
Github
|
.
| PHP 8.0.30 | Generation time: 0.14 |
proxy
|
phpinfo
|
Settings