Actions

API16

JInstaller/setupInstall

From Joomla! Documentation

< API16:JInstaller
Revision as of 22:00, 13 May 2013 by JoomlaWikiBot (Talk | contribs)

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Replacement filing cabinet.png
This Namespace has been archived - Please Do Not Edit or Create Pages in this namespace. Pages contain information for a Joomla! version which is no longer supported. It exists only as a historical reference, will not be improved and its content may be incomplete.

Contents

Description

Prepare for installation: this method sets the installation directory, finds and checks the installation file and verifies the installation type

[<! removed edit link to red link >]

<! removed transcluded page call, red link never existed >

Syntax

setupInstall()


Returns

boolean True on success

Defined in

libraries/joomla/installer/installer.php

Importing

jimport( 'joomla.installer.installer' );

Source Body

public function setupInstall()
{
        // We need to find the installation manifest file
        if (!$this->findManifest()) {
                return false;
        }
 
        // Load the adapter(s) for the install manifest
        $type = (string)$this->manifest->attributes()->type;
 
        // Lazy load the adapter
        if (!isset($this->_adapters[$type]) || !is_object($this->_adapters[$type]))
        {
                if (!$this->setAdapter($type)) {
                        return false;
                }
        }
 
        return true;
}

[<! removed edit link to red link >] <! removed transcluded page call, red link never existed >

Examples

<CodeExamplesForm />