Beispiel #1
0
 /**
  * Constructor
  *
  * @param   JInstaller       $parent   Parent object
  * @param   JDatabaseDriver  $db       Database object
  * @param   array            $options  Configuration Options
  *
  * @since   3.4
  */
 public function __construct(JInstaller $parent, JDatabaseDriver $db, array $options = array())
 {
     parent::__construct($parent, $db, $options);
     // Get a generic JTableExtension instance for use if not already loaded
     if (!$this->extension instanceof JTableInterface) {
         $this->extension = JTable::getInstance('extension');
     }
     // Sanity check, make sure the type is set by taking the adapter name from the class name
     if (!$this->type) {
         $this->type = strtolower(str_replace('JInstallerAdapter', '', get_called_class()));
     }
 }