core

Ticket #24 (accepted Feature Request)

Opened 6 months ago

Last modified 2 weeks ago

Class loader for module

Reported by: mumuri Owned by: Guite
Priority: minor Milestone: 2.0.0
Component: Object Library Version:
Keywords: Cc:

Description

by default a class loader is already implemented with zikula

with this tree

myModule/
myModule/classes
myModule/classes/myPackage/MaClasse.class.php
myModule/pnuser.php
myModule/pnuserapi.php

you can load class like this

Loader::loadClassFromModule("MyModule","myPackage/MaClasse",false,false,"");


if possible, i would like to have a feature to load the class like this

Loader::import("MyModule.myPackage.MaClasse");


with eventualy an "importCore" to load the class from /includes/pnobjlib

AND better like this

Loader::import("MyModule.myPackage.*");


where all the class under "myPackage" will be loaded at once.

thanks in advance

Change History

Changed 6 months ago by markwest

  • milestone 1.0.1 deleted

Changed 5 months ago by markwest

  • milestone set to unassigned

Changed 2 months ago by Guite

  • owner set to Guite
  • status changed from new to accepted
  • milestone changed from unassigned to 2.0.0 RC1

Changed 2 weeks ago by Guite

  • component set to Object Library
  • milestone changed from 2.0.0 RC1 to 2.0.0
Note: See TracTickets for help on using tickets.