Overview

Packages

  • Gollem
  • None

Classes

  • Gollem
  • Gollem_Ajax_Application
  • Gollem_Api
  • Gollem_Auth
  • Gollem_Exception
  • Gollem_Factory_Vfs
  • Gollem_Factory_VfsDefault
  • Gollem_LoginTasks_SystemTask_Upgrade
  • Gollem_Test
  • Overview
  • Package
  • Class
  • Tree
 1: <?php
 2: /**
 3:  * A Horde_Injector based Horde_Vfs factory.
 4:  *
 5:  * @author   Jan Schneider <jan@horde.org>
 6:  * @category Horde
 7:  * @license  http://www.horde.org/licenses/gpl GPL
 8:  * @package  Gollem
 9:  */
10: 
11: /**
12:  * A Horde_Injector based Horde_Vfs factory.
13:  *
14:  * Copyright 2011-2012 Horde LLC (http://www.horde.org/)
15:  *
16:  * See the enclosed file COPYING for license information (GPL). If you
17:  * did not receive this file, see http://www.horde.org/licenses/gpl.
18:  *
19:  * @author   Jan Schneider <jan@horde.org>
20:  * @category Horde
21:  * @license  http://www.horde.org/licenses/gpl GPL
22:  * @package  Gollem
23:  */
24: class Gollem_Factory_VfsDefault extends Horde_Core_Factory_Injector
25: {
26:     /**
27:      * Returns the VFS object for the currently active backend.
28:      *
29:      * @return Horde_Vfs  The VFS object.
30:      * @throws Horde_Exception
31:      */
32:     public function create(Horde_Injector $injector)
33:     {
34:         return $injector
35:             ->getInstance('Gollem_Factory_Vfs')
36:             ->create($GLOBALS['session']->get('gollem', 'backend_key'));
37:     }
38: }
39: 
API documentation generated by ApiGen