mirror of
https://github.com/YunoHost-Apps/movim_ynh.git
synced 2024-09-03 19:46:19 +02:00
26 lines
604 B
PHP
26 lines
604 B
PHP
<?php
|
|
|
|
namespace modl;
|
|
|
|
class Cache extends Model{
|
|
public $session;
|
|
public $name;
|
|
public $data;
|
|
public $timestamp;
|
|
|
|
public function __construct() {
|
|
$this->_struct = '
|
|
{
|
|
"session" :
|
|
{"type":"string", "size":64, "mandatory":true, "key":true },
|
|
"name" :
|
|
{"type":"string", "size":32, "mandatory":true, "key":true },
|
|
"data" :
|
|
{"type":"text", "mandatory":true },
|
|
"timestamp" :
|
|
{"type":"date" }
|
|
}';
|
|
|
|
parent::__construct();
|
|
}
|
|
}
|