Semantic MediaWiki and related extensions
Public Member Functions | Protected Member Functions | Protected Attributes | Static Protected Attributes | List of all members
SRFArray Class Reference
Inheritance diagram for SRFArray:
Inheritance graph
[legend]
Collaboration diagram for SRFArray:
Collaboration graph
[legend]

Public Member Functions

 __construct ( $format, $inline=true)
 
 getQueryMode ( $context)
 
 getName ()
 
 getParamDefinitions (array $definitions)
 

Protected Member Functions

 getResultText (SMWQueryResult $res, $outputmode)
 
 fillDeliveryArray ( $array=[], $value=null)
 
 deliverPageTitle ( $value, $link=false)
 
 deliverRecordField ( $value, $link=false)
 
 deliverSingleValue ( $value, $link=false)
 
 deliverMissingProperty (SMWResultArray $field)
 
 deliverSingleManyValuesData ( $value_items, $containsRecord, $isPageTitle)
 
 deliverPropertiesManyValues ( $manyValue_items, $isMissingProperty, $isPageTitle, SMWResultArray $data)
 
 deliverPageProperties ( $perProperty_items)
 
 deliverQueryResultPages ( $perPage_items)
 
 createArray ( $array)
 
 initializeCfgValue ( $dfltVal, $dfltCacheKey)
 
 getCfgSepText ( $obj)
 
 handleParameters (array $params, $outputmode)
 

Protected Attributes

 $mSep
 
 $mPropSep
 
 $mManySep
 
 $mRecordSep
 
 $mHeaderSep
 
 $mArrayName = null
 
 $mShowPageTitles
 
 $mHideRecordGaps
 
 $mHidePropertyGaps
 
 $mMainLabelHack = false
 

Static Protected Attributes

static $mDefaultSeps = []
 

Detailed Description

Array format

Member Function Documentation

◆ createArray()

SRFArray::createArray (   $array)
protected

Helper function to create a new Array within 'Arrays' extension. Takes care of different versions as well as the old 'ArrayExtension'.

ToDo: is there a way to get the actual parser which has started the query?

◆ deliverMissingProperty()

SRFArray::deliverMissingProperty ( SMWResultArray  $field)
protected

: System for Default values?... *

◆ getParamDefinitions()

SRFArray::getParamDefinitions ( array  $definitions)
See also
SMWResultPrinter::getParamDefinitions
Since
1.8
Parameters
$definitionsarray of IParamDefinition
Returns
array of IParamDefinition|array

◆ getResultText()

SRFArray::getResultText ( SMWQueryResult  $res,
  $outputmode 
)
protected

first field is always the page title, except, mainlabel is set to '-'

Todo:
Is there some other way to check the data value directly for being the page title or not? SMWs behavior could change on mainlabel handling...

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

About | General disclaimer | Privacy policy