(Each project requires you to login separately)

core

Ticket #24 (closed Feature Request: fixed)

Opened 13 months ago

Last modified 2 months 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 13 months ago by markwest

  • milestone 1.0.1 deleted

Changed 12 months ago by markwest

  • milestone set to unassigned

Changed 10 months ago by Guite

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

Changed 8 months ago by Guite

  • component set to Object Library
  • milestone changed from 2.0.0 RC1 to 2.0.0

Changed 6 months ago by Guite

(In [25298]) added ZObjectFactory base class, refs #24, #175, #390

Changed 6 months ago by Guite

(In [25299]) added loading of exception subclasses, refs #24, #175, #390

Changed 6 months ago by Guite

(In [25300]) added support for auto class-loading, refs #390, #24

Changed 2 months ago by Guite

  • status changed from accepted to closed
  • resolution set to fixed

Auto loader does handle class loading for you automatically and almost completely.

Note: See TracTickets for help on using tickets.
 
 
Powered by Trac
Design by Arcsin