3 * Copyright (c) STMicroelectronics, 2008. All Rights Reserved.
5 * Originally written by Manuel VACELET, 2008.
6 * Copyright 2019, Franck Villaume - TrivialDev
8 * This file is a part of Fusionforge.
10 * Fusionforge is free software; you can redistribute it and/or modify
11 * it under the terms of the GNU General Public License as published by
12 * the Free Software Foundation; either version 2 of the License, or
13 * (at your option) any later version.
15 * Fusionforge is distributed in the hope that it will be useful,
16 * but WITHOUT ANY WARRANTY; without even the implied warranty of
17 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
18 * GNU General Public License for more details.
20 * You should have received a copy of the GNU General Public License
21 * along with Codendi. If not, see <http://www.gnu.org/licenses/>.
24 require_once 'common/valid/ValidFactory.class.php';
25 require_once 'Rule_Widget.class.php';
28 * Valid that widget is a valid string and a valid widget owner.
30 class Valid_Widget_Owner extends Valid_String {
31 function validate($value) {
32 $nrwo = new Rule_Widget_Owner();
33 $this->addRule($nrwo);
34 return parent::validate($value);