HEX
Server:
System: Linux aac286ea486c 5.14.0-687.15.1.el9_8.x86_64 #1 SMP PREEMPT_DYNAMIC Thu Jun 11 08:51:45 EDT 2026 x86_64
User: root (0)
PHP: 8.2.30
Disabled: pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wifcontinued,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_get_handler,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,pcntl_async_signals,disk_free_space,diskfreespace
Upload Files
File: /dom877180/wp-content/plugins/gravityview/future/includes/class-gv-renderer-entry-edit.php
<?php
namespace GV;

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

/**
 * The \GV\Edit_Entry_Renderer class.
 *
 * The edit entry renderer.
 */
class Edit_Entry_Renderer extends Entry_Renderer {

	/**
	 * Renders a an editable \GV\Entry instance.
	 *
	 * @param \GV\Entry $entry The Entry instance to render.
	 * @param \GV\View $view The View connected to the entry.
	 * @param \GV\Request $request The request context we're currently in. Default: `gravityview()->request`
	 *
	 * @todo Just a wrapper around the old code. Cheating. Needs rewrite :)
	 *
	 * @api
	 * @since 2.0
	 *
	 * @return string The rendered Entry edit screen.
	 */
	public function render( Entry $entry, View $view, Request $request = null ) {
		$entries = new \GV\Entry_Collection();
		$entries->add( $entry );

		\GV\Mocks\Legacy_Context::push( array(
			'view' => $view,
			'entries' => $entries,
		) );

		ob_start();
		do_action( 'gravityview_edit_entry', null, $entry, $view, $request );

		\GV\Mocks\Legacy_Context::pop();

		return ob_get_clean();
	}
}