JOOMLA中国
  • Joomla中国首页
  • 社区
  • 教程
  • 应用市场
  • B计划
Joomla! Framework TM
  • Namespace
  • Class
  • Tree
  • Deprecated

Namespaces

  • Composer
    • Autoload
  • Joomla
    • Application
      • Cli
        • Output
          • Processor
      • Web
    • Data
    • DI
      • Exception
    • Event
    • Filter
    • Input
    • Ldap
    • Registry
      • Format
    • Session
      • Storage
    • String
    • Uri
    • Utilities
  • None
  • PasswordCompat
    • binary
  • PHP
  • Psr
    • Log
  • Symfony
    • Component
      • Yaml
        • Exception
    • Polyfill
      • Util

Classes

  • AbstractRegistryFormat
  • Factory
  • Registry

Interfaces

  • FormatInterface
 1 <?php
 2 /**
 3  * Part of the Joomla Framework Registry Package
 4  *
 5  * @copyright  Copyright (C) 2005 - 2016 Open Source Matters, Inc. All rights reserved.
 6  * @license    GNU General Public License version 2 or later; see LICENSE
 7  */
 8 
 9 namespace Joomla\Registry;
10 
11 /**
12  * Abstract Format for Registry
13  *
14  * @since       1.0
15  * @deprecated  2.0  Format objects should directly implement the FormatInterface
16  */
17 abstract class AbstractRegistryFormat implements FormatInterface
18 {
19     /**
20      * @var    AbstractRegistryFormat[]  Format instances container.
21      * @since  1.0
22      * @deprecated  2.0  Object caching will no longer be supported
23      */
24     protected static $instances = array();
25 
26     /**
27      * Returns a reference to a Format object, only creating it
28      * if it doesn't already exist.
29      *
30      * @param   string  $type     The format to load
31      * @param   array   $options  Additional options to configure the object
32      *
33      * @return  AbstractRegistryFormat  Registry format handler
34      *
35      * @deprecated  2.0  Use Factory::getFormat() instead
36      * @since   1.0
37      * @throws  \InvalidArgumentException
38      */
39     public static function getInstance($type, array $options = array())
40     {
41         return Factory::getFormat($type, $options);
42     }
43 }
44 
Joomla! Framework TM API documentation generated by ApiGen 2.8.0
Joomla!® and Joomla! Framework™ are trademarks of Open Source Matters, Inc. in the United States and other countries.