예제 #1
0
 public static function getParameters()
 {
     $params = parent::getParameters();
     $params = array_merge($params, self::getValuesParameters());
     $params[] = array('name' => 'show on select', 'type' => 'string', 'description' => wfMessage('sf_forminputs_showonselect')->text());
     return $params;
 }
	public static function getParameters() {
		$params = parent::getParameters();
		
		$params[] = array(
			'name' => 'type',
			'type' => 'str',
			'description' => wfMsg( 'sii-imageinput-type' )
		); // page
		
		$params[] = array(
			'name' => 'hide',
			'type' => 'bool',
			'description' => wfMsg( 'sii-imageinput-hide' )
		); // false
		
		$params[] = array(
			'name' => 'width',
			'type' => 'int',
			'description' => wfMsg( 'sii-imageinput-width' )
		); // 200
		
		$params[] = array(
			'name' => 'showdefault',
			'type' => 'bool',
			'description' => wfMsg( 'sii-imageinput-showdefault' )
		); // true
		
		return $params;
	}
예제 #3
0
 public static function getParameters()
 {
     $params = parent::getParameters();
     $params[] = array('name' => 'size', 'type' => 'int', 'description' => wfMessage('sf_forminputs_size')->text());
     $params = array_merge($params, SFEnumInput::getValuesParameters());
     $params[] = array('name' => 'existing values only', 'type' => 'boolean', 'description' => wfMessage('sf_forminputs_existingvaluesonly')->text());
     return $params;
 }
예제 #4
0
 public static function getParameters()
 {
     $params = parent::getParameters();
     $params['preload'] = array('name' => 'preload', 'type' => 'string', 'description' => wfMessage('sf_forminputs_preload')->text());
     $params['rows'] = array('name' => 'rows', 'type' => 'int', 'description' => wfMessage('sf_forminputs_rows')->text());
     $params['cols'] = array('name' => 'cols', 'type' => 'int', 'description' => wfMessage('sf_forminputs_cols')->text());
     $params['maxlength'] = array('name' => 'maxlength', 'type' => 'int', 'description' => wfMessage('sf_forminputs_maxlength')->text());
     $params['placeholder'] = array('name' => 'placeholder', 'type' => 'string', 'description' => wfMessage('sf_forminputs_placeholder')->text());
     $params['autogrow'] = array('name' => 'autogrow', 'type' => 'boolean', 'description' => wfMessage('sf_forminputs_autogrow')->text());
     return $params;
 }
	public static function getParameters() {
		// Remove the 'mandatory' option - it doesn't make sense for
		// checkboxes.
		$params = array();
		foreach ( parent::getParameters() as $param ) {
			if ( $param['name'] != 'mandatory' ) {
				$params[] = $param;
			}
		}
		return $params;
	}
예제 #6
0
 public static function getParameters()
 {
     $params = parent::getParameters();
     $params[] = array('name' => 'size', 'type' => 'int', 'description' => wfMessage('sf_forminputs_size')->text());
     $params[] = array('name' => 'maxlength', 'type' => 'int', 'description' => wfMessage('sf_forminputs_maxlength')->text());
     $params[] = array('name' => 'placeholder', 'type' => 'string', 'description' => wfMessage('sf_forminputs_placeholder')->text());
     $params[] = array('name' => 'uploadable', 'type' => 'boolean', 'description' => wfMessage('sf_forminputs_uploadable')->text());
     $params[] = array('name' => 'default filename', 'type' => 'string', 'description' => wfMessage('sf_forminputs_defaultfilename')->text());
     return $params;
 }
예제 #7
0
 /**
  * Returns the set of parameters for this form input.
  * 
  * TODO: Add missing parameters
  */
 public static function getParameters()
 {
     global $sfigSettings;
     $params = parent::getParameters();
     $params['date format'] = array('name' => 'date format', 'type' => 'string', 'description' => wfMsg('semanticformsinputs-datepicker-dateformat'));
     $params['week start'] = array('name' => 'week start', 'type' => 'int', 'description' => wfMsg('semanticformsinputs-datepicker-weekstart'));
     $params['first date'] = array('name' => 'first date', 'type' => 'string', 'description' => wfMsg('semanticformsinputs-datepicker-firstdate'));
     $params['last date'] = array('name' => 'last date', 'type' => 'string', 'description' => wfMsg('semanticformsinputs-datepicker-lastdate'));
     $params['disable days of week'] = array('name' => 'disable days of week', 'type' => 'string', 'description' => wfMsg('semanticformsinputs-datepicker-disabledaysofweek'));
     $params['highlight days of week'] = array('name' => 'highlight days of week', 'type' => 'string', 'description' => wfMsg('semanticformsinputs-datepicker-highlightdaysofweek'));
     $params['disable dates'] = array('name' => 'disable dates', 'type' => 'string', 'description' => wfMsg('semanticformsinputs-datepicker-disabledates'));
     $params['highlight days of week'] = array('name' => 'highlight days of week', 'type' => 'string', 'description' => wfMsg('semanticformsinputs-datepicker-highlightdates'));
     $params[$sfigSettings->datePickerShowWeekNumbers ? 'hide week numbers' : 'show week numbers'] = array('name' => $sfigSettings->datePickerShowWeekNumbers ? 'hide week numbers' : 'show week numbers', 'type' => 'boolean', 'description' => wfMsg('semanticformsinputs-datepicker-showweeknumbers'));
     $params[$sfigSettings->datePickerDisableInputField ? 'enable input field' : 'disable input field'] = array('name' => $sfigSettings->datePickerDisableInputField ? 'enable input field' : 'disable input field', 'type' => 'boolean', 'description' => wfMsg('semanticformsinputs-datepicker-enableinputfield'));
     $params[$sfigSettings->datePickerShowResetButton ? 'hide reset button' : 'show reset button'] = array('name' => $sfigSettings->datePickerShowResetButton ? 'hide reset button' : 'show reset button', 'type' => 'boolean', 'description' => wfMsg('semanticformsinputs-datepicker-showresetbutton'));
     return $params;
 }
