Class PlgContentVote

Description

Vote plugin.

  • since: 1.5

Located in /plugins/content/vote/vote.php (line 19)

JObject
   |
   --JEvent
      |
      --JPlugin
         |
         --PlgContentVote
Variable Summary
Method Summary
 mixed onContentBeforeDisplay (string $context, object &$row, object &$params, [integer $page = 0])
Variables
boolean $autoloadLanguage = true (line 27)

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.

Inherited Variables

Inherited from JPlugin

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

Inherited from JEvent

JEvent::$_subject

Inherited from JObject

JObject::$_errors
Methods
onContentBeforeDisplay (line 41)

Displays the voting area if in an article

  • return: html string containing code for the votes if in com_content else boolean false
  • since: 1.6
  • access: public
mixed onContentBeforeDisplay (string $context, object &$row, object &$params, [integer $page = 0])
  • string $context: The context of the content being passed to the plugin
  • object &$row: The article object
  • object &$params: The article params
  • integer $page: The 'page' number

Inherited Methods

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:18 +0100 by phpDocumentor 1.4.3