- new "inactive" status column, closed #489

- added new "inactive" character_log status
- improved "inactive" character_log cronjob timings
This commit is contained in:
Exodus4D
2017-05-06 13:24:56 +02:00
parent 7216585d0b
commit 372df12624
12 changed files with 374 additions and 68 deletions

View File

@@ -48,14 +48,6 @@ abstract class BasicModel extends \DB\Cortex {
*/
protected $validate = [];
/**
* enables change for "active" column
* -> see setActive();
* -> $this->active = false; will NOT work (prevent abuse)!
* @var bool
*/
protected $allowActiveChange = false;
/**
* enables check for $fieldChanges on update/insert
* -> fields that should be checked need an "activity-log" flag
@@ -64,6 +56,14 @@ abstract class BasicModel extends \DB\Cortex {
*/
protected $enableActivityLogging = true;
/**
* enables change for "active" column
* -> see setActive();
* -> $this->active = false; will NOT work (prevent abuse)!
* @var bool
*/
private $allowActiveChange = false;
/**
* getData() cache key prefix
* -> do not change, otherwise cached data is lost