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

Opened 13 years ago

Closed 13 years ago

#84 closed new feature (fixed)

Make it possible to create sub directories in the "classes" directory of a module

Reported by: LionelT Owned by: laurentj
Priority: low Milestone: Jelix 1.0beta2
Component: jelix:core Version: 1.0 beta1
Severity: minor Keywords: selector classes
Cc: Blocked By:
Blocking: Documentation needed:
Hosting Provider: Php version:

Description

The need :
To be able to create sub directories under the "classes" directory in a module. This can be useful to organize classes within a module.

Todo:
Determine the way to denote them : e.g. module~subdir/class
Change jSelectorXXX in accordance.

Attachments (2)

ticket_84-bballizlife.diff (1.4 KB) - added by bballizlife 13 years ago.
jSelectorClass patch to implement module~subdir1_subdir2_class proposal
ticket_84-bballizlife-2.diff (2.2 KB) - added by bballizlife 13 years ago.
New patch to use the syntax : module~subdir1/subdir2/class

Download all attachments as: .zip

Change History (10)

comment:1 Changed 13 years ago by laurentj

  • Milestone set to Jelix 1.0beta2
  • Summary changed from Make it to create sub directories in the "classes" directory of a module to Make it possible to create sub directories in the "classes" directory of a module

comment:2 Changed 13 years ago by bballizlife

Why not to use a kind of "Zend" way ?
So the syntax could be module~subdir1_subdir2_subdirN_class

Changed 13 years ago by bballizlife

jSelectorClass patch to implement module~subdir1_subdir2_class proposal

comment:3 Changed 13 years ago by laurentj

i don't like "zend way" : we couldn't use _ in directory name

comment:4 Changed 13 years ago by bballizlife

Ok i understand your criteria.

So we can use module~subdir1/subdir2/subdirN/class

Is that ok for you ? My patch can easily be adapted to that new syntax.

comment:5 Changed 13 years ago by laurentj

yes it's ok for me. I think also this is more intuitive

comment:6 Changed 13 years ago by laurentj

Don't forget to add your name to the @contributor tag in the file

comment:7 Changed 13 years ago by bballizlife

Using the syntax module~subdir1/.../class needed to change a little bit the regexp in the jSelectorModule constructor.

I adapt my patch in consequence. This is ticket_84-bballizlife-2.diff

Changed 13 years ago by bballizlife

New patch to use the syntax : module~subdir1/subdir2/class

comment:8 Changed 13 years ago by laurentj

  • Resolution set to fixed
  • Status changed from new to closed

i use bballizlife's patch and improve it because some things were missed. Landed in the trunk.

Note: See TracTickets for help on using tickets.