Class PlgFinderWeblinks

Description

Finder adapter for Joomla Web Links.

  • since: 2.5

Located in /plugins/finder/weblinks/weblinks.php (line 22)

JObject
   |
   --JEvent
      |
      --JPlugin
         |
         --FinderIndexerAdapter
            |
            --PlgFinderWeblinks
Variable Summary
 string $context
 string $extension
 string $layout
 string $table
 string $type_title
Method Summary
 JDatabaseQuery getListQuery ([mixed $query = null])
 void index (FinderIndexerResult $item, [string $format = 'html'])
 boolean onFinderAfterDelete (string $context, JTable $table)
 boolean onFinderAfterSave (string $context, JTable $row, boolean $isNew)
 boolean onFinderBeforeSave (string $context, JTable $row, boolean $isNew)
 void onFinderCategoryChangeState (string $extension, array $pks, integer $value)
 void onFinderChangeState (string $context, array $pks, integer $value)
 boolean setup ()
Variables
boolean $autoloadLanguage = true (line 70)

Load the language file on instantiation.

  • since: 3.1
  • access: protected

Redefinition of:
JPlugin::$autoloadLanguage
Affects constructor behavior. If true, language files will be loaded automatically.
string $context = 'Weblinks' (line 30)

The plugin identifier.

  • since: 2.5
  • access: protected

Redefinition of:
FinderIndexerAdapter::$context
The context is somewhat arbitrary but it must be unique or there will be conflicts when managing plugin/indexer state. A good best practice is to use the plugin name suffix as the context. For example, if the plugin is named 'plgFinderContent', the context could be 'Content'.
string $extension = 'com_weblinks' (line 38)

The extension name.

  • since: 2.5
  • access: protected

Redefinition of:
FinderIndexerAdapter::$extension
The extension name.
string $layout = 'weblink' (line 46)

The sublayout to use when rendering the results.

  • since: 2.5
  • access: protected

Redefinition of:
FinderIndexerAdapter::$layout
The sublayout to use when rendering the results.
string $table = '#__weblinks' (line 62)

The table name.

  • since: 2.5
  • access: protected

Redefinition of:
FinderIndexerAdapter::$table
The table name.
string $type_title = 'Web Link' (line 54)

The type of content that the adapter indexes.

  • since: 2.5
  • access: protected

Redefinition of:
FinderIndexerAdapter::$type_title
The type of content the adapter indexes.

Inherited Variables

Inherited from FinderIndexerAdapter

FinderIndexerAdapter::$db
FinderIndexerAdapter::$indexer
FinderIndexerAdapter::$mime
FinderIndexerAdapter::$old_access
FinderIndexerAdapter::$old_cataccess
FinderIndexerAdapter::$state_field
FinderIndexerAdapter::$type_id

Inherited from JPlugin

JPlugin::$params
JPlugin::$_name
JPlugin::$_type

Inherited from JEvent

JEvent::$_subject

Inherited from JObject

JObject::$_errors
Methods
getListQuery (line 320)

Method to get the SQL query used to retrieve the list of content items.

  • return: A database object.
  • since: 2.5
  • access: protected
JDatabaseQuery getListQuery ([mixed $query = null])
  • mixed $query: A JDatabaseQuery object or null.

Redefinition of:
FinderIndexerAdapter::getListQuery()
Method to get the SQL query used to retrieve the list of content items.
getUpdateQueryByTime (line 366)

Method to get the query clause for getting items to update by time.

  • return: A database object.
  • since: 2.5
  • access: protected
JDatabaseQuery getUpdateQueryByTime (string $time)
  • string $time: The modified timestamp.

Redefinition of:
FinderIndexerAdapter::getUpdateQueryByTime()
Method to get the query clause for getting items to update by time.
index (line 241)

Method to index an item. The item must be a FinderIndexerResult object.

  • since: 2.5
  • throws: Exception on database error.
  • access: protected
void index (FinderIndexerResult $item, [string $format = 'html'])
  • FinderIndexerResult $item: The item to index as an FinderIndexerResult object.
  • string $format: The item format

Redefinition of:
FinderIndexerAdapter::index()
Method to index an item.
onFinderAfterDelete (line 105)

