Initial commit.
This commit is contained in:
107
src/IDF/Form/IssueTrackingConf.php
Normal file
107
src/IDF/Form/IssueTrackingConf.php
Normal file
@@ -0,0 +1,107 @@
|
||||
<?php
|
||||
/* -*- tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
|
||||
/*
|
||||
# ***** BEGIN LICENSE BLOCK *****
|
||||
# This file is part of InDefero, an open source project management application.
|
||||
# Copyright (C) 2008 Céondo Ltd and contributors.
|
||||
#
|
||||
# InDefero 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.
|
||||
#
|
||||
# InDefero 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
|
||||
#
|
||||
# ***** END LICENSE BLOCK ***** */
|
||||
|
||||
|
||||
/**
|
||||
* Configuration of the labels etc.
|
||||
*/
|
||||
class IDF_Form_IssueTrackingConf extends Pluf_Form
|
||||
{
|
||||
/**
|
||||
* Defined as constants to easily access the value in the
|
||||
* IssueUpdate/Create form in the case nothing is in the db yet.
|
||||
*/
|
||||
const init_open = 'New = Issue has not had initial review yet
|
||||
Accepted = Problem reproduced / Need acknowledged
|
||||
Started = Work on this issue has begun';
|
||||
const init_closed = 'Fixed = Developer made requested changes, QA should verify
|
||||
Verified = QA has verified that the fix worked
|
||||
Invalid = This was not a valid issue report
|
||||
Duplicate = This report duplicates an existing issue
|
||||
WontFix = We decided to not take action on this issue';
|
||||
const init_predefined = 'Type:Defect = Report of a software defect
|
||||
Type:Enhancement = Request for enhancement
|
||||
Type:Task = Work item that doesn\'t change the code or docs
|
||||
Type:Patch = Source code patch for review
|
||||
Type:Other = Some other kind of issue
|
||||
Priority:Critical = Must resolve in the specified milestone
|
||||
Priority:High = Strongly want to resolve in the specified milestone
|
||||
Priority:Medium = Normal priority
|
||||
Priority:Low = Might slip to later milestone
|
||||
OpSys:All = Affects all operating systems
|
||||
OpSys:Windows = Affects Windows users
|
||||
OpSys:Linux = Affects Linux users
|
||||
OpSys:OSX = Affects Mac OS X users
|
||||
Milestone:Release1.0 = All essential functionality working
|
||||
Component:UI = Issue relates to program UI
|
||||
Component:Logic = Issue relates to application logic
|
||||
Component:Persistence = Issue relates to data storage components
|
||||
Component:Scripts = Utility and installation scripts
|
||||
Component:Docs = Issue relates to end-user documentation
|
||||
Security = Security risk to users
|
||||
Performance = Performance issue
|
||||
Usability = Affects program usability
|
||||
Maintainability = Hinders future changes';
|
||||
const init_one_max = 'Type, Priority, Milestone';
|
||||
|
||||
public function initFields($extra=array())
|
||||
{
|
||||
$this->fields['labels_issue_open'] = new Pluf_Form_Field_Varchar(
|
||||
array('required' => true,
|
||||
'label' => __('Open issue status values'),
|
||||
'initial' => self::init_open,
|
||||
'widget' => 'Pluf_Form_Widget_TextareaInput',
|
||||
'widget_attrs' => array('rows' => 5,
|
||||
'cols' => 75),
|
||||
));
|
||||
$this->fields['labels_issue_closed'] = new Pluf_Form_Field_Varchar(
|
||||
array('required' => true,
|
||||
'label' => __('Closed issue status values'),
|
||||
'initial' => self::init_closed,
|
||||
'widget_attrs' => array('rows' => 7,
|
||||
'cols' => 75),
|
||||
'widget' => 'Pluf_Form_Widget_TextareaInput',
|
||||
));
|
||||
|
||||
$this->fields['labels_issue_predefined'] = new Pluf_Form_Field_Varchar(
|
||||
array('required' => true,
|
||||
'label' => __('Predefined issue labels'),
|
||||
'initial' => self::init_predefined,
|
||||
'widget_attrs' => array('rows' => 7,
|
||||
'cols' => 75),
|
||||
'widget' => 'Pluf_Form_Widget_TextareaInput',
|
||||
));
|
||||
|
||||
$this->fields['labels_issue_one_max'] = new Pluf_Form_Field_Varchar(
|
||||
array('required' => false,
|
||||
'label' => __('Each issue may have at most one label with each of these classes'),
|
||||
'initial' => self::init_one_max,
|
||||
'widget_attrs' => array('size' => 60),
|
||||
));
|
||||
|
||||
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user