tangra logo
   
[ class tree: tangra_lib ] [ index: tangra_lib ] [ all elements ]
 

Source for file tangra_module_installer_run.class.php

Documentation is available at tangra_module_installer_run.class.php

  1. <?php
  2. // *** Tangra (Application Framework and Tools for PHP)
  3. // $Id$
  4. //
  5.  
  6. /**
  7.  * Contains class Tangra_Module_Installer_Run
  8.  *
  9.  * @package  tangra_lib
  10.  * @subpackage  modules_manager
  11.  */
  12.  
  13. /**
  14.  *
  15.  */
  16. require_once('tangra_module_installer.class.php');
  17.  
  18.  
  19. /**
  20.  * Tangra_Module_Installer_Run encapsulates calls to Tangra_Module_Installer methods pre_install, install, post_install
  21.  *
  22.  * @package  tangra_lib
  23.  * @subpackage  modules_manager
  24.  */
  25.     /**
  26.      * Tangra_Module_Installer instance
  27.      *
  28.      * @var Tangra_Module_Installer 
  29.      */
  30.     protected $module_installer;
  31.  
  32.     /**
  33.      * Construtor
  34.      *
  35.      * @param Tangra_Module_Installer $tmi Tangra_Module_Installer object
  36.      */
  37.     function __construct(Tangra_Module_Installer $tmi{
  38.         $this->module_installer = $tmi;
  39.     }
  40.  
  41.  
  42.     /**
  43.      * Actual installation of module
  44.      *
  45.      */
  46.     public function run({
  47.         $this->module_installer->pre_install();
  48.         $this->module_installer->install();
  49.         $this->module_installer->post_install();
  50.     }
  51. }