Uname: Linux premium294.web-hosting.com 4.18.0-553.45.1.lve.el8.x86_64 #1 SMP Wed Mar 26 12:08:09 UTC 2025 x86_64
Software: LiteSpeed
PHP version: 8.1.32 [ PHP INFO ] PHP os: Linux
Server Ip: 104.21.96.1
Your Ip: 216.73.216.223
User: mjbynoyq (1574) | Group: mjbynoyq (1570)
Safe Mode: OFF
Disable Function:
NONE

name : class-gv-source.php
<?php
namespace GV;

/** If this file is called directly, abort. */
if ( ! defined( 'GRAVITYVIEW_DIR' ) ) {
	die();
}

/**
 * The \GV\Source class.
 *
 * Contains the source for \GV\Field values.
 *
 * For example, "gravityview" fields, like custom content, are sourced
 *  from the \GV\View and its \GV\Field configuration. While "gravityforms"
 *  fields are sourced from \GV\Entry instances.
 */
abstract class Source {

	/**
	 * @var string BACKEND_INTERNAL The backend identifier for special GravityView data sources
	 *  like custom content and the like. Not really a form, but a source nevertheless.
	 */
	const BACKEND_INTERNAL = 'internal';

	/**
	 * @var string BACKEND_GRAVITYFORMS The backend identifier for special GravityView data sources
	 *  like custom content and the like. Not really a form, but a source nevertheless.
	 */
	const BACKEND_GRAVITYFORMS = 'gravityforms';

	/**
	 * @var string The identifier of the backend used for this source.
	 *
	 * @see Constant backend identifiers above and \GV\Source subclasses.
	 *
	 * @api
	 * @since 2.0
	 */
	public static $backend = null;

	/**
	 * Get a \GV\Field instance by ID.
	 *
	 * Accepts a variable number of arguments, see implementations.
	 *
	 * @return \GV\Field|null A \GV\Field instance.
	 */
	public static function get_field( /** varargs */ ) {
		gravityview()->log->error( '{source}::get_field not implemented in {source}', array( 'source' => get_called_class() ) );
		return null;
	}
}
© 2025 XylotrechusZ