This application is not used any more and exists only for history. Post new tickets on the Github account.
Cette application n'est plus utilisée, et existe uniquement pour son historique. Postez les nouveaux tickets sur le compte github.

Ticket #1037 (confirmed task)

Opened 5 years ago

Last modified 3 years ago

use namespace in jelix

Reported by: laurentj Owned by:
Priority: normal Milestone: Jelix 2.0.0
Component: jelix Version: trunk
Severity: normal Keywords:
Cc: Blocked By:
Blocking: Documentation needed: no
Hosting Provider: Php version:

Description

we could use namespaces for all jelix components.

Proposition of namespaces :

  • jelix: global namespace
  • jelix\db : namespace of jDb
  • jelix\dao : namespace of jDao
  • jelix\core : namespace of files of the core
  • etc. for all components inside lib/jelix/. the idea is to use jelix:name_of_component, where name_of_component is the name of the directory inside lib/jelix, so the autoloader could load easily the component.

For modules, we could use jelixmodule\modulename\a_class to load a class of a module with the autoloader.

Change History

comment:1 Changed 3 years ago by laurentj

  • Status changed from new to confirmed

comment:2 Changed 23 months ago by laurentj

  • Blocking 463 removed

(In #463) For Jelix 1.5, we have been done all that was possible without breaking everything.

Note: See TracTickets for help on using tickets.