예제 #8
0
 public static function getParameters()
 {
     $params = parent::getParameters();
     return $params;
 }
예제 #9
0
 /**
  * Returns the set of parameters for this form input.
  * 
  * TODO: Specify parameters specific for menuselect.
  */
 public static function getParameters()
 {
     $params = parent::getParameters();
     $params[] = array('name' => 'structure', 'type' => 'text', 'description' => wfMsg('semanticformsinputs-menuselect-structure'), 'default' => "* item 1\n** item 11\n** item 12\n* item 2\n** item 21\n** item 22");
     $params[] = array('name' => $sfigSettings->menuSelectDisableInputField ? 'enable input field' : 'disable input field', 'type' => 'boolean', 'description' => wfMsg('semanticformsinputs-menuselect-enableinputfield'));
     return $params;
 }
예제 #10
0
 /**
  * Returns the set of parameters for this form input.
  * 
  * TODO: Specify parameters specific for menuselect.
  */
 public static function getParameters()
 {
     global $sfigSettings;
     $params = parent::getParameters();
     $params['mintime'] = array('name' => 'mintime', 'type' => 'string', 'description' => wfMsg('semanticformsinputs-timepicker-mintime'));
     $params['maxtime'] = array('name' => 'maxtime', 'type' => 'string', 'description' => wfMsg('semanticformsinputs-timepicker-maxtime'));
     $params['interval'] = array('name' => 'interval', 'type' => 'int', 'description' => wfMsg('semanticformsinputs-timepicker-interval'));
     $params[$sfigSettings->timePickerDisableInputField ? 'enable input field' : 'disable input field'] = array('name' => $sfigSettings->timePickerDisableInputField ? 'enable input field' : 'disable input field', 'type' => 'boolean', 'description' => wfMsg('semanticformsinputs-timepicker-enableinputfield'));
     $params[$sfigSettings->timePickerShowResetButton ? 'hide reset button' : 'show reset button'] = array('name' => $sfigSettings->timePickerShowResetButton ? 'hide reset button' : 'show reset button', 'type' => 'boolean', 'description' => wfMsg('semanticformsinputs-timepicker-showresetbutton'));
     return $params;
 }
예제 #11
0
 /**
  * Returns the name and parameters for the validation JavaScript
  * functions for this input type, if any.
  */
 public function getJsValidationFunctionData()
 {
     return array_merge($this->mJsValidationFunctionData, $this->mBaseInput->getJsValidationFunctionData());
 }
 public static function getParameters()
 {
     $params = parent::getParameters();
     $params[] = array('name' => 'top category', 'type' => 'string', 'description' => wfMessage('sf_forminputs_topcategory')->text());
     $params[] = array('name' => 'structure', 'type' => 'text', 'description' => wfMessage('sf_forminputs_structure')->text());
     $params[] = array('name' => 'hideroot', 'type' => 'boolean', 'description' => wfMessage('sf_forminputs_hideroot')->text());
     $params[] = array('name' => 'depth', 'type' => 'int', 'description' => wfMessage('sf_forminputs_depth')->text());
     $params[] = array('name' => 'height', 'type' => 'int', 'description' => wfMessage('sf_forminputs_height')->text());
     $params[] = array('name' => 'width', 'type' => 'int', 'description' => wfMessage('sf_forminputs_width')->text());
     return $params;
 }
예제 #13
0
 /**
  * Returns the set of parameters for this form input.
  */
 public static function getParameters()
 {
     return array_merge(parent::getParameters(), SFIDatePicker::getParameters(), SFITimePicker::getParameters());
 }
 public static function getParameters()
 {
     $params = parent::getParameters();
     $params[] = array('name' => 'size', 'type' => 'int', 'description' => wfMessage('sf_forminputs_size')->text());
     $params[] = array('name' => 'placeholder', 'type' => 'string', 'description' => wfMessage('sf_forminputs_placeholder')->text());
     $params[] = array('name' => 'existing values only', 'type' => 'boolean', 'description' => wfMessage('sf_forminputs_existingvaluesonly')->text());
     $params[] = array('name' => 'max values', 'type' => 'int', 'description' => wfMessage('sf_forminputs_maxvalues')->text());
     $params = array_merge($params, SFTextWithAutocompleteInput::getAutocompletionParameters());
     return $params;
 }
예제 #15
0
 public static function getParameters()
 {
     $params = parent::getParameters();
     $params[] = array('name' => 'max', 'type' => 'int', 'description' => wfMessage('semanticrating-max')->text());
     return $params;
 }