2017 © Pedro Peláez
 

library historic

The Pragma Module for handling models changelogs in Pragma Framework

image

pragma-framework/historic

The Pragma Module for handling models changelogs in Pragma Framework

  • Thursday, July 19, 2018
  • by cyrilrouyer
  • Repository
  • 2 Watchers
  • 1 Stars
  • 383 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 1 Forks
  • 1 Open issues
  • 4 Versions
  • 20 % Grown

The README.md

Pragma Historic

The Pragma Module for handling models changelogs in Pragma Framework., (*1)

Installation

In composer.json add:, (*2)

require {"pragma-framework/historic": "dev-master"}

Howto use with Pragma/Model classes

In Model, add use Historisable; and in Model::___construct $this->set_historised(true);, (*3)

In Model::delete() add this->set_global_name($this->field) (DEPRECATED), (*4)

In Model::__construct add $this->set_global_name_fields(['field']);, (*5)

What about created_at and created_by

These columns should be handled by within the PRAGMA_HISTORIC_CREATION_HOOK constant (in the config.php), (*6)

CLI Route

Route used to empty all or part of the history

php public/index.php historic:clean [-d|--days=] [-s|--skip-confirm]

Options

-d --days, (*7)

Number of days of history to keep, (*8)

-s --skip-confirm, (*9)

Skip confirmation (useful with crons), (*10)

The Versions

19/07 2018

dev-master

9999999-dev

The Pragma Module for handling models changelogs in Pragma Framework

  Sources   Download

MIT

The Requires

 

by Cyril Rouyer

framework pragma historic

19/07 2018

1.2.0

1.2.0.0

The Pragma Module for handling models changelogs in Pragma Framework

  Sources   Download

MIT

The Requires

 

by Cyril Rouyer

framework pragma historic

28/03 2018

1.1.0

1.1.0.0

The Pragma Module for handling models changelogs in Pragma Framework

  Sources   Download

MIT

The Requires

 

by Cyril Rouyer

framework pragma historic

20/11 2017

1.0.0

1.0.0.0

The Pragma Module for handling models changelogs in Pragma Framework

  Sources   Download

MIT

The Requires

 

by Cyril Rouyer

framework pragma historic