\InstallerModelInstall
Extension Manager Install Model
Synopsis
class InstallerModelInstall
extends JModelLegacy
{
- // Inherited members from JModelLegacy
- protected $__state_set;
- protected $_db;
- protected $name;
- protected $option;
- protected $state;
- protected $event_clean_cache;
- // Inherited members from JObject
- protected $_errors;
- // methods
- protected void populateState()
- public boolean install()
- protected package _getPackageFromUpload()
- protected array _getPackageFromFolder()
- protected Package _getPackageFromUrl()
- // Inherited methods from JModelLegacy
- public static array addIncludePath()
- public static void addTablePath()
- protected static string _createFileName()
- public static mixed getInstance()
- public void __construct()
- protected array _getList()
- protected integer _getListCount()
- protected mixed _createTable()
- public JDatabaseDriver getDbo()
- public string getName()
- public getState()
- public JTable getTable()
- public boolean loadHistory()
- protected void populateState()
- public void setDbo()
- public mixed setState()
- protected void cleanCache()
- // Inherited methods from JObject
- public void __construct()
- public string __toString()
- public mixed def()
- public mixed get()
- public array getProperties()
- public string getError()
- public array getErrors()
- public mixed set()
- public boolean setProperties()
- public void setError()
Hierarchy
Extends
Members
protected
- $__state_set
—
boolean
Indicates if the internal state has been set - $_context
—
string
Model context string. - $_db
—
Database Connector - $_errors
—
array
An array of error messages or Exception objects. - $_table —
- $_url —
- $event_clean_cache
—
string
The event to trigger when cleaning cache. - $name
—
string
The model (base) name - $option
—
string
The URL option for the component. - $state
—
string
A state object
Methods
protected
- _getPackageFromFolder() — Install an extension from a directory
- _getPackageFromUpload() — Works out an installation package from a HTTP upload
- _getPackageFromUrl() — Install an extension from a URL
- populateState() — Method to auto-populate the model state.
public
- install() — Install an extension from either folder, url or upload.
Inherited from JModelLegacy
protected
- _createFileName() — Create the filename for a resource
- _createTable() — Method to load and return a model object.
- _getList() — Gets an array of objects from the results of database query.
- _getListCount() — Returns a record count for the query.
- cleanCache() — Clean the cache
- populateState() — Method to auto-populate the model state.
public
- addIncludePath() — Add a directory where JModelLegacy should search for models. You may either pass a string or an array of directories.
- addTablePath() — Adds to the stack of model table paths in LIFO order.
- getDbo() — Method to get the database driver object
- getInstance() — Returns a Model object, always creating it
- getName() — Method to get the model name
- getState() — Method to get model state variables
- getTable() — Method to get a table object, load it if necessary.
- loadHistory() — Method to load a row for editing from the version history table.
- setDbo() — Method to set the database driver object
- setState() — Method to set model state variables
Inherited from JObject
public
- __toString() — Magic method to convert the object to a string gracefully.
- def() — Sets a default value if not alreay assigned
- get() — Returns a property of the object or the default value if the property is not set.
- getError() — Get the most recent error message.
- getErrors() — Return all errors, if any.
- getProperties() — Returns an associative array of object properties.
- set() — Modifies a property of the object, creating it if it does not already exist.
- setError() — Add an error message.
- setProperties() — Set the object properties based on a named array/hash.