Documentation

LiteralTemplate extends ValueTemplate
in package

Description of LiteralTemplate

Tags
author

zozlak

Table of Contents

Constants

ANY  = 'any'
CONTAINS  = 'contains'
ENDS  = 'ends'
EQUALS  = '=='
GREATER  = '>'
GREATER_EQUAL  = '>='
LOWER  = '<'
LOWER_EQUAL  = '<='
NOT_EQUALS  = '!='
REGEX  = 'regex'
STARTS  = 'starts'

Properties

$matchMode  : string
$value  : array<string|int, string>
$datatype  : string|null
$fn  : callable
$lang  : string|null

Methods

__construct()  : mixed
__toString()  : string
Should return:
equals()  : bool

Constants

Properties

Methods

__construct()

public __construct([string|array<string|int, string>|null $value = null ][, string $matchMode = self::EQUALS ][, string|null $lang = null ][, string|null $datatype = null ]) : mixed
Parameters
$value : string|array<string|int, string>|null = null
$matchMode : string = self::EQUALS
$lang : string|null = null
$datatype : string|null = null

__toString()

Should return:

public __toString() : string
  • an URI for named nodes and blank nodes
  • a value in lexical form for literals

For all other kind of terms the return value depends on the implementation

Return values
string

        
On this page

Search results