本文整理汇总了PHP中GFAPI::add_entries方法的典型用法代码示例。如果您正苦于以下问题:PHP GFAPI::add_entries方法的具体用法?PHP GFAPI::add_entries怎么用?PHP GFAPI::add_entries使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类GFAPI
的用法示例。
在下文中一共展示了GFAPI::add_entries方法的10个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: aria_add_song_from_csv
/**
* This function adds a new entry (from a .csv file) obtained via GF.
*
*/
function aria_add_song_from_csv($entry, $form)
{
// locate the name of the song file
$filename_url = $entry["4"];
//echo "Filename (url) is: " . $filename_url;
$filename_atomic_strings = explode("/", $filename_url);
$filename = "/var/www/html/wp-content/uploads/testpath/";
$filename .= $filename_atomic_strings[count($filename_atomic_strings) - 1];
//echo "<br> Filename is: " . $filename;
$song_data = array();
if (($file_ptr = fopen($filename, "r")) !== FALSE) {
while (($data = fgetcsv($file_ptr, 1000, ";")) !== FALSE) {
// no image
if (count($data) === 4) {
$song_data[] = array("1" => "{$data['0']}", "2" => $data[1], "3" => $data[2], "4" => $data[3]);
} else {
$song_data[] = array("1" => $data[0], "2" => $data[1], "3" => $data[2], "4" => $data[3], "5" => $data[4]);
}
/*
for ($i = 0; $i < count($data); $i++) {
echo $data[$i] . "</br>";
}
unset($data); */
}
}
/*
print_r($song_data);
die;
*/
$newly_added_entry_ids = GFAPI::add_entries($song_data, 38);
// remove filename from upload folder
unlink($filename);
}
示例2: aria_upload_songs
function aria_upload_songs()
{
// find sheet music file
//$sheet_music_csv = plugin_dir_path(__FILE__) . "../uploads/musictestsheet.csv";
$sheet_music_csv = "/var/www/html/wp-content/uploads/musicsheettest.csv";
// read fiile and parse csv content
$song_data = array();
if (($file_ptr = fopen($sheet_music_csv, "r")) !== FALSE) {
while (($data = fgetcsv($file_ptr, 1000, ";")) !== FALSE) {
// no image
if (count($data) === 4) {
$song_data[] = array("1" => "{$data['0']}", "2" => $data[1], "3" => $data[2], "4" => $data[3]);
} else {
$song_data[] = array("1" => $data[0], "2" => $data[1], "3" => $data[2], "4" => $data[3], "5" => $data[4]);
}
/*
for ($i = 0; $i < count($data); $i++) {
echo $data[$i] . "</br>";
}
unset($data); */
}
}
/*
print_r($song_data);
die;
*/
$newly_added_entry_ids = GFAPI::add_entries($song_data, 38);
}
示例3: create_entries
public function create_entries()
{
$entries = json_decode('[{"id":"453","form_id":"47","date_created":"2014-09-14 02:47:14","is_starred":0,"is_read":0,"ip":"144.131.91.23","source_url":"http:\\/\\/clients.blueliquiddesigns.com.au\\/gfpdf3\\/gf1_7\\/wordpress\\/?gf_page=preview&id=47","post_id":null,"currency":"USD","payment_status":null,"payment_date":null,"transaction_id":null,"payment_amount":null,"payment_method":null,"is_fulfilled":null,"created_by":"1","transaction_type":null,"user_agent":"Mozilla\\/5.0 (Windows NT 6.1; WOW64; rv:32.0) Gecko\\/20100101 Firefox\\/32.0","status":"active","1.3":"My","1.6":"Name","5":"First Choice","2.1":"","2.2":"","2.3":"","2.4":"","2.5":"","2.6":"","3":"","4":"","6":"","7":""},{"id":"452","form_id":"47","date_created":"2014-09-14 02:47:06","is_starred":0,"is_read":0,"ip":"144.131.91.23","source_url":"http:\\/\\/clients.blueliquiddesigns.com.au\\/gfpdf3\\/gf1_7\\/wordpress\\/?gf_page=preview&id=47","post_id":null,"currency":"USD","payment_status":null,"payment_date":null,"transaction_id":null,"payment_amount":null,"payment_method":null,"is_fulfilled":null,"created_by":"1","transaction_type":null,"user_agent":"Mozilla\\/5.0 (Windows NT 6.1; WOW64; rv:32.0) Gecko\\/20100101 Firefox\\/32.0","status":"active","1.3":"First","1.6":"Last","2.1":"12 Alister St","2.3":"Ali","2.4":"State","2.5":"2678","2.6":"Barbados","3":"my@test.com","4":"(345)445-4566","5":"Second Choice","6":"First Choice,Second Choice,Third Choice","2.2":"","7":""},{"id":"451","form_id":"47","date_created":"2014-09-14 02:46:35","is_starred":0,"is_read":0,"ip":"144.131.91.23","source_url":"http:\\/\\/clients.blueliquiddesigns.com.au\\/gfpdf3\\/gf1_7\\/wordpress\\/?gf_page=preview&id=47","post_id":null,"currency":"USD","payment_status":null,"payment_date":null,"transaction_id":null,"payment_amount":null,"payment_method":null,"is_fulfilled":null,"created_by":"1","transaction_type":null,"user_agent":"Mozilla\\/5.0 (Windows NT 6.1; WOW64; rv:32.0) Gecko\\/20100101 Firefox\\/32.0","status":"active","1.3":"Jake","1.6":"Jackson","2.1":"123 Fake St","2.2":"Line 2","2.3":"City","2.4":"State","2.5":"2441","2.6":"Albania","3":"test@test.com","4":"(123)123-1234","5":"Third Choice","6":"Second Choice,Third Choice","7":"This is paragraph test!"}]', true);
$results = GFAPI::add_entries($entries, $this->form_id[0]);
/* test we get the correct results */
$this->assertEquals(true, is_array($results));
$this->entries = $results;
}
示例4: post_entries
public function post_entries($data, $form_id = null)
{
$this->authorize("gravityforms_edit_entries");
$result = GFAPI::add_entries($data, $form_id);
if (is_wp_error($result)) {
$response = $this->get_error_response($result);
$status = $this->get_error_status($result);
} else {
$status = 201;
$response = $result;
}
$this->end($status, $response);
}
示例5: post_entries
public function post_entries($data, $form_id = null)
{
$this->log_debug(__METHOD__ . '(): Running.');
$capability = apply_filters('gform_web_api_capability_post_entries', 'gravityforms_edit_entries');
$this->authorize($capability);
$entries = array();
foreach ($data as $entry) {
$entries[] = $this->maybe_serialize_list_fields($entry, $form_id);
}
$result = GFAPI::add_entries($entries, $form_id);
if (is_wp_error($result)) {
$response = $this->get_error_response($result);
$status = $this->get_error_status($result);
} else {
$status = 201;
$response = $result;
}
$this->end($status, $response);
}
示例6: aria_add_music_from_csv
/**
* This function will parse the contents of the csv file and upload content to the NNMTA music database.
*
* Using the csv file that the user has uploaded, this function will parse through the music content for
* each song and add it to the NNMTA music database.
*
* @param Entry Object $entry The entry object from the upload form.
* @param Form Object $form The form object that contains $entry.
*
* @since 1.0.0
* @author KREW
*/
function aria_add_music_from_csv($entry, $form)
{
$num_song_elements_no_image = 5;
$num_song_elements_with_image = 6;
// locate the full path of the csv file
$csv_music_file = aria_get_music_csv_file_path($entry, $form);
// parse csv file and add all music data to an array
$all_songs = array();
if (($file_ptr = fopen($csv_music_file, "r")) !== FALSE) {
// remove all data that is already in the database
//aria_remove_all_music_from_nnmta_database();
// add new music
while (($single_song_data = fgetcsv($file_ptr, 1000, ",")) !== FALSE) {
// no image
if (count($single_song_data) === $num_song_elements_no_image) {
$all_songs[] = array('1' => $single_song_data[0], '2' => $single_song_data[1], '3' => $single_song_data[2], '4' => $single_song_data[3], '5' => $single_song_data[4]);
} elseif (count($single_song_data) === $num_song_elements_with_image) {
/*
$all_songs[] = array (
'1' => $single_song_data[0],
'2' => $single_song_data[1],
'3' => $single_song_data[2],
'4' => $single_song_data[3],
'5' => $single_song_data[4],
'6' => $single_song_data[5],
); */
}
}
}
// add all song data from array into the database
$new_song_ids = GFAPI::add_entries($all_songs, aria_get_nnmta_database_form_id());
if (is_wp_error($new_song_ids)) {
wp_die($new_song_ids->get_error_message());
}
// remove filename from upload folder
//print_r($all_songs);
unlink($csv_music_file);
unset($all_songs);
}
示例7: post_entries
public function post_entries($data, $form_id = null)
{
$capability = apply_filters('gform_web_api_capability_post_entries', 'gravityforms_edit_entries');
$this->authorize($capability);
$result = GFAPI::add_entries($data, $form_id);
if (is_wp_error($result)) {
$response = $this->get_error_response($result);
$status = $this->get_error_status($result);
} else {
$status = 201;
$response = $result;
}
$this->end($status, $response);
}
示例8: aria_after_student_submission
/**
* This function will be the hook that is called after a student public form
* entry is made. This is to get all information from the student form and
* make updates in the teacher master and the student master form.
*
* This can be used as such:
* add_action(
* 'gform_after_submission_x', 'aria_after_student_submission', 10, 2);
*
* @param $form GF Forms Object The form this function is attached to.
* @param $entry GF Entry Object The entry that is returned after form submission.
*
* @since 1.0.0
* @author KREW
*/
public static function aria_after_student_submission($entry, $form)
{
if (!array_key_exists('isStudentPublicForm', $form) || !$form['isStudentPublicForm']) {
return;
}
// Find common title and get the forms that are related to this form
$prepended_comp_title = ARIA_API::aria_parse_form_name_for_title($form["title"]);
$related_forms = $form['aria_relations'];
// Find out the information associated with the $entry variable
$student_fields = ARIA_Create_Competition::aria_student_field_id_array();
$teacher_master_fields = ARIA_Create_Master_Forms::aria_master_teacher_field_id_array();
$student_master_fields = ARIA_Create_Master_Forms::aria_master_student_field_id_array();
// Hash for teacher (just has the teacher name)
$teacher_name = $entry[(string) $student_fields["teacher_name"]];
$teacher_hash = hash("md5", $teacher_name);
// Hash for student (student name and entry date)
$student_name_and_entry = $entry[(string) $student_fields["student_first_name"]];
$student_name_and_entry .= $entry[(string) $student_fields["student_last_name"]];
$student_name_and_entry .= $entry["date_created"];
$student_hash = hash("md5", $student_name_and_entry);
// // Search through the teacher form to see if the teacher has an entry made
// $teacher_entry = ARIA_Registration_Handler::aria_find_teacher_entry($form["title"], $teacher_hash);
// $teacher_master_fields = ARIA_Create_Master_Forms::aria_master_teacher_field_id_array();
// // If the teacher exists, add the student hash to the students array
// if ($teacher_entry !== false) {
// $teacher_entry[(string) $teacher_master_fields["students"]][] = $student_hash;
// }
//
// // If not make a new entry in the form
// if (!$teacher_exists) {
// $new_teacher_entry = array();
// $new_teacher_entry[] = array (
// (string) $teacher_master_fields["name"] => $entry[(string) $student_fields["not_listed_teacher_name"]],
// (string) $teacher_master_fields["email"] => null,
// (string) $teacher_master_fields["phone"] => null,
// (string) $teacher_master_fields["volunteer_preference"] => null,
// (string) $teacher_master_fields["volunteer_time"] => null,
// (string) $teacher_master_fields["students"] => array($student_hash),
// (string) $teacher_master_fields["is_judging"] => null,
// (string) $teacher_master_fields["hash"] => null
// );
// $teacher_result = GFAPI::add_entries($new_teacher_entry, $related_forms[ARIA_Registration_Handler::$TEACHER_FORM]);
// if (is_wp_error($teacher_result)) {
// wp_die($teacher_result->get_error_message());
// }
// }
// Make a new student master entry with the student hash
$new_student_master_entry = array(array((string) $student_master_fields["parent_email"] => $entry[(string) $student_fields["parent_email"]], (string) $student_master_fields["student_birthday"] => $entry[(string) $student_fields["student_birthday"]], (string) $student_master_fields["teacher_name"] => $entry[(string) $student_fields["teacher_name"]], (string) $student_master_fields["not_listed_teacher_name"] => $entry[(string) $student_fields["not_listed_teacher_name"]], (string) $student_master_fields["available_festival_days"] => $entry[(string) $student_fields["available_festival_days"]], (string) $student_master_fields["preferred_command_performance"] => $entry[(string) $student_fields["preferred_command_performance"]], (string) $student_master_fields["song_1_period"] => $entry[(string) $student_fields["song_1_period"]], (string) $student_master_fields["song_1_composer"] => $entry[(string) $student_fields["song_1_composer"]], (string) $student_master_fields["song_1_selection"] => $entry[(string) $student_fields["song_1_selection"]], (string) $student_master_fields["song_2_period"] => $entry[(string) $student_fields["song_2_period"]], (string) $student_master_fields["song_2_composer"] => $entry[(string) $student_fields["song_2_composer"]], (string) $student_master_fields["song_2_selection"] => $entry[(string) $student_fields["song_2_selection"]], (string) $student_master_fields["theory_score"] => $entry[(string) $student_fields["theory_score"]], (string) $student_master_fields["alternate_theory"] => $entry[(string) $student_fields["alternate_theory"]], (string) $student_master_fields["competition_format"] => $entry[(string) $student_fields["competition_format"]], (string) $student_master_fields["timing_of_pieces"] => $entry[(string) $student_fields["timing_of_pieces"]], (string) $student_master_fields["hash"] => $student_hash));
$student_result = GFAPI::add_entries($new_student_master_entry, $related_forms['student_master_form_id']);
if (is_wp_error($student_result)) {
wp_die($student_result->get_error_message());
}
}
示例9: aria_add_music_from_csv
/**
* This function will parse the contents of the csv file and upload content to
* the NNMTA music database.
*
* Using the csv file that the user has uploaded, this function will parse
* through the music content for each song and add it to the NNMTA music
* database.
*
* @param Entry Object $entry The entry object from the upload form.
* @param Form Object $form The form object that contains $entry.
*
* @since 1.0.0
* @author KREW
*/
public static function aria_add_music_from_csv($entry, $form)
{
// check if the form for uploading exists
$music_db_form_id = ARIA_API::aria_get_nnmta_database_form_id();
if ($music_db_form_id === -1) {
self::aria_create_nnmta_music_form();
}
$num_song_elements_no_catalog = 5;
$num_song_elements_with_catalog = $num_song_elements_no_catalog + 1;
$num_songs = 0;
// locate the full path of the csv file
$csv_music_file = ARIA_API::aria_get_music_csv_file_path($entry, $form);
//wp_die("Music file path: " . $csv_music_file);
// parse csv file and add all music data to an array
$all_songs = array();
if (($file_ptr = fopen($csv_music_file, "r")) !== FALSE) {
// remove all data that is already in the database
//aria_remove_all_music_from_nnmta_database();
// add new music
while (($single_song_data = fgetcsv($file_ptr, 1000, ",")) !== FALSE) {
$single_song = array();
for ($i = 1; $i <= 5; $i++) {
//count($single_song_data); $i++) {
$single_song[strval($i)] = $single_song_data[$i - 1];
}
$all_songs[] = $single_song;
/*
// no catalog
if (count($single_song_data) === $num_song_elements_no_catalog) {
$all_songs[] = array (
'1' => $single_song_data[0],
'2' => $single_song_data[1],
'3' => $single_song_data[2],
'4' => $single_song_data[3],
'5' => $single_song_data[4],
);
}
// with catalog
elseif (count($single_song_data) === $num_song_elements_with_catalog) {
$all_songs[] = array (
'1' => $single_song_data[0],
'2' => $single_song_data[1],
'3' => $single_song_data[2],
'4' => $single_song_data[3],
'5' => $single_song_data[4],
'6' => $single_song_data[5],
);
}
*/
}
} else {
wp_die("Error: File named " . $csv_music_file . " does not exist.");
}
//wp_die(print_r($all_songs));
// add all song data from array into the database
$new_song_ids = GFAPI::add_entries($all_songs, ARIA_API::aria_get_nnmta_database_form_id());
if (is_wp_error($new_song_ids)) {
wp_die($new_song_ids->get_error_message());
}
// remove filename from upload folder
//print_r($all_songs);
unlink($csv_music_file);
unset($all_songs);
}
示例10: create_entries
/**
* Add the entries to be used in the testing process
*/
private function create_entries()
{
$entries = json_decode('[{"form_id":"58","date_created":"2015-01-20 01:15:58","is_starred":0,"is_read":1,"ip":"124.183.82.7","source_url":"http:\\/\\/example.org\\/?gf_page=preview&id=58","post_id":"364","currency":"USD","payment_status":null,"payment_date":null,"transaction_id":null,"payment_amount":null,"payment_method":null,"is_fulfilled":null,"created_by":"1","transaction_type":null,"user_agent":"Mozilla\\/5.0 (Windows NT 6.1; WOW64; rv:35.0) Gecko\\/20100101 Firefox\\/35.0","status":"active","1":"My Single Line Response","2":"My paragraph text response over...\\r\\n\\r\\nMultiple lines.","3":"Option 3 Value","4":"Second Choice,Third Choice","5":"50032145","6.2":"Checkbox Choice 2","6.3":"Checkbox Choice 3","7":"Radio Second Choice","8":"hidden field value","11.2":"Mr.","11.3":"Jake","11.4":"Middle","11.6":"Jackson","11.8":"MD","12":"2015-01-01","13":"10:30 am","14":"(555) 678-1210","15.1":"12 Address St","15.2":"Line 2","15.3":"Cityville","15.4":"Statesman","15.5":"5000","15.6":"Chad","16":"https:\\/\\/gravitypdf.com","17":"support@gravitypdf.com","18":"http:\\/\\/example.org\\/wp-content\\/uploads\\/gravity_forms\\/58-8f4de538fff188d8557c12d830a38810\\/2015\\/01\\/gravityforms-export-2015-01-14.xml","19":"[\\"http:\\\\/\\\\/example.org\\\\/wp-content\\\\/uploads\\\\/gravity_forms\\\\/58-8f4de538fff188d8557c12d830a38810\\\\/2015\\\\/01\\\\/CPC-JAKE.docx\\",\\"http:\\\\/\\\\/example.org\\\\/wp-content\\\\/uploads\\\\/gravity_forms\\\\/58-8f4de538fff188d8557c12d830a38810\\\\/2015\\\\/01\\\\/Tent-Cards.pdf\\"]","20":"a:3:{i:0;s:20:\\"List Item Response 1\\";i:1;s:20:\\"List Item Response 2\\";i:2;s:20:\\"List Item Response 3\\";}","21":"a:2:{i:0;a:3:{s:8:\\"Column 1\\";s:19:\\"List Response Col 1\\";s:8:\\"Column 2\\";s:19:\\"List Response Col 2\\";s:8:\\"Column 3\\";s:19:\\"List Response Col 3\\";}i:1;a:3:{s:8:\\"Column 1\\";s:22:\\"List Response #2 Col 1\\";s:8:\\"Column 2\\";s:22:\\"List Response #2 Col 2\\";s:8:\\"Column 3\\";s:22:\\"List Response #2 Col 3\\";}}","22":"gpoll22daaa4947","23":"gpoll23ee2a7382","41.1":"gpoll23517d6a14","41.2":"gpoll23ee2a7382","41.3":"gpoll232553ed18","24":"gquiz240836e68a","42":"gquiz24c91cc7af","43.2":"gquiz240836e68a","25":"54bdac4ed24af5.01502579.png","26":"glikertcol2636762f85","27.1":"glikertrowb9cfdef9:glikertcol27c274ea49","27.2":"glikertrow5b6e1800:glikertcol27114a23c1","27.3":"glikertrowa5b5f578:glikertcol27cb066f8a","27.4":"glikertrow27a6d5ef:glikertcol275bb3ab84","27.5":"glikertrowd17a261b:glikertcol275bb3ab84","44":"grank44902be0db,grank447f27daf1,grank440c3f3227,grank44ef548e7b,grank444f7bdfe0","45":"grating45c8a62ee6","46":"gsurvey46baa416f0","47.1":"gsurvey47526e8c41","47.2":"gsurvey47b70bdcfd","48":"Survey Field Single Line Response","49":"Paragraph survey field response...","50":"gsurvey50792465b4","28":"My Post Title","29":"My Post Excerpt","30":"tag1, tag2, tag3","31":"Test Category 2:30","32":"http:\\/\\/example.org\\/wp-content\\/uploads\\/gravity_forms\\/58-8f4de538fff188d8557c12d830a38810\\/2015\\/01\\/one1-500x381.jpg|:|Post Image Title|:|Post Image caption|:|Post Image Description","33":"post_custom_field","34.1":"Product Basic","34.2":"$30.00","34.3":"3","35":"DD - Second Choice|10","51":"Radio - Second Choice|10","52":"$30.00","53.1":"Hidden Price","53.2":"$50.00","36":"6","37":"Option 2|30","38.1":"Cal - Option 1|7.95","38.2":"Cal - Option 2|12.1","39":"Regular|30","54.1":"Calculation Price","54.2":"$40.00","54.3":"5","40":"860.25","6.1":"","9":"","10":"","43.1":"","43.3":"","47.3":"","53.3":"","38.3":"","gquiz_score":"2","gquiz_percent":"40","gquiz_grade":"E","gquiz_is_pass":"0"},{"id":"955","form_id":"58","date_created":"2015-01-23 07:59:48","is_starred":0,"is_read":0,"ip":"124.183.82.7","source_url":"http:\\/\\/example.org\\/?gf_page=preview&id=58","post_id":"367","currency":"USD","payment_status":null,"payment_date":null,"transaction_id":null,"payment_amount":null,"payment_method":null,"is_fulfilled":null,"created_by":"1","transaction_type":null,"user_agent":"Mozilla\\/5.0 (Windows NT 6.1; WOW64; rv:35.0) Gecko\\/20100101 Firefox\\/35.0","status":"active","3":"Option 2","8":"hidden field value","22":"gpoll22daaa4947","23":"gpoll23ee2a7382","24":"gquiz24a1a78951","26":"glikertcol26a40c345c","27.1":"glikertrowb9cfdef9:glikertcol27cb066f8a","27.2":"glikertrow5b6e1800:glikertcol27c274ea49","27.3":"glikertrowa5b5f578:glikertcol275bb3ab84","27.4":"glikertrow27a6d5ef:glikertcol27114a23c1","27.5":"glikertrowd17a261b:glikertcol27573469fe","31":"Uncategorized:1","34.1":"Product Basic","34.2":"$30.00","35":"DD - First Choice|5","37":"Option 1|20","39":"Express|20","40":"25","41.2":"gpoll23ee2a7382","41.3":"gpoll232553ed18","42":"gquiz24c91cc7af","43.2":"gquiz240836e68a","44":"grank44ef548e7b,grank440c3f3227,grank447f27daf1,grank444f7bdfe0,grank44902be0db","45":"grating4581a9f8d2","46":"gsurvey46baa416f0","47.2":"gsurvey47b70bdcfd","47.3":"gsurvey47faae3091","48":"Survey Field Single Line Response 123","49":"Paragraph Survey Field...","50":"gsurvey50792465b4","53.1":"Hidden Price","53.2":"$50.00","54.1":"Calculation Price","54.2":"$40.00","1":"","2":"","4":"","5":"","6.1":"","6.2":"","6.3":"","7":"","9":"","10":"","11.2":"","11.3":"","11.4":"","11.6":"","11.8":"","12":"","13":"","14":"","15.1":"","15.2":"","15.3":"","15.4":"","15.5":"","15.6":"","16":"","17":"","18":"","19":"","20":"","21":"","41.1":"","43.1":"","43.3":"","25":"","47.1":"","28":"","29":"","30":"","32":"","33":"","34.3":"","51":"","52":"","53.3":"","54.3":"","36":"","38.1":"","38.2":"","38.3":"","gquiz_score":"1","gquiz_percent":"20","gquiz_grade":"E","gquiz_is_pass":"0"},{"id":"956","form_id":"58","date_created":"2015-01-23 08:00:31","is_starred":0,"is_read":0,"ip":"124.183.82.7","source_url":"http:\\/\\/example.org\\/?gf_page=preview&id=58","post_id":"368","currency":"USD","payment_status":null,"payment_date":null,"transaction_id":null,"payment_amount":null,"payment_method":null,"is_fulfilled":null,"created_by":"1","transaction_type":null,"user_agent":"Mozilla\\/5.0 (Windows NT 6.1; WOW64; rv:35.0) Gecko\\/20100101 Firefox\\/35.0","status":"active","3":"Option 2","8":"hidden field value","22":"gpoll220a301dd5","23":"gpoll23517d6a14","24":"gquiz24a1a78951","26":"glikertcol2648e6c579","27.1":"glikertrowb9cfdef9:glikertcol27573469fe","27.2":"glikertrow5b6e1800:glikertcol27573469fe","27.3":"glikertrowa5b5f578:glikertcol27573469fe","27.4":"glikertrow27a6d5ef:glikertcol27114a23c1","27.5":"glikertrowd17a261b:glikertcol27114a23c1","31":"Uncategorized:1","34.1":"Product Basic","34.2":"$30.00","35":"DD - First Choice|5","37":"Option 1|20","39":"Express|20","40":"25","41.1":"gpoll23517d6a14","41.2":"gpoll23ee2a7382","42":"gquiz24c91cc7af","43.2":"gquiz240836e68a","44":"grank440c3f3227,grank44ef548e7b,grank44902be0db,grank444f7bdfe0,grank447f27daf1","45":"grating4594b2edee","46":"gsurvey4641726850","47.2":"gsurvey47b70bdcfd","47.3":"gsurvey47faae3091","48":"Single Line","49":"Paragraph Survey Field","50":"gsurvey50d4b6b7b1","53.1":"Hidden Price","53.2":"$50.00","54.1":"Calculation Price","54.2":"$40.00","1":"","2":"","4":"","5":"","6.1":"","6.2":"","6.3":"","7":"","9":"","10":"","11.2":"","11.3":"","11.4":"","11.6":"","11.8":"","12":"","13":"","14":"","15.1":"","15.2":"","15.3":"","15.4":"","15.5":"","15.6":"","16":"","17":"","18":"","19":"","20":"","21":"","41.3":"","43.1":"","43.3":"","25":"","47.1":"","28":"","29":"","30":"","32":"","33":"","34.3":"","51":"","52":"","53.3":"","54.3":"","36":"","38.1":"","38.2":"","38.3":"","gquiz_score":"1","gquiz_percent":"20","gquiz_grade":"E","gquiz_is_pass":"0"},{"id":"957","form_id":"58","date_created":"2015-01-23 08:01:00","is_starred":0,"is_read":0,"ip":"124.183.82.7","source_url":"http:\\/\\/example.org\\/?gf_page=preview&id=58","post_id":"369","currency":"USD","payment_status":null,"payment_date":null,"transaction_id":null,"payment_amount":null,"payment_method":null,"is_fulfilled":null,"created_by":"1","transaction_type":null,"user_agent":"Mozilla\\/5.0 (Windows NT 6.1; WOW64; rv:35.0) Gecko\\/20100101 Firefox\\/35.0","status":"active","3":"Option 2","8":"hidden field value","22":"gpoll22daaa4947","23":"gpoll23ee2a7382","24":"gquiz24c91cc7af","26":"glikertcol26a40c345c","27.1":"glikertrowb9cfdef9:glikertcol27c274ea49","27.2":"glikertrow5b6e1800:glikertcol27c274ea49","27.3":"glikertrowa5b5f578:glikertcol27c274ea49","27.4":"glikertrow27a6d5ef:glikertcol27114a23c1","27.5":"glikertrowd17a261b:glikertcol27114a23c1","31":"Uncategorized:1","34.1":"Product Basic","34.2":"$30.00","35":"DD - First Choice|5","37":"Option 1|20","39":"Express|20","40":"25","41.1":"gpoll23517d6a14","41.2":"gpoll23ee2a7382","41.3":"gpoll232553ed18","42":"gquiz24c91cc7af","43.1":"gquiz24c91cc7af","43.2":"gquiz240836e68a","43.3":"gquiz24a1a78951","44":"grank44ef548e7b,grank440c3f3227,grank444f7bdfe0,grank44902be0db,grank447f27daf1","45":"grating45c8a62ee6","46":"gsurvey4641726850","47.1":"gsurvey47526e8c41","47.2":"gsurvey47b70bdcfd","47.3":"gsurvey47faae3091","50":"gsurvey50e71aa478","53.1":"Hidden Price","53.2":"$50.00","54.1":"Calculation Price","54.2":"$40.00","1":"","2":"","4":"","5":"","6.1":"","6.2":"","6.3":"","7":"","9":"","10":"","11.2":"","11.3":"","11.4":"","11.6":"","11.8":"","12":"","13":"","14":"","15.1":"","15.2":"","15.3":"","15.4":"","15.5":"","15.6":"","16":"","17":"","18":"","19":"","20":"","21":"","25":"","48":"","49":"","28":"","29":"","30":"","32":"","33":"","34.3":"","51":"","52":"","53.3":"","54.3":"","36":"","38.1":"","38.2":"","38.3":"","gquiz_score":"3","gquiz_percent":"60","gquiz_grade":"D","gquiz_is_pass":"1"},{"id":"958","form_id":"58","date_created":"2015-01-23 08:02:20","is_starred":0,"is_read":0,"ip":"124.183.82.7","source_url":"http:\\/\\/example.org\\/?gf_page=preview&id=58","post_id":"370","currency":"USD","payment_status":null,"payment_date":null,"transaction_id":null,"payment_amount":null,"payment_method":null,"is_fulfilled":null,"created_by":"1","transaction_type":null,"user_agent":"Mozilla\\/5.0 (Windows NT 6.1; WOW64; rv:35.0) Gecko\\/20100101 Firefox\\/35.0","status":"active","3":"Option 2","8":"hidden field value","23":"gpoll232553ed18","24":"gquiz24c91cc7af","31":"Uncategorized:1","34.1":"Product Basic","34.2":"$30.00","35":"DD - First Choice|5","37":"Option 1|20","39":"Express|20","40":"25","42":"gquiz240836e68a","43.2":"gquiz240836e68a","43.3":"gquiz24a1a78951","44":"grank44ef548e7b,grank440c3f3227,grank444f7bdfe0,grank44902be0db,grank447f27daf1","50":"gsurvey50e71aa478","53.1":"Hidden Price","53.2":"$50.00","54.1":"Calculation Price","54.2":"$40.00","1":"","2":"","4":"","5":"","6.1":"","6.2":"","6.3":"","7":"","9":"","10":"","11.2":"","11.3":"","11.4":"","11.6":"","11.8":"","12":"","13":"","14":"","15.1":"","15.2":"","15.3":"","15.4":"","15.5":"","15.6":"","16":"","17":"","18":"","19":"","20":"","21":"","22":"","41.1":"","41.2":"","41.3":"","43.1":"","25":"","26":"","27.1":"","27.2":"","27.3":"","27.4":"","27.5":"","45":"","46":"","47.1":"","47.2":"","47.3":"","48":"","49":"","28":"","29":"","30":"","32":"","33":"","34.3":"","51":"","52":"","53.3":"","54.3":"","36":"","38.1":"","38.2":"","38.3":"","gquiz_score":"5","gquiz_percent":"100","gquiz_grade":"A","gquiz_is_pass":"1"},{"id":"959","form_id":"58","date_created":"2015-01-23 08:02:24","is_starred":0,"is_read":0,"ip":"124.183.82.7","source_url":"http:\\/\\/example.org\\/?gf_page=preview&id=58","post_id":"371","currency":"USD","payment_status":null,"payment_date":null,"transaction_id":null,"payment_amount":null,"payment_method":null,"is_fulfilled":null,"created_by":"1","transaction_type":null,"user_agent":"Mozilla\\/5.0 (Windows NT 6.1; WOW64; rv:35.0) Gecko\\/20100101 Firefox\\/35.0","status":"active","3":"Option 2","8":"hidden field value","23":"gpoll232553ed18","24":"gquiz24c91cc7af","31":"Uncategorized:1","34.1":"Product Basic","34.2":"$30.00","35":"DD - First Choice|5","37":"Option 1|20","39":"Express|20","40":"25","42":"gquiz240836e68a","43.2":"gquiz240836e68a","43.3":"gquiz24a1a78951","44":"grank44ef548e7b,grank440c3f3227,grank444f7bdfe0,grank44902be0db,grank447f27daf1","50":"gsurvey50e71aa478","53.1":"Hidden Price","53.2":"$50.00","54.1":"Calculation Price","54.2":"$40.00","1":"","2":"","4":"","5":"","6.1":"","6.2":"","6.3":"","7":"","9":"","10":"","11.2":"","11.3":"","11.4":"","11.6":"","11.8":"","12":"","13":"","14":"","15.1":"","15.2":"","15.3":"","15.4":"","15.5":"","15.6":"","16":"","17":"","18":"","19":"","20":"","21":"","22":"","41.1":"","41.2":"","41.3":"","43.1":"","25":"","26":"","27.1":"","27.2":"","27.3":"","27.4":"","27.5":"","45":"","46":"","47.1":"","47.2":"","47.3":"","48":"","49":"","28":"","29":"","30":"","32":"","33":"","34.3":"","51":"","52":"","53.3":"","54.3":"","36":"","38.1":"","38.2":"","38.3":"","gquiz_score":"5","gquiz_percent":"100","gquiz_grade":"A","gquiz_is_pass":"1"}]', true);
$results = GFAPI::add_entries($entries, $this->form_id[0]);
$this->entries = $results;
}