C_Fs

Class C_Fs.

Defined (1)

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

/products/photocrati_nextgen/modules/fs/package.module.fs.php  
  1. class C_Fs extends C_Component 
  2. static $_instances = array(); 
  3. var $_document_root; 
  4. /** 
  5. * Gets an instance of the FS utility 
  6. * @param mixed $context 
  7. * @return C_Fs 
  8. */ 
  9. static function &get_instance($context = FALSE) 
  10. if (!isset(self::$_instances[$context])) { 
  11. $klass = get_class(); 
  12. self::$_instances[$context] = new $klass($context); 
  13. return self::$_instances[$context]; 
  14. /** 
  15. * Defines the instance of the FS utility 
  16. * @param mixed $context the context in this case is the product 
  17. */ 
  18. function define($context = FALSE) 
  19. parent::define($context); 
  20. $this->add_mixin('Mixin_Fs_Instance_Methods'); 
  21. $this->implement('I_Fs'); 
  22. function initialize() 
  23. parent::initialize(); 
  24. $this->_document_root = $this->set_document_root(ABSPATH);