Cambiata gui exception per estendere MultiMessageException Implementata logging degli accessi all'applicazione Modificato loginmanager per loggare gli accessi Creata classe d'appoggio per generare il testo delle email Creato stile di base per le form dell'amministrazione Bugfix e migliorie grafiche
32 lines
577 B
PHP
32 lines
577 B
PHP
<?php
|
|
/*
|
|
Author: Riccardo Di Dato
|
|
Creation Date: 26/gen/2016
|
|
*/
|
|
|
|
|
|
class AccessModel extends Model {
|
|
|
|
public function __construct($saveableObject = null){
|
|
parent::__construct($saveableObject);
|
|
|
|
$requiredProps = array("related");
|
|
|
|
if (!$this->hasProperty("date")){
|
|
$this->date = new MongoDate();
|
|
}
|
|
|
|
foreach ($requiredProps as $prop){
|
|
if (!$this->hasProperty($prop)){
|
|
throw new CoreException("Missing parameter '$prop' while calling AdminAccessModel::__construct()");
|
|
}
|
|
}
|
|
}
|
|
|
|
public static function getCollectionName(){
|
|
return "accessLog";
|
|
}
|
|
|
|
}
|
|
|
|
?>
|