0
0
mirror of https://github.com/postfixadmin/postfixadmin.git synced 2024-09-19 19:22:14 +02:00
postfixadmin/model
Christian Boltz eafc2b6222 model/CliEdit.php:
- new class for CLI add and edit
- based on AddTask, but big parts of __interactive()) are rewritten to:
  - use $struct for the user interface (which means it will automatically 
    adopt to changes in the *Handler classes)
  - check all entered data instantly. If an invalid value was entered,
    ask again to give the user a chance to enter valid data.
- CliEdit already replaces all AddTask classes (interactive mode works, 
  commandline parameter mode not implementated yet)
- will also replace all EditTask classes in the future

scripts/shells/shell.php
- loadTasks(): for add, use new CliEdit instead of AddTask class
- in():
  - print additional empty line if $prompt is not empty
  - print error message when invalid option is chosen
  - always return raw $in to avoid '0' vs. ''. vs NULL problems



git-svn-id: https://svn.code.sf.net/p/postfixadmin/code/trunk@1437 a1433add-5e2c-0410-b055-b7f2511e0802
2013-02-25 23:43:08 +00:00
..
AdminHandler.php PFAHandler.php: 2013-02-16 20:42:17 +00:00
AliasdomainHandler.php PFAHandler.php: 2013-02-16 20:42:17 +00:00
AliasHandler.php PFAHandler.php: 2013-02-16 20:42:17 +00:00
CliEdit.php model/CliEdit.php: 2013-02-25 23:43:08 +00:00
Config.php make Config.php a php5 compatible object; remove strict standards warnings 2011-10-24 22:24:21 +00:00
DomainHandler.php PFAHandler.php: 2013-02-16 20:42:17 +00:00
Lang.php Move the classes "Config" and "Lang" to scripts/common.php to model/ 2011-10-17 21:47:58 +00:00
MailboxHandler.php MailboxHandler: 2013-02-25 20:23:00 +00:00
PFAHandler.php PFAHandler.php: 2013-02-16 20:42:17 +00:00
VacationHandler.php Merge jan-kruis's vacation interval reply behaviour - see SF patch 3508083 - https://sourceforge.net/tracker/?func=detail&aid=3508083&group_id=191583&atid=937966 ; Thank you 2012-04-19 21:55:36 +00:00