Semantic MediaWiki and related extensions
Public Member Functions | Public Attributes | List of all members
SMW\StringCondition Class Reference

Public Member Functions

 __construct ( $string, $condition, $isOr=false, $isNot=false)
 
 getHash ()
 

Public Attributes

const COND_PRE = 0
 
const STRCOND_PRE = self::COND_PRE
 
const COND_POST = 1
 
const STRCOND_POST = self::COND_POST
 
const COND_MID = 2
 
const STRCOND_MID = self::COND_MID
 
const COND_EQ = 3
 
 $string
 
 $isOr
 
 $isNot
 
 $condition
 

Detailed Description

Small data container class for describing filtering conditions on the string label of some entity. States that a given string should either be prefix, postfix, or some arbitrary part of labels.

GNU GPL v2+

Since
1.0
Author
Markus Krötzsch

Constructor & Destructor Documentation

◆ __construct()

SMW\StringCondition::__construct (   $string,
  $condition,
  $isOr = false,
  $isNot = false 
)
Since
1.0
Parameters
srting$string
integer$condition
boolean$isOr

Member Function Documentation

◆ getHash()

SMW\StringCondition::getHash ( )
Since
2.4
Returns
string

Member Data Documentation

◆ COND_EQ

const SMW\StringCondition::COND_EQ = 3

String matches as equal

◆ COND_MID

const SMW\StringCondition::COND_MID = 2

String matches to some inner part

◆ COND_POST

const SMW\StringCondition::COND_POST = 1

String matches postfix

◆ COND_PRE

const SMW\StringCondition::COND_PRE = 0

String matches prefix


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

About | General disclaimer | Privacy policy