Liste de tous les membres
Documentation des constructeurs et destructeur
FinderIndexerAdapter::__construct |
( |
& |
$subject, |
|
|
|
$config |
|
) |
| |
Documentation des fonctions membres
FinderIndexerAdapter::categoryAccessChange |
( |
|
$row | ) |
|
|
protected |
Method to update index data on category access level changes
- Paramètres:
-
- Renvoie:
- void
- Depuis:
- 2.5
Références $item, et $row.
FinderIndexerAdapter::categoryStateChange |
( |
|
$pks, |
|
|
|
$value |
|
) |
| |
|
protected |
Method to update index data on category access level changes
- Paramètres:
-
array | $pks | A list of primary key ids of the content that has changed state. |
integer | $value | The value of the state that the content has been changed to. |
- Renvoie:
- void
- Depuis:
- 2.5
Références $item.
FinderIndexerAdapter::change |
( |
|
$id, |
|
|
|
$property, |
|
|
|
$value |
|
) |
| |
|
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.
- Paramètres:
-
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. |
- Renvoie:
- boolean True on success.
- Depuis:
- 2.5
- Exceptions:
-
Exception | on database error. |
Références $id, $item, $query, JLog\add(), et JLog\INFO.
FinderIndexerAdapter::checkCategoryAccess |
( |
|
$row | ) |
|
|
protected |
Method to check the existing access level for categories
- Paramètres:
-
- Renvoie:
- void
- Depuis:
- 2.5
Références $query, et $row.
FinderIndexerAdapter::checkItemAccess |
( |
|
$row | ) |
|
|
protected |
Method to check the existing access level for items
- Paramètres:
-
- Renvoie:
- void
- Depuis:
- 2.5
Références $query, et $row.
FinderIndexerAdapter::getContentCount |
( |
| ) |
|
|
protected |
Method to get the number of content items available to index.
- Renvoie:
- integer The number of content items available to index.
- Depuis:
- 2.5
- Exceptions:
-
Exception | on database error. |
Références $return, JLog\add(), et JLog\INFO.
FinderIndexerAdapter::getItem |
( |
|
$id | ) |
|
|
protected |
FinderIndexerAdapter::getItemMenuTitle |
( |
|
$url | ) |
|
|
protected |
Method to get the page title of any menu item that is linked to the content item, if it exists and is set.
- Paramètres:
-
string | $url | The url of the item. |
- Renvoie:
- mixed The title on success, null if not found.
- Depuis:
- 2.5
- Exceptions:
-
Exception | on database error. |
Références $params, $return, $url, $user, JLog\add(), JFactory\getUser(), JLog\INFO, et null.
FinderIndexerAdapter::getItems |
( |
|
$offset, |
|
|
|
$limit, |
|
|
|
$sql = null |
|
) |
| |
|
protected |
FinderIndexerAdapter::getListQuery |
( |
|
$sql = null | ) |
|
|
protected |
FinderIndexerAdapter::getPluginType |
( |
|
$id | ) |
|
|
protected |
Method to get the plugin type
- Paramètres:
-
- Renvoie:
- string The plugin type
- Depuis:
- 2.5
Références $id, $query, et $type.
FinderIndexerAdapter::getStateQuery |
( |
| ) |
|
|
protected |
Method to get a SQL query to load the published and access states for an article and category.
- Renvoie:
- JDatabaseQuery A database object.
- Depuis:
- 2.5
Réimplémentée dans plgFinderCategories.
FinderIndexerAdapter::getTypeId |
( |
| ) |
|
|
protected |
Method to get the type id for the adapter content.
- Renvoie:
- integer The numeric type id for the content.
- Depuis:
- 2.5
- Exceptions:
-
Exception | on database error. |
Références $query, JLog\add(), et JLog\INFO.
FinderIndexerAdapter::getUpdateQueryByIds |
( |
|
$ids | ) |
|
|
protected |
Method to get the query clause for getting items to update by id.
- Paramètres:
-
array | $ids | The ids to load. |
- Renvoie:
- JDatabaseQuery A database object.
- Depuis:
- 2.5
Références JLog\add(), et JLog\INFO.
FinderIndexerAdapter::getUpdateQueryByTime |
( |
|
$time | ) |
|
|
protected |
FinderIndexerAdapter::getURL |
( |
|
$id, |
|
|
|
$extension, |
|
|
|
$view |
|
) |
| |
|
protected |
Method to get the URL for the item. The URL is how we look up the link in the Finder index.
- Paramètres:
-
integer | $id | The id of the item. |
string | $extension | The extension the category is in. |
string | $view | The view for the URL. |
- Renvoie:
- string The URL of the item.
- Depuis:
- 2.5
Références $extension, $id, et $view.
Method to index an item.
- Paramètres:
-
- Renvoie:
- boolean True on success.
- Depuis:
- 2.5
- Exceptions:
-
Exception | on database error. |
FinderIndexerAdapter::itemAccessChange |
( |
|
$row | ) |
|
|
protected |
Method to update index data on access level changes
- Paramètres:
-
- Renvoie:
- void
- Depuis:
- 2.5
Références $item, et $row.
FinderIndexerAdapter::itemStateChange |
( |
|
$pks, |
|
|
|
$value |
|
) |
| |
|
protected |
Method to update index data on published state changes
- Paramètres:
-
array | $pks | A list of primary key ids of the content that has changed state. |
integer | $value | The value of the state that the content has been changed to. |
- Renvoie:
- void
- Depuis:
- 2.5
Références $item.
FinderIndexerAdapter::onBeforeIndex |
( |
| ) |
|
Method to prepare for the indexer to be run. This method will often be used to include dependencies and things of that nature.
- Renvoie:
- boolean True on success.
- Depuis:
- 2.5
- Exceptions:
-
Références JLog\add(), FinderIndexer\getState(), et JLog\INFO.
FinderIndexerAdapter::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.
- Renvoie:
- boolean True on success.
- Depuis:
- 2.5
- Exceptions:
-
Références $i, $limit, $n, JLog\add(), FinderIndexer\getState(), JLog\INFO, et FinderIndexer\setState().
FinderIndexerAdapter::onStartIndex |
( |
| ) |
|
FinderIndexerAdapter::pluginDisable |
( |
|
$pks | ) |
|
|
protected |
Method to update index data when a plugin is disabled
- Paramètres:
-
array | $pks | A list of primary key ids of the content that has changed state. |
- Renvoie:
- void
- Depuis:
- 2.5
Références $item.
FinderIndexerAdapter::reindex |
( |
|
$id | ) |
|
|
protected |
Method to reindex an item.
- Paramètres:
-
integer | $id | The ID of the item to reindex. |
- Renvoie:
- boolean True on success.
- Depuis:
- 2.5
- Exceptions:
-
Exception | on database error. |
Références $id, et $item.
FinderIndexerAdapter::remove |
( |
|
$id | ) |
|
|
protected |
FinderIndexerAdapter::setup |
( |
| ) |
|
|
abstractprotected |
FinderIndexerAdapter::translateState |
( |
|
$item, |
|
|
|
$category = null |
|
) |
| |
|
protected |
Method to translate the native content states into states that the indexer can use.
- Paramètres:
-
integer | $item | The item state. |
integer | $category | The category state. [optional] |
- Renvoie:
- integer The translated indexer state.
- Depuis:
- 2.5
Références $category, $item, et null.
Documentation des données membres
FinderIndexerAdapter::$context |
|
protected |
FinderIndexerAdapter::$db |
|
protected |
FinderIndexerAdapter::$extension |
|
protected |
FinderIndexerAdapter::$layout |
|
protected |
FinderIndexerAdapter::$mime |
|
protected |
FinderIndexerAdapter::$old_access |
|
protected |
FinderIndexerAdapter::$old_cataccess |
|
protected |
FinderIndexerAdapter::$state_field = 'state' |
|
protected |
FinderIndexerAdapter::$table |
|
protected |
FinderIndexerAdapter::$type_id |
|
protected |
FinderIndexerAdapter::$type_title |
|
protected |
La documentation de cette classe a été générée à partir du fichier suivant :