Semantic MediaWiki and related extensions
Public Member Functions | Public Attributes | Protected Member Functions | List of all members
Lingo\Element Class Reference

Public Member Functions

 __construct (&$term, &$definition=null)
 
 addDefinition (&$definition)
 
 getFullDefinition (StashingDOMDocument &$doc)
 
 getCurrentKey ()
 
 getTerm ($key)
 
 getSource (&$key)
 
 getDefinition (&$key)
 
 getLink (&$key)
 
 getStyle (&$key)
 
 next ()
 

Public Attributes

const ELEMENT_TERM = 0
 
const ELEMENT_DEFINITION = 1
 
const ELEMENT_SOURCE = 2
 
const ELEMENT_LINK = 3
 
const ELEMENT_STYLE = 4
 
const ELEMENT_FIELDCOUNT = 5
 
const LINK_TEMPLATE_ID = 'LingoLink'
 

Protected Member Functions

 getFullDefinitionAsLink (StashingDOMDocument &$doc)
 
addClassAttributeToLink ($target, &$link)
 
addTitleAttributeToLink ($target, &$link)
 
 getFullDefinitionAsTooltip (StashingDOMDocument &$doc)
 

Detailed Description

This class represents a term-definition pair. One term may be related to several definitions.

Constructor & Destructor Documentation

Lingo\Element::__construct ( $term,
$definition = null 
)

Lingo constructor.

Parameters
$term
$definition

Member Function Documentation

& Lingo\Element::addClassAttributeToLink (   $target,
$link 
)
protected
Parameters
Title$target
DOMElement$link
Returns
DOMElement
Lingo\Element::addDefinition ( $definition)
Parameters
$definition
& Lingo\Element::addTitleAttributeToLink (   $target,
$link 
)
protected
Parameters
Title$target
DOMElement$link
Returns
DOMElement
Lingo\Element::getCurrentKey ( )
Returns
mixed
Lingo\Element::getDefinition ( $key)
Parameters
$key
Returns
mixed
Lingo\Element::getFullDefinition ( StashingDOMDocument $doc)
Parameters
StashingDOMDocument$doc
Returns
DOMNode|DOMText
Lingo\Element::getFullDefinitionAsLink ( StashingDOMDocument $doc)
protected
Parameters
StashingDOMDocument$doc
Returns
DOMElement
Exceptions
Lingo\Element::getFullDefinitionAsTooltip ( StashingDOMDocument $doc)
protected
Parameters
StashingDOMDocument$doc
Returns
DOMElement
Exceptions
Lingo\Element::getLink ( $key)
Parameters
$key
Returns
mixed
Lingo\Element::getSource ( $key)
Parameters
$key
Returns
mixed
Lingo\Element::getStyle ( $key)
Parameters
$key
Returns
mixed
Lingo\Element::getTerm (   $key)
Parameters
$key
Returns
mixed
Lingo\Element::next ( )

Member Data Documentation

const Lingo\Element::ELEMENT_DEFINITION = 1
const Lingo\Element::ELEMENT_FIELDCOUNT = 5
const Lingo\Element::ELEMENT_LINK = 3
const Lingo\Element::ELEMENT_SOURCE = 2
const Lingo\Element::ELEMENT_STYLE = 4
const Lingo\Element::ELEMENT_TERM = 0
const Lingo\Element::LINK_TEMPLATE_ID = 'LingoLink'

The documentation for this class was generated from the following file: