Joomla CMS
3.10.11 (avec JPlatform 13.1 inclus)
Documentation des API du CMS Joomla en version 3.10.11 et du framework Joomla Platform intégré
|
Fonctions membres publiques | |
__construct (&$subject, $config) | |
onStartIndex () | |
onBeforeIndex () | |
onBuildIndex () | |
Fonctions membres protégées | |
change ($id, $property, $value) | |
index (FinderIndexerResult $item) | |
reindex ($id) | |
remove ($id) | |
setup () | |
categoryAccessChange ($row) | |
categoryStateChange ($pks, $value) | |
checkCategoryAccess ($row) | |
checkItemAccess ($row) | |
getContentCount () | |
getItem ($id) | |
getItems ($offset, $limit, $query=null) | |
getListQuery ($query=null) | |
getPluginType ($id) | |
getStateQuery () | |
getUpdateQueryByTime ($time) | |
getUpdateQueryByIds ($ids) | |
getTypeId () | |
getUrl ($id, $extension, $view) | |
getItemMenuTitle ($url) | |
itemAccessChange ($row) | |
itemStateChange ($pks, $value) | |
pluginDisable ($pks) | |
translateState ($item, $category=null) | |
Attributs protégés | |
$context | |
$extension | |
$layout | |
$mime | |
$old_access | |
$old_cataccess | |
$type_title | |
$type_id | |
$db | |
$table | |
$indexer | |
$state_field = 'state' | |
Prototype adapter class for the Finder indexer package.
__construct | ( | & | $subject, |
$config | |||
) |
Method to instantiate the indexer adapter.
object | $subject | The object to observe. |
array | $config | An array that holds the plugin configuration. |
Références $config, $subject, FinderIndexerHelper\addContentType(), et FinderIndexer\getInstance().
|
protected |
|
protected |
|
protected |
Method to change the value of a content item's property in the links table. This is used to synchronize published and access states that are changed when not editing an item directly.
string | $id | The ID of the item to change. |
string | $property | The property that is being changed. |
integer | $value | The new value of that property. |
Exception | on database error. |
|
protected |
|
protected |
|
protected |
|
protected |
Method to get a content item to index.
integer | $id | The id of the content item. |
Exception | on database error. |
|
protected |
Method to get the page title of any menu item that is linked to the content item, if it exists and is set.
string | $url | The URL of the item. |
Exception | on database error. |
Références $groups, $params, $query, $return, $url, $user, et null.
|
protected |
Method to get a list of content items to index.
integer | $offset | The list offset. |
integer | $limit | The list limit. |
JDatabaseQuery | $query | A JDatabaseQuery object. [optional] |
Exception | on database error. |
Références $item, $items, $layout, $limit, $mime, $offset, $query, $row, et $rows.
|
protected |
Method to get the SQL query used to retrieve the list of content items.
mixed | $query | A JDatabaseQuery object. [optional] |
Références $query.
|
protected |
|
protected |
Method to get a SQL query to load the published and access states for an article and category.
Références $query.
|
protected |
Method to get the type id for the adapter content.
Exception | on database error. |
Références $query.
|
protected |
Method to get the query clause for getting items to update by id.
array | $ids | The ids to load. |
Références $query.
|
protected |
Method to get the query clause for getting items to update by time.
string | $time | The modified timestamp. |
Références $query.
|
protected |
Method to get the URL for the item. The URL is how we look up the link in the Finder index.
integer | $id | The id of the item. |
string | $extension | The extension the category is in. |
string | $view | The view for the URL. |
Références $extension, $id, et $view.
|
abstractprotected |
Method to index an item.
FinderIndexerResult | $item | The item to index as a FinderIndexerResult object. |
Exception | on database error. |
|
protected |
|
protected |
onBeforeIndex | ( | ) |
Method to prepare for the indexer to be run. This method will often be used to include dependencies and things of that nature.
Exception | on error. |
Références $context, et FinderIndexer\getState().
onBuildIndex | ( | ) |
Method to index a batch of content items. This method can be called by the indexer many times throughout the indexing process depending on how much content is available for indexing. It is important to track the progress correctly so we can display it to the user.
Exception | on error. |
Références $context, $i, $items, $limit, $n, $offset, FinderIndexer\getState(), et FinderIndexer\setState().
onStartIndex | ( | ) |
Method to get the adapter state and push it into the indexer.
Exception | on error. |
Références $context, $total, FinderIndexer\getState(), et FinderIndexer\setState().
|
protected |
|
protected |
|
protected |
|
abstractprotected |
Method to setup the adapter before indexing.
Exception | on database error. |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |