Craft Activity (2.x)

TwigActivity
in package

Tags
since
2.2.0

Table of Contents

elementValue()  : string
Return an element value
getContext()  : string
Get the current twig context, can be 'web' or 'export'
getLogs()  : Logs
Get logs service
getVersion()  : string
returns the version of Activity
showUserIP()  : bool
Show user IPs
versionCompare()  : bool
Compare a version to the Activity plugin version

Methods

elementValue()

Return an element value

public elementValue( $value) : string
Parameters
$value :
Tags
since
2.3.10
Return values
string

getContext()

Get the current twig context, can be 'web' or 'export'

public getContext() : string
Tags
since
2.3.5
Return values
string

getVersion()

returns the version of Activity

public getVersion() : string
Tags
since
2.3.15
Return values
string

showUserIP()

Show user IPs

public showUserIP() : bool
Tags
since
2.3.4
Return values
bool

versionCompare()

Compare a version to the Activity plugin version

public versionCompare(string $version, string $operator) : bool
Parameters
$version : string
$operator : string
Tags
since
2.3.15
Return values
bool

Search results