[ Index ]

PHP Cross Reference of Joomla 4.2.2 documentation

title

Body

[close]

/administrator/components/com_installer/src/Model/ -> DiscoverModel.php (summary)

(no description)

Copyright: (C) 2008 Open Source Matters, Inc.
License: GNU General Public License version 2 or later; see LICENSE.txt
File Size: 315 lines (10 kb)
Included or required:0 times
Referenced: 0 times
Includes or requires: 0 files

Defines 1 class

DiscoverModel:: (8 methods):
  __construct()
  populateState()
  getListQuery()
  discover()
  discover_install()
  purge()
  getEmptyStateQuery()
  checkExtensions()


Class: DiscoverModel  - X-Ref

Installer Discover Model

__construct($config = array()   X-Ref
Constructor.

param: array                $config   An optional associative array of configuration settings.
param: MVCFactoryInterface  $factory  The factory.

populateState($ordering = 'name', $direction = 'asc')   X-Ref
Method to auto-populate the model state.

Note. Calling getState in this method will result in recursion.

param: string  $ordering   An optional ordering field.
param: string  $direction  An optional direction (asc|desc).
return: void

getListQuery()   X-Ref
Method to get the database query.

return: DatabaseQuery  The database query

discover()   X-Ref
Discover extensions.

Finds uninstalled extensions

return: int  The count of discovered extensions

discover_install()   X-Ref
Installs a discovered extension.

return: void

purge()   X-Ref
Cleans out the list of discovered extensions.

return: boolean  True on success

getEmptyStateQuery()   X-Ref
Manipulate the query to be used to evaluate if this is an Empty State to provide specific conditions for this extension.

return: DatabaseQuery

checkExtensions()   X-Ref
Checks for not installed extensions in extensions table.

return: boolean  True if there are discovered extensions in the database.



Generated: Wed Sep 7 05:41:13 2022 Chilli.vc Blog - For Webmaster,Blog-Writer,System Admin and Domainer