Documentation


SEARCH

TABLE OF CONTENT

    1. Getting started 2. Basic concepts 3. Request dispatching 4. Context container 5. Dual MVC 6. Component model: 7. Security 8. Configuration 9. Session handling 10. I18n 11. Cache 12. Logging 13. Error handling 14. Advanced Topics 15. API reference

      Tutorials: Frequently Asqued Questions

      See also:


      Class: __ComponentPool


      Class Overview

      This file is part of lion framework.

      Copyright (c) 2010 Antonio Parraga Navarro

      Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

      The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

      THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.


      Author:  Antonio Parraga Navarro
      Version:  1.4
      Copyright:  Copyright (c) 2010 Antonio Parraga Navarro
      Link:  http://www.lionframework.org
      License:  http://www.lionframework.org/license.html
      
      
      				

      Methods

      [ Top ]

      Method Summary

      __IComponent   &getComponent()   Gets a component associated with a given identifier
      __ComponentPool   &getInstance()   Gets a reference to the singleton __ComponentPool instance
      bool   hasComponent()   Checks if exists a component with a given identifier
      void   registerComponent()   Register a component in the current pool.
      void   unregisterComponent()   Unregister a given component

      [ Top ]

      Methods

      getComponent


        __IComponent &getComponent( string $component_id  )

      Gets a component associated with a given identifier


      Parameters:
      TypeNameDescription
      string $component_id The component identifier

      Access:  public



      getInstance


        __ComponentPool &getInstance( )

      Gets a reference to the singleton __ComponentPool instance

      Access:  public



      hasComponent


        bool hasComponent( string $component_id  )

      Checks if exists a component with a given identifier


      Parameters:
      TypeNameDescription
      string $component_id The component identifier

      Access:  public



      registerComponent


        void registerComponent( __IComponent &$component  )

      Register a component in the current pool.

      If there is already a component with same identifier in the pool, it will be unregister and reasigned.



      Parameters:
      TypeNameDescription
      __IComponent &$component The component to set to.

      Access:  public



      unregisterComponent


        void unregisterComponent( $component_id, __IComponent $component  )

      Unregister a given component


      Parameters:
      TypeNameDescription
      $component_id
      __IComponent $component The component to unregister from

      Access:  public