Caldera_Forms_Entry_Meta

Object representation of an entry meta - cf_entry_meta.

Defined (1)

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

/classes/entry/meta.php  
  1. class Caldera_Forms_Entry_Meta extends Caldera_Forms_Entry_Object { 
  2.  
  3. /** @var string */ 
  4. protected $meta_id; 
  5.  
  6. /** @var string */ 
  7. protected $entry_id; 
  8.  
  9. /** @var string */ 
  10. protected $process_id; 
  11.  
  12. /** @var string */ 
  13. protected $meta_key; 
  14.  
  15. /** @var string|array */ 
  16. protected $meta_value; 
  17.  
  18. /** 
  19. * Apply deserialization/json_decoding if needed to meta_value column 
  20. * @since 1.4.0 
  21. * @param string $value Meta value 
  22. */ 
  23. protected function meta_value_set( $value ) { 
  24. if( is_array( $value ) ) { 
  25. $this->meta_value = $value; 
  26. } elseif( is_serialized( $value ) ) { 
  27. $this->meta_value = unserialize( $value ); 
  28. }elseif( 0 === strpos( $value, '{' ) && is_object( $_value = json_decode( $value ) ) ) { 
  29. $this->meta_value = (array) $_value; 
  30. }else{ 
  31. $this->meta_value = $value; 
  32.