Task #3133

Validators needed in nethserver-phpsettings

Added by stephane de Labrusse over 4 years ago. Updated about 3 years ago.

Status:CLOSEDStart date:
Priority:NormalDue date:
Assignee:-% Done:

100%

Category:nethserver-phpsettings
Target version:NethServer 6 - v6.8

Description

Hi All

I need a help to finish the rpm nethserver-phpsettings, indeed, shame on me but I don't know how to do validators for this rpm. Surely I need a nethgui lesson. I dug deeply but without workable solutions.

at least I need

PhpMemoryLimit > PhpPostMaxSize > PhpUpMaxFileSize

If you can help me on this case, that's could be really nice :)

source https://github.com/stephdl/nethserver-phpsettings/tree/ns6


Related issues

Related to NethForge - Enhancement #3058: Add PHP options to shared folders CLOSED

History

#1 Updated by Davide Principi over 4 years ago

A similar issue is tackled in the Email > Filter tab, to validate the SPAM levels.

https://github.com/nethesis/nethserver-mail-filter/blob/master/root/usr/share/nethesis/NethServer/Module/Mail/Filter.php#L110

That line adds a new condition to SpamTag2Level parameter validation chain, just before validation occurs.

You should override the validate() method and don't forget to call parent::validate($report); somewhere in the body of the function.

This is a common pattern if the validation logic changes with the parameters values.

#2 Updated by stephane de Labrusse over 4 years ago

  • Tracker changed from Feature to Task
  • Category set to nethserver-phpsettings
  • Assignee set to stephane de Labrusse

With the version nethserver-phpmyadmin-1.0.0-3 validators are added now

values must be else you will have an error message

PhpMemoryLimit >= PhpPostMaxSize >= PhpUpMaxFileSize

all properties are saved in the Ibay DB

#3 Updated by Giacomo Sanchietti over 4 years ago

#4 Updated by Giacomo Sanchietti about 4 years ago

  • Assignee deleted (stephane de Labrusse)

#5 Updated by Giacomo Sanchietti about 4 years ago

  • Target version deleted (v6.6)

#6 Updated by Davide Principi about 3 years ago

  • Status changed from NEW to CLOSED
  • % Done changed from 0 to 100

This feature will not be implemented in NS 6. If needed, please reopen it for NS 7.

#7 Updated by Davide Principi about 3 years ago

  • Target version set to v6.8

Also available in: Atom PDF