Method to remove the link information for items that have been deleted.

  • return: True on success.
  • since: 2.5
  • throws: Exception on database error.
  • access: public
boolean onFinderAfterDelete (string $context, JTable $table)
  • string $context: The context of the action being performed.
  • JTable $table: A JTable object containing the record to be deleted
onFinderAfterSave (line 135)

Method to determine if the access level of an item changed.

  • return: True on success.
  • since: 2.5
  • throws: Exception on database error.
  • access: public
boolean onFinderAfterSave (string $context, JTable $row, boolean $isNew)
  • string $context: The context of the content passed to the plugin.
  • JTable $row: A JTable object
  • boolean $isNew: If the content has just been created
onFinderBeforeSave (line 178)

Method to reindex the link information for an item that has been saved.

This event is fired before the data is actually saved so we are going to queue the item to be indexed later.

  • return: True on success.
  • since: 2.5
  • throws: Exception on database error.
  • access: public
boolean onFinderBeforeSave (string $context, JTable $row, boolean $isNew)
  • string $context: The context of the content passed to the plugin.
  • JTable $row: A JTable object
  • boolean $isNew: If the content is just about to be created
onFinderCategoryChangeState (line 85)

Method to update the item link information when the item category is changed. This is fired when the item category is published or unpublished from the list view.

  • since: 2.5
  • access: public
void onFinderCategoryChangeState (string $extension, array $pks, integer $value)
  • string $extension: The extension whose category has been updated.
  • 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.
onFinderChangeState (line 216)

Method to update the link information for items that have been changed from outside the edit screen. This is fired when the item is published, unpublished, archived, or unarchived from the list view.

  • since: 2.5
  • access: public
void onFinderChangeState (string $context, array $pks, integer $value)
  • string $context: The context for the content passed to the plugin.
  • 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.
setup (line 303)

Method to setup the indexer to be run.

  • return: True on success.
  • since: 2.5
  • access: protected
boolean setup ()

Redefinition of:
FinderIndexerAdapter::setup()
Method to setup the adapter before indexing.

Inherited Methods

Inherited From FinderIndexerAdapter

 FinderIndexerAdapter::__construct()
 FinderIndexerAdapter::categoryAccessChange()
 FinderIndexerAdapter::categoryStateChange()
 FinderIndexerAdapter::change()
 FinderIndexerAdapter::checkCategoryAccess()
 FinderIndexerAdapter::checkItemAccess()
 FinderIndexerAdapter::getContentCount()
 FinderIndexerAdapter::getItem()
 FinderIndexerAdapter::getItemMenuTitle()
 FinderIndexerAdapter::getItems()
 FinderIndexerAdapter::getListQuery()
 FinderIndexerAdapter::getPluginType()
 FinderIndexerAdapter::getStateQuery()
 FinderIndexerAdapter::getTypeId()
 FinderIndexerAdapter::getUpdateQueryByIds()
 FinderIndexerAdapter::getUpdateQueryByTime()
 FinderIndexerAdapter::getURL()
 FinderIndexerAdapter::index()
 FinderIndexerAdapter::itemAccessChange()
 FinderIndexerAdapter::itemStateChange()
 FinderIndexerAdapter::onBeforeIndex()
 FinderIndexerAdapter::onBuildIndex()
 FinderIndexerAdapter::onStartIndex()
 FinderIndexerAdapter::pluginDisable()
 FinderIndexerAdapter::reindex()
 FinderIndexerAdapter::remove()
 FinderIndexerAdapter::setup()
 FinderIndexerAdapter::translateState()

Inherited From JPlugin

 JPlugin::__construct()
 JPlugin::loadLanguage()

Inherited From JEvent

 JEvent::__construct()
 JEvent::update()

Inherited From JObject

 JObject::__construct()
 JObject::def()
 JObject::get()
 JObject::getError()
 JObject::getErrors()
 JObject::getProperties()
 JObject::set()
 JObject::setError()
 JObject::setProperties()
 JObject::__toString()

Documentation generated on Tue, 19 Nov 2013 15:18:33 +0100 by phpDocumentor 1.4.3