<?php /* This code is part of FusionDirectory (http://www.fusiondirectory.org/) Copyright (C) 2012-2022 FusionDirectory This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA. */ class tasksConfig extends simplePlugin { static function plInfo (): array { return [ 'plShortName' => _('Tasks'), 'plDescription' => _('FusionDirectory Tasks Configuration'), 'plObjectClass' => ['fdTasksConf'], 'plObjectType' => ['configuration'], 'plProvidedAcls' => parent::generatePlProvidedAcls(static::getAttributesInfo()) ]; } static function getAttributesInfo (): array { return [ 'tasksConf' => [ 'name' => _('Tasks Configuration'), 'attrs' => [ new StringAttribute( _('Tasks RDN'), _('Branch in which Directory Base, Tasks will be stored'), 'fdTasksRDN', TRUE, 'ou=tasks' ), ] ], 'Mail' => [ 'name' => _('Mail Anti-Spam Configuration'), 'attrs' => [ new IntAttribute( _('Last Sent Mail'), '_(Last timestamp in Unix format when last email was sent succesfully)', 'fdTasksConfLastExecTime', FALSE, '', FALSE, '' ), new IntAttribute( _('Maximum number of e-mails processed per time'), _('Select max e-mails to be proccesse'), 'fdTasksConfMaxEmails', FALSE, '', FALSE, '' ), new IntAttribute( _('Time interval between e-mails processing (Minutes) '), _('Select min interval time between emails processing'), 'fdTasksConfIntervalEmails', FALSE, '', FALSE, '' ), ] ], ]; } function __construct ($dn = NULL, $object = NULL, $parent = NULL, $mainTab = FALSE) { global $config; parent::__construct($dn, $object, $parent, $mainTab); // This attribute will be updated and verified by Orchestrator $this->attributesAccess['fdTasksConfLastExecTime']->setVisible(FALSE); } }