Note:

If you want to create a new page for developers, you should create it on the Moodle Developer Resource site.

Automatic class loading: Difference between revisions

From MoodleDocs
Line 16: Line 16:


==Class file location==
==Class file location==
==Examples==


==Namespaces==
==Namespaces==

Revision as of 11:59, 8 June 2013

Note: This page is a work-in-progress. Feedback and suggested improvements are welcome. Please join the discussion on moodle.org or use the page comments.

Moodle 2.6


Class naming

All class names must start with Frankenstyle prefix such as mod_forum_:

<?php

// stored in file mod/forum/classes/some_class.php

class mod_forum_some_class {

}

Class file location

Examples

Namespaces

Performance=

See also