Task #649

Drop Framework singleton

Added by Davide Principi almost 8 years ago. Updated over 6 years ago.

Status:CLOSEDStart date:11/10/2011
Priority:NormalDue date:
Assignee:-% Done:

100%

Category:nethserver-nethgui
Target version:Sigma

Description

Add a reference to the Framework object in every module.


Related issues

Related to Nethgui - Feature #225: Framework configuration CLOSED 06/10/2011

Associated revisions

Revision d714e976
Added by Davide Principi almost 8 years ago

WIP. Refactor of Framework class. Refs #649 - Drop Framework singleton

Stripped Framework class:
  • Moved template execution logic into Xhtml renderer class
  • Moved language string translation into Translator implementation
  • Removed getApplicationPath() - use NETHGUI_ROOTDIR constant
  • Removed CodeIgniter reference
Also
  • Added TranslatorInterface
  • Moved language catalog handling from View into Translator
Nethgui modules:
  • Updated Menu to rely on the new TranslatorInterface
  • WARNING: Help/Template module still needs refactor

Revision 37ab11aa
Added by Davide Principi almost 8 years ago

WIP. Fixed translation and PHP script templates. Refs #649 - Drop framework singleton.

Revision e19ee26b
Added by Davide Principi almost 8 years ago

WIP. Refactor of Framework URL methods. Refs #649 - Drop Framework singleton

  • ViewInterface: Added getModuleUrl() operation.
  • Moved Url methods into View class.
  • Dropped T() translator function.

Revision 5ec7e00f
Added by Davide Principi almost 8 years ago

WIP. Added Log package. Refs #649 - Removed all logMessage() invocations.

Revision 4d423823
Added by Davide Principi almost 8 years ago

WIP: Refs #649 - Drop framework singleton.

Framework:
  • moved Request initialization into Framework class.
  • moved hashToDatasource() static method into Renderer/Abstract.

Revision 772b3666
Added by Davide Principi almost 8 years ago

WIP: moved Nethgui_Core_Validator into System package. Refs #649. Drop Framework singleton.

Revision e51062ba
Added by Davide Principi almost 8 years ago

WIP. Validator refactor. Refs #649 - Drop Framework singleton

  • Moved Validator class into System package
  • Moved getDateFormat() operation into PlatformInterface
  • Moved getLanguageCode() operation into UserInterface
  • Updated NethServer modules

Revision dd823853
Added by Davide Principi almost 8 years ago

WIP. Fixed HELP and LINK button URL generation. Refs #649 - Drop Framework singleton.

  • Removed buildUrl() method from Widget/Abstract

Revision a2ccf694
Added by Davide Principi almost 8 years ago

WIP. Dropped the Framework singleton. Refs #649.

Revision 368d8d3e
Added by Davide Principi almost 8 years ago

All Nethgui tests green. Refs #649 - Drop framework singleton

Revision 0e4eddea
Added by Davide Principi almost 8 years ago

Log: implemented stack trace logging. Refs #649 - commit: 20a5b9ec

Revision a6ff08bf
Added by Davide Principi almost 8 years ago

New Session class, implementing SessionInterface. Refs #649 - Drop Framework singleton.

Framework: added Main module in place of World; introduced NotificationManagerInterface, to handle DialogBox notifications.

Added session storage to:

  • NethPlatform (for process tracking);
  • AlwaysAuthenticatedUser (for user credentials);
  • NotificationManager (for notification dialog boxes).

In View: implemented showDialogBox() Command constructor.

Client command API: implementation of DelegatingCommandReceiver in Xhtml and Json renderers.

History

#1 Updated by Davide Principi almost 8 years ago

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

Also available in: Atom PDF