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/config/Config.php

64 lines
1.9 KiB
PHP
Raw Normal View History

2016-03-15 16:28:38 +01:00
<?php
namespace Modl;
class Config extends Model {
public $description;
public $theme;
public $locale;
public $maxusers;
public $loglevel;
public $timezone;
public $xmppwhitelist;
public $info;
public $unregister;
public $username;
public $password;
public $sizelimit;
public function __construct() {
$this->_struct = '
{
"description" :
{"type":"text" },
"theme" :
{"type":"string", "size":32, "mandatory":true },
"locale" :
{"type":"string", "size":8, "mandatory":true },
"maxusers" :
{"type":"int", "size":16 },
"loglevel" :
{"type":"string", "size":16, "mandatory":true },
"timezone" :
{"type":"string", "size":32, "mandatory":true },
"xmppwhitelist" :
{"type":"text" },
"info" :
{"type":"text" },
"unregister" :
{"type":"int", "size":1 },
"username" :
{"type":"string", "size":32, "mandatory":true },
"password" :
{"type":"string", "size":64, "mandatory":true },
"sizelimit" :
{"type":"int", "size":16 }
}';
parent::__construct();
$this->description = 'Description';//__('global.description');
$this->theme = 'material';
$this->locale = 'en';
$this->maxusers = -1;
$this->loglevel = 'empty';
$this->timezone = 'Etc/GMT';
$this->xmppwhitelist = '';
$this->info = '';
$this->unregister = false;
$this->username = 'admin';
$this->password = sha1('password');
$this->sizelimit = 20240001;
}
}