C_Photocrati_Global_Settings_Manager

The NextGEN Gallery C Photocrati Global Settings Manager class.

Defined (1)

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

/non_pope/class.photocrati_settings_manager.php  
  1. class C_Photocrati_Global_Settings_Manager extends C_Photocrati_Settings_Manager_Base 
  2. static $_instance = NULL; 
  3. public static function get_instance() 
  4. if (is_null(self::$_instance)) { 
  5. $klass = get_class(); 
  6. self::$_instance = new $klass(); 
  7. return self::$_instance; 
  8.  
  9. function save() 
  10. return update_site_option(self::$option_name, $this->to_array()); 
  11.  
  12. function load() 
  13. $this->_options = get_site_option(self::$option_name, $this->to_array()); 
  14. if (!$this->_options) $this->_options = array(); 
  15. else if (is_string($this->_options)) $this->_options = unserialize($this->_options); 
  16.  
  17. function destroy() 
  18. return delete_site_option(self::$option_name);