GFPDF_Deprecated_Abstract

Add's an easy deprecated class abstract fallback.

Defined (1)

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

/src/deprecated.php  
  1. abstract class GFPDF_Deprecated_Abstract { 
  2.  
  3. /** 
  4. * Add user deprecated notice for missing methods 
  5. * @since 4.0 
  6. * @param string $name The function name to be called 
  7. * @param array $arguments An enumerated array containing the parameters passed to the $name'ed method 
  8. */ 
  9. public function __call( $name, $arguments ) { 
  10. trigger_error( sprintf( esc_html__( '"%s" has been deprecated as of Gravity PDF 4.0', 'gravity-forms-pdf-extended' ), $name ), E_USER_DEPRECATED ); 
  11.  
  12. /** 
  13. * Add user deprecated notice for missing methods 
  14. * @since 4.0 
  15. * @param string $name The function name to be called 
  16. * @param array $arguments An enumerated array containing the parameters passed to the $name'ed method 
  17. */ 
  18. public static function __callStatic( $name, $arguments ) { 
  19. trigger_error( sprintf( esc_html__( '"%s" has been deprecated as of Gravity PDF 4.0', 'gravity-forms-pdf-extended' ), $name ), E_USER_DEPRECATED );