Discriminator
This documentation is for an outdated Matomo version.
Click here if you want to read this article for the latest version.
Click here if you want to read this article for the latest version.
Piwik\Columns\
Discriminator
Since Matomo 3.1.0
Methods
The class defines the following methods:
__construct()— Join constructor.isValid()getTable()getColumn()getValue()
__construct()
Join constructor.
Signature
It accepts the following parameter(s):
$table(string) — unprefixed table name$discriminatorColumn(null|string) —$discriminatorValue(null|int) — should be only hard coded, safe values.
- It throws one of the following exceptions:
isValid()
Signature
- It does not return anything or a mixed result.
getTable()
Signature
- It returns a
stringvalue.
getColumn()
Signature
- It returns a
stringvalue.
getValue()
Signature
- Returns:
int|null—