1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/movim_ynh.git synced 2024-09-03 19:46:19 +02:00
movim_ynh/sources/app/models/sessionx/Sessionx.php
2015-08-19 11:28:28 +02:00

62 lines
1.7 KiB
PHP

<?php
namespace modl;
class Sessionx extends Model {
public $session;
public $username;
public $password;
public $hash;
public $resource;
public $rid;
public $sid;
public $id;
public $port;
public $host;
public $domain;
public $config;
public $active;
public $start;
public $timestamp;
public $mechanism;
public function __construct() {
$this->_struct = '
{
"session" :
{"type":"string", "size":128, "mandatory":true, "key":true },
"username" :
{"type":"string", "size":64 },
"password" :
{"type":"string", "size":64 },
"hash" :
{"type":"string", "size":128 },
"resource" :
{"type":"string", "size":64 },
"rid" :
{"type":"int", "size":8, "mandatory":true },
"sid" :
{"type":"string", "size":64 },
"id" :
{"type":"int", "size":8, "mandatory":true },
"port" :
{"type":"int", "size":5, "mandatory":true },
"host" :
{"type":"string", "size":64, "mandatory":true },
"domain" :
{"type":"string", "size":64, "mandatory":true },
"config" :
{"type":"text" },
"active" :
{"type":"int", "size":4 },
"start" :
{"type":"date" },
"timestamp" :
{"type":"date" },
"mechanism" :
{"type":"string", "size":64 }
}';
parent::__construct();
}
}