/** * @param PROJECT $folder Project in which to add or edit the job. */ public function __construct($folder) { parent::__construct($folder); $field = new DATE_FIELD(); $field->id = 'time_needed'; $field->caption = 'Needed by'; $field->sticky = true; $this->add_field($field); $field = new INTEGER_FIELD(); $field->id = 'assignee_id'; $field->caption = 'Assigned to'; $field->min_value = 0; $field->sticky = true; $this->add_field($field); $field = new INTEGER_FIELD(); $field->id = 'reporter_id'; $field->caption = 'Reported By'; $field->min_value = 1; $field->sticky = true; $this->add_field($field); $field = new BOOLEAN_FIELD(); $field->id = 'subscribe_creator'; $field->caption = 'Subscribe creator'; $this->add_field($field); $field = new BOOLEAN_FIELD(); $field->id = 'subscribe_reporter'; $field->caption = 'Subscribe reporter (if different)'; $this->add_field($field); $field = new BOOLEAN_FIELD(); $field->id = 'subscribe_assignee'; $field->caption = 'Subscribe assignee (if different)'; $this->add_field($field); }
/** * @param PROJECT $folder Project in which to add or edit the change. */ public function __construct($folder) { parent::__construct($folder); $field = new INTEGER_FIELD(); $field->id = 'job_id'; $field->caption = 'Job'; $field->min_value = 0; $this->add_field($field); $field = new TEXT_FIELD(); $field->id = 'files'; $field->caption = 'Files'; $field->min_length = 0; $field->max_length = 65535; $this->add_field($field); $this->_fields['title']->required = false; }