API16

API16:JInstaller/setupInstall

From Joomla! Documentation

Revision as of 22:53, 22 March 2010 by Doxiki (talk | contribs) (New page: ===Description=== Prepare for installation: this method sets the installation directory, finds and checks the installation file and verifies the installation type <span class="editsecti...)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

Description

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

[Edit Descripton]

Template:Description:JInstaller/setupInstall

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;
}

[Edit See Also] Template:SeeAlso:JInstaller/setupInstall

Examples

<CodeExamplesForm />