GravityView
2.17
The best, easiest way to display Gravity Forms entries on your website.
|
Make some GFFormsModel public available. More...
Static Public Member Functions | |
static | copy_post_image ( $url, $post_id) |
Copied function from Gravity Forms plugin ::copy_post_image since the method is private. More... | |
static | get_database_version () |
Make sure the method exists, regardless of GF version. More... | |
static | get_post_field_images ( $form, $entry) |
Given information provided in an entry, get array of media IDs. More... | |
static | get_post_fields ( $form, $entry) |
Alias of GFFormsModel::get_post_fields(); just making it public. More... | |
static | is_value_match ( $field_value, $target_value, $operation='is', $source_field=null, $rule=null, $form=null) |
Determines if the field value matches the conditional logic rule value. More... | |
static | media_handle_upload ( $url, $post_id, $post_data=array()) |
Copied function from Gravity Forms plugin ::media_handle_upload since the method is private. More... | |
Make some GFFormsModel public available.
Definition at line 8 of file class-gravityview-gfformsmodel.php.
|
static |
Copied function from Gravity Forms plugin ::copy_post_image since the method is private.
string | $url | URL of the post image to update |
int | $post_id | ID of the post image to update |
file
, url
and type
keys. False: failed to copy file to final directory path. If the method changes to public, use Gravity Forms' method
Definition at line 135 of file class-gravityview-gfformsmodel.php.
References $url.
|
static |
Make sure the method exists, regardless of GF version.
Definition at line 17 of file class-gravityview-gfformsmodel.php.
Referenced by GravityView_Entry_Notes\get_note(), Plugin\uninstall(), GravityView_Edit_Entry_Render\unset_hidden_field_values(), and GravityView_Edit_Entry_Render\update_calculation_fields().
|
static |
Given information provided in an entry, get array of media IDs.
This is necessary because GF doesn't expect to need to update post images, only to create them.
array | $form | Gravity Forms form array |
array | $entry | Gravity Forms entry array |
Definition at line 73 of file class-gravityview-gfformsmodel.php.
References $entry, and GV\$form.
Referenced by GravityView_Edit_Entry_Render\fill_post_template().
|
static |
Alias of GFFormsModel::get_post_fields(); just making it public.
array | $form | Gravity Forms form array |
array | $entry | Gravity Forms entry array |
If the method changes to public, use Gravity Forms' method
Definition at line 108 of file class-gravityview-gfformsmodel.php.
|
static |
Determines if the field value matches the conditional logic rule value.
mixed | $field_value | The field value to be checked. |
mixed | $target_value | The conditional logic rule value. |
string | $operation | The conditional logic rule operator. |
null | GF_Field | string | $source_field | The field the rule is based on, or the entry meta |
null | array | $rule | The conditional logic rule properties. |
null | array | $form | The current form. |
Definition at line 40 of file class-gravityview-gfformsmodel.php.
References $field_value, GV\$form, and GVCommon\matches_operation().
|
static |
Copied function from Gravity Forms plugin ::media_handle_upload since the method is private.
Note: The method became public in GF 1.9.17.7
copy_post_image wp_insert_attachment wp_update_attachment_metadata
string | $url | URL of the post image to update |
int | $post_id | ID of the post image to update |
array | $post_data | Array of data for the eventual attachment post type that is created using { |
post_mime_type
, guid
, post_parent
, post_title
, post_content
keys. If the method changes to public, use Gravity Forms' method
Definition at line 170 of file class-gravityview-gfformsmodel.php.
References $url.
Referenced by GravityView_Edit_Entry_Render\update_post_image().