GravityView  2.1.1
The best, easiest way to display Gravity Forms entries on your website.
Namespaces | Variables
other_entries.php File Reference

Go to the source code of this file.

Namespaces

 GravityView
 GPL2+
 

Variables

 $created_by = \GV\Utils::get( $field, 'entry/created_by' )
 
 $criteria ['paging']
 Modify the search parameters before the entries are fetched. More...
 
 $criteria ['search_criteria']
 
 $criteria ['search_criteria'] = GravityView_frontend::process_search_only_approved( $view_settings, $criteria['search_criteria'] )
 
 $criteria ['search_criteria']['status'] = apply_filters( 'gravityview_status', 'active', $view_settings )
 
 $deprecated = apply_filters( 'gravityview/field/other_entries/args', array(), $field )
 
 $entries = GVCommon::get_entries( $form_id, $criteria )
 
 $field = $gravityview_view->getCurrentField()
 
if(empty( $created_by)) $form_id = $gravityview_view->getFormId()
 
 $gravityview_view = GravityView_View::getInstance()
 
if(empty( $entries) && $gravityview_view->getCurrentFieldSetting('no_entries_hide')) $list
 
 $view_settings = gravityview_get_template_settings( $gravityview_view->getViewId() )
 
 $view_settings ['page_size'] = $gravityview_view->getCurrentFieldSetting('page_size')
 

Variable Documentation

◆ $created_by

$created_by = \GV\Utils::get( $field, 'entry/created_by' )

◆ $criteria [1/4]

$criteria
Initial value:
= array(
'offset' => 0,
'page_size' => $view_settings['page_size']
)
$view_settings

Modify the search parameters before the entries are fetched.

Since
1.11
Parameters
array$criteriaGravity Forms search criteria array, as used by GVCommon::get_entries()
array$view_settingsAssociative array of settings with plugin defaults used if not set by the View
int$form_idThe Gravity Forms ID

Definition at line 28 of file other_entries.php.

Referenced by GravityView_Field_Time\_maybe_filter_gravity_forms_query(), GVCommon\calculate_get_entries_criteria(), GVCommon\check_entry_display(), GravityView_Recent_Entries_Widget\get_entries(), GVCommon\get_entries(), GravityView_frontend\get_search_criteria(), and GV\Mocks\GravityView_frontend_get_view_entries().

◆ $criteria [2/4]

$criteria[ 'search_criteria']
Initial value:
= array(
'field_filters' => array(
array(
'key' => 'created_by',
'value' => $created_by,
'operator' => 'is'
)
)
)
$created_by

Definition at line 34 of file other_entries.php.

◆ $criteria [3/4]

$criteria[ 'search_criteria'] = GravityView_frontend::process_search_only_approved( $view_settings, $criteria['search_criteria'] )

Definition at line 43 of file other_entries.php.

◆ $criteria [4/4]

$criteria[ 'search_criteria'][ 'status'] = apply_filters( 'gravityview_status', 'active', $view_settings )

Definition at line 44 of file other_entries.php.

◆ $deprecated

$deprecated = apply_filters( 'gravityview/field/other_entries/args', array(), $field )
Since
1.7.6

Definition at line 81 of file other_entries.php.

◆ $entries

$entries = GVCommon::get_entries( $form_id, $criteria )

◆ $field

$field = $gravityview_view->getCurrentField()

Definition at line 11 of file other_entries.php.

◆ $form_id

if (empty($created_by)) $form_id = $gravityview_view->getFormId()

Definition at line 20 of file other_entries.php.

Referenced by GravityView_Field\_filter_gform_custom_merge_tags(), GravityView_Field_Time\_get_time_format_for_field(), GravityView_frontend\_override_sorting_id_by_field_type(), GravityView_Entry_Approval\add_approval_status_updated_note(), GravityView_Admin_Views\add_custom_column_content(), GravityView_GF_Entries_List\add_edit_link(), GravityView_Admin_Bar\add_floaty_icon(), Field_Template\add_id_specific_templates(), GravityView_Admin_ApproveEntries\add_scripts_and_styles(), GravityView_Recent_Entries_Widget\ajax_get_view_merge_tag_data(), GravityView_Entry_Approval\ajax_update_approved(), GF_Form\by_id(), GF_Entry\by_id(), GF_Entry\by_slug(), gventry\callback(), gvfield\callback(), GravityView_Admin\connected_form_warning(), GravityView_Cache\delete(), GravityView_Field_Post_Image\explode_value(), GravityView_API\field_class(), GravityView_API\field_html_attr_id(), GravityView_Admin_Views\filter_pre_get_posts_by_gravityview_form_id(), Form_Collection\get(), GravityView_Admin_ApproveEntries\get_bulk_actions(), GravityView_Admin_Views\get_connected_form_links(), GVCommon\get_connected_views(), GravityView_Recent_Entries_Widget\get_entries(), GVCommon\get_entry_id_from_slug(), GVCommon\get_entry_ids(), GVCommon\get_entry_meta(), GravityView_Ajax\get_field_options(), GravityView_Admin_ApproveEntries\get_first_form_id(), GVCommon\get_form(), GravityView_Admin_ApproveEntries\get_form_id(), GravityView_Edit_Entry\get_nonce_key(), GravityView_frontend\get_search_criteria(), GravityView_frontend\get_search_criteria_paging(), GravityView_Migrate\get_search_fields(), GravityView_Plugin_Hooks_Gravity_Flow\get_status_options(), GravityView_Field_Workflow_Step\get_workflow_step(), GV\Mocks\GravityView_frontend_get_view_entries(), gravityview_get_connected_views(), gravityview_get_entry_ids(), gravityview_get_entry_meta(), gravityview_get_form(), GravityView_Cache\in_blacklist(), Request\is_edit_entry(), Request\is_entry(), GravityView_Field_Workflow_Step\modify_frontend_search_fields(), GravityView_Plugin_Hooks_Gravity_Flow\modify_search_bar_fields_dropdown(), GravityView_Field_Time\modify_sort_id(), GravityView_Admin_ApproveEntries\process_bulk_action(), GravityView_Admin_Views\render_active_areas(), GravityView_Render_Settings\render_field_options(), GravityView_Admin_Views\render_field_pickers(), GravityView_Widget_Search\render_searchable_fields(), GravityView_Admin_Views\save_postdata(), GravityView_Admin_ApproveEntries\show_approve_entry_column(), GravityView_Entry_Approval\update_approved(), GravityView_Admin_ApproveEntries\update_approved(), GravityView_Entry_Approval\update_approved_meta(), GravityView_Entry_Approval\update_bulk(), and GravityView_Recent_Entries_Widget\widget().

◆ $gravityview_view

$gravityview_view = GravityView_View::getInstance()

Definition at line 9 of file other_entries.php.

◆ $list

if (empty($entries) &&$gravityview_view->getCurrentFieldSetting( 'no_entries_hide')) $list
Initial value:
$gravityview_view->getPostId(),
$field['form'],
$gravityview_view->getCurrentFieldSetting('link_format'),
$gravityview_view->getCurrentFieldSetting('after_link'),
'other_entries'
)
If this file is called directly, abort.
$entries
$field
$gravityview_view

Definition at line 65 of file other_entries.php.

◆ $view_settings [1/2]

$view_settings = gravityview_get_template_settings( $gravityview_view->getViewId() )

Definition at line 23 of file other_entries.php.

Referenced by GravityView_Recent_Entries_Widget\get_entries().

◆ $view_settings [2/2]

$view_settings[ 'page_size'] = $gravityview_view->getCurrentFieldSetting('page_size')

Definition at line 25 of file other_entries.php.