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

Public Member Functions

 setUser (User $user)
 
 setCreateProtectionRight ( $createProtectionRight)
 
 isQueryContext ( $isQueryContext)
 
 hasRestriction ()
 
 getError ()
 
 checkRestriction (DIProperty $property, DIWikiPage $contextPage=null)
 

Static Public Member Functions

static grepPropertyFromRestrictionErrorMsg ( $errorMsg)
 

Public Attributes

const CREATE_RESTRICTION = 'smw-datavalue-property-create-restriction'
 

Detailed Description

GNU GPL v2+

Since
3.0
Author
mwjames

Member Function Documentation

◆ checkRestriction()

SMW\Property\RestrictionExaminer::checkRestriction ( DIProperty  $property,
DIWikiPage  $contextPage = null 
)
Since
3.0
Parameters
DIProperty$property
DIWikiPage | null$contextPage

◆ getError()

SMW\Property\RestrictionExaminer::getError ( )
Since
3.0
Parameters
array

◆ grepPropertyFromRestrictionErrorMsg()

static SMW\Property\RestrictionExaminer::grepPropertyFromRestrictionErrorMsg (   $errorMsg)
static
Since
3.0
Parameters
string$error
Returns
DIProperty|null

◆ hasRestriction()

SMW\Property\RestrictionExaminer::hasRestriction ( )
Since
3.0
Returns
boolean

◆ isQueryContext()

SMW\Property\RestrictionExaminer::isQueryContext (   $isQueryContext)
Since
3.0
Parameters
boolean$isQueryContext

◆ setCreateProtectionRight()

SMW\Property\RestrictionExaminer::setCreateProtectionRight (   $createProtectionRight)
Since
3.0
Parameters
string | boolean$createProtectionRight

◆ setUser()

SMW\Property\RestrictionExaminer::setUser ( User  $user)
Since
2.5
Parameters
User$user

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

About | General disclaimer | Privacy policy