API16

JInstaller/setupInstall

From Joomla! Documentation

< API16:JInstaller

The "API16" namespace is an archived namespace. This page contains information for a Joomla! version which is no longer supported. It exists only as a historical reference, it will not be improved and its content may be incomplete and/or contain broken links.

Description[edit]

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


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

Syntax[edit]

setupInstall()


Returns[edit]

boolean True on success

Defined in[edit]

libraries/joomla/installer/installer.php

Importing[edit]

jimport( 'joomla.installer.installer' );

Source Body[edit]

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 transcluded page call, red link never existed >

Examples[edit]

Code Examples[edit]