You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
postfixadmin/model
Christian Boltz c65e3293b6 Quite big CLI cleanup (and more)
model/CliHelp.php:
- new class, used for "postfixadmin-cli $module help"
- replaces the PostfixAdmin* classes in scripts/shells/*.php

model/PFAHandler.php
- add public $taskNames with the list of supported CLI commands

scripts/postfixadmin-cli.php - dispatch():
- directly set the classes to load instead of using shell->loadTasks()
- when "postfixadmin-cli $module" is called, display help instead of 
  error message about "invalid command ''"
- make it more readable by moving error checks to the beginning
  (replaces deeply nested if's with return statements)
- remove unused code parts

scripts/shells/*.php:
- remove PostfixAdmin* classes (obsoleted by CliHelp)
- remove $tasks (now in PFAHandler)
- delete alias.php and domain.php because nothing is left
- mailbox.php still contains PasswordTask

scripts/shells/shell.php:
- remove $taskNames (moved to PFAHandler)
- remove loadTasks() (integrated in postfixadmin-cli.php's dispatch())



git-svn-id: https://svn.code.sf.net/p/postfixadmin/code/trunk@1575 a1433add-5e2c-0410-b055-b7f2511e0802
11 years ago
..
AdminHandler.php AdminHandler.php, AdminpasswordHandler.php: 11 years ago
AdminpasswordHandler.php AdminHandler.php, AdminpasswordHandler.php: 11 years ago
AliasHandler.php AliasHandler: 11 years ago
AliasdomainHandler.php AliasdomainHandler: 11 years ago
CliDelete.php CliDelete: 11 years ago
CliEdit.php CliEdit.php: 11 years ago
CliHelp.php Quite big CLI cleanup (and more) 11 years ago
CliView.php model/CliView.php: 11 years ago
Config.php model/Config: 11 years ago
DomainHandler.php DomainHandler.php: 11 years ago
MailboxHandler.php DomainHandler.php: 11 years ago
PFAHandler.php Quite big CLI cleanup (and more) 11 years ago
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 13 years ago