|
const | TABLE = 'logs' |
|
const | PK = 'id_log' |
|
◆ __construct()
Default constructor
- Parameters
-
◆ __get()
Galette\Core\History::__get |
( |
string |
$name | ) |
|
Global getter method
- Parameters
-
string | $name | name of the property we want to retrieve |
- Returns
- mixed the called property
◆ __isset()
Galette\Core\History::__isset |
( |
string |
$name | ) |
|
Global isset method Required for twig to access properties via __get
- Parameters
-
string | $name | name of the property we want to retrieve |
- Returns
- bool
◆ __set()
Galette\Core\History::__set |
( |
string |
$name, |
|
|
mixed |
$value |
|
) |
| |
Global setter method
- Parameters
-
string | $name | name of the property we want to assign a value to |
mixed | $value | a relevant value for the property |
- Returns
- void
◆ add()
Galette\Core\History::add |
( |
string |
$action, |
|
|
string |
$argument = '' , |
|
|
string |
$query = '' |
|
) |
| |
Add a new entry
- Parameters
-
string | $action | the action to log |
string | $argument | the argument |
string | $query | the query (if relevant) |
- Returns
- bool true if entry was successfully added, false otherwise
◆ buildOrderClause()
Galette\Core\History::buildOrderClause |
( |
| ) |
|
|
protected |
◆ clean()
Galette\Core\History::clean |
( |
| ) |
|
Delete all entries
- Returns
- boolean
◆ findUserIPAddress()
static Galette\Core\History::findUserIPAddress |
( |
| ) |
|
|
static |
Helper function to find the user IP address
This function uses the client address or the appropriate part of X-Forwarded-For, if present and the configuration specifies it. (blindly trusting X-Forwarded-For would make the IP address logging very easy to deveive.
- Returns
- string
◆ getActionsList()
Galette\Core\History::getActionsList |
( |
| ) |
|
Get actions list
- Returns
- array<int, string>
◆ getCount()
Galette\Core\History::getCount |
( |
| ) |
|
◆ getHistory()
Galette\Core\History::getHistory |
( |
| ) |
|
◆ getPk()
Galette\Core\History::getPk |
( |
| ) |
|
|
protected |
◆ getTableName()
Galette\Core\History::getTableName |
( |
bool |
$prefixed = false | ) |
|
|
protected |
Get table's name
- Parameters
-
boolean | $prefixed | Whether table name should be prefixed |
- Returns
- string
Reimplemented in Galette\Core\MailingHistory.
◆ getUsersList()
Galette\Core\History::getUsersList |
( |
| ) |
|
Get users list
- Returns
- array<int, string>
◆ setFilters()
Galette\Core\History::setFilters |
( |
HistoryList |
$filters | ) |
|
Set filters
- Parameters
-
HistoryList | $filters | Filters |
- Returns
- self
The documentation for this class was generated from the following file:
- /home/docs/checkouts/readthedocs.org/user_builds/galette-apidoc/checkouts/develop/galette/lib/Galette/Core/History.php