declare $_instances member, phpdoc
authorMichael J. Rubinsky <mrubinsk@horde.org>
Wed, 12 Jan 2011 15:56:46 +0000 (10:56 -0500)
committerMichael J. Rubinsky <mrubinsk@horde.org>
Wed, 12 Jan 2011 19:45:28 +0000 (14:45 -0500)
framework/Core/lib/Horde/Core/Factory/ShareBase.php

index 0a3fb21..fc2a851 100644 (file)
  */
 class Horde_Core_Factory_ShareBase
 {
+    /**
+     * Local cache of created share instances.
+     *
+     * @var array
+     */
+    protected $_instances;
+
+    /**
+     * Returns the share driver instance.
+     *
+     * @param string $app     The application scope of the share. If empty, default
+     *                        to current application.
+     * @param string $driver  The storage driver to use. If empty, use the
+     *                        globally configured storage driver.
+     *
+     * @return Horde_Share  The share driver instance.
+     */
     public function create($app = null, $driver = null)
     {
         if (empty($driver)) {