nggImage

This is a wrapper class to the C_Image_Wrapper which provides all of the necessary logic for retrieving attributes as needed.

Defined (1)

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

/products/photocrati_nextgen/modules/ngglegacy/lib/image.php  
  1. class nggImage extends Ngg_Serializable 
  2. public $_ngiw; 
  3. public $_propogate = TRUE; 
  4.  
  5.  
  6. // TODO: Make nggImage a subclass of C_Component and use the wrapper functionality 
  7. function __construct($image) 
  8. $image->meta_data = $this->unserialize($image->meta_data); 
  9. C_Component_Registry::get_instance(); 
  10. $this->_ngiw = new C_Image_Wrapper($image, NULL, TRUE); 
  11.  
  12. public function __set($name, $value) 
  13. $this->$name = $value; 
  14. if ($this->_propogate) 
  15. $this->_ngiw->__set($name, $value); 
  16.  
  17. public function __isset($name) 
  18. return $this->_ngiw->__isset($name); 
  19.  
  20. public function __unset($name) 
  21. return $this->_ngiw->__unset($name); 
  22.  
  23. public function __get($name) 
  24. $this->_propogate = FALSE; 
  25. $this->$name = $this->_ngiw->__get($name); 
  26. $this->_propogate = TRUE; 
  27. return $this->$name; 
  28.  
  29. function get_thumbcode($galleryname = '') 
  30. return $this->_ngiw->get_thumbcode($galleryname); 
  31.  
  32. function get_href_link() 
  33. return $this->_ngiw->get_href_link(); 
  34.  
  35. function get_href_thumb_link() 
  36. return $this->_ngiw->get_href_thumb_link(); 
  37.  
  38. function cached_singlepic_file($width = '', $height = '', $mode = '' ) 
  39. return $this->_ngiw->cached_singlepic_file($width, $height, $mode); 
  40.  
  41. function get_tags() 
  42. return $this->_ngiw->get_tags(); 
  43.  
  44. function get_permalink() 
  45. return $this->_ngiw->get_permalink(); 
  46.