Form to add or edit questionnaire properties

package Webenq_Questionnaires_Manage
author Bart Huttinga
author Jaap-Andre de Hoop
author Rolf Kleef

 Methods

Create questionnaire properties form

init() : void

The posted form will contain:

  • id
  • title[default_language]: selected default language for the form
  • title[en]: English title string
  • title[..]: (repeated for all available languages)
  • category_id
  • active
  • date_start: expected to be in format YYYY-MM-DD [HH:MM:SS]
  • date_end: (as date_start)
  • submit or cancel: depending on submit button
see \Zend_Form::init()

Check if the cancel button was submitted

isCancelled(array $values) : boolean

Parameters

$values

array

Returns

boolean

Check the questionnaire properties; specifically: make sure the end date is after the start date

isValid(array $values) : boolean
see \Zend_Form::isValid()

Parameters

$values

array

Returns

boolean

 Properties

 

$_messageTemplates : array

 Constants

 

ERR_END_IS_BEFORE_START

ERR_END_IS_BEFORE_START