GFPDF_Core_Model

The Gravity PDF GFPDF Core Model class.

Defined (1)

The class is defined in the following location(s).

/src/deprecated.php  
  1. class GFPDF_Core_Model extends GFPDF_Deprecated_Abstract { 
  2.  
  3. /** 
  4. * This method will save any PDFs assigned to a form to disk 
  5. * @param $entry 
  6. * @param $form 
  7. * @since 3.0 
  8. */ 
  9. public static function gfpdfe_save_pdf( $entry, $form ) { 
  10. $pdfs = GPDFAPI::get_form_pdfs( $form['id'] ); 
  11.  
  12. if ( ! is_wp_error( $pdfs ) ) { 
  13. foreach ( $pdfs as $pdf ) { 
  14. GPDFAPI::create_pdf( $entry['id'], $pdf['id'] );