Source for file _class5.funcs.php
Documentation is available at _class5.funcs.php
* Function for handling Classes in PHP 5.
* In PHP4, _class4.funcs.php should be used instead.
* This file is part of Quam Plures - {@link http://quamplures.net/}
* See also {@link https://launchpad.net/quam-plures}.
* @copyright (c) 2009 - 2011 by the Quam Plures developers - {@link http://quamplures.net/}
* @copyright (c)2009 by Francois PLANQUE - {@link http://fplanque.net/}
* Parts of this file are copyright (c)2009 by Daniel HAHLER - {@link http://daniel.hahler.de/}.
* {@internal License choice
* - If you have received this file as part of a package, please find the license.txt file in
* the same folder or the closest folder above for complete license terms.
* - If you have received this file individually (e-g: from http://evocms.cvs.sourceforge.net/)
* then you must choose one of the following licenses before using the file:
* - GNU General Public License 2 (GPL) - http://www.opensource.org/licenses/gpl-license.php
* - Mozilla Public License 1.1 (MPL) - http://www.opensource.org/licenses/mozilla1.1.php
* {@internal Open Source relicensing agreement:
* Daniel HAHLER grants Francois PLANQUE the right to license
* Daniel HAHLER's contributions to this file and the b2evolution project
* under any OSI approved OSS license (http://www.opensource.org/licenses/).
* @author blueyed: Daniel HAHLER.
if( !defined('QP_MAIN_INIT') ) die( 'Please, do not access this page directly.' );
* Autoload the required .class.php file when a class is accessed but not defined yet.
* This gets hooked into spl_autoload_register (preferred) or called through __autoload.
List generated with (executed in ./blogs):
for i in $(find . -name \*.class.php -o -name \*.widget.php); do echo "'$(basename $i .php | tr '[:upper:'] '[:lower:'] | sed 's/.widget$/_widget/; s/.class$//; s/^_//; s/^collsettings$/collectionsettings/; s/^itemlist$/itemlist2/; s/^widget$/componentwidget/; s/^uiwidget$/widget/')' => $(echo $i|sed "s~^./qp_inc/~\$inc_path.'~;s~^./qp_view_admin/~\$admintemplates_path.'/~")',"; done
if( ! isset ($map_class_path) )
global $inc_path, $admintemplates_path;
$_map_class_path = array(
/* SPECIAL: several classes in one file. */
'table' => $inc_path. '_core/ui/_uiwidget.class.php',
'log_noop' => $inc_path. '_core/model/_log.class.php',
'zip_file' => $inc_path. '_ext/_zip_archives.php',
'potfile' => $inc_path. 'locales/_pofile.class.php',
/* AUTOGENERATED LIST: */
'commentlist' => $inc_path. 'comments/model/_commentlist.class.php',
'comment' => $inc_path. 'comments/model/_comment.class.php',
'template' => $inc_path. 'templates/model/_template.class.php',
'templatecache' => $inc_path. 'templates/model/_templatecache.class.php',
'iconlegend' => $inc_path. '_core/ui/_iconlegend.class.php',
'form' => $inc_path. '_core/ui/forms/_form.class.php',
'resultsel' => $inc_path. '_core/ui/results/_resultsel.class.php',
'results' => $inc_path. '_core/ui/results/_results.class.php',
'widget' => $inc_path. '_core/ui/_uiwidget.class.php',
'pagecache' => $inc_path. '_core/model/_pagecache.class.php',
'dataobjectcache' => $inc_path. '_core/model/dataobjects/_dataobjectcache.class.php',
'dataobjectlist' => $inc_path. '_core/model/dataobjects/_dataobjectlist.class.php',
'dataobjectlist2' => $inc_path. '_core/model/dataobjects/_dataobjectlist2.class.php',
'dataobject' => $inc_path. '_core/model/dataobjects/_dataobject.class.php',
'timer' => $inc_path. '_core/model/_timer.class.php',
'log' => $inc_path. '_core/model/_log.class.php',
'sql' => $inc_path. '_core/model/db/_sql.class.php',
'db' => $inc_path. '_core/model/db/_db.class.php',
'filetype' => $inc_path. 'files/model/_filetype.class.php',
'filetypecache' => $inc_path. 'files/model/_filetypecache.class.php',
'filerootcache' => $inc_path. 'files/model/_filerootcache.class.php',
'file' => $inc_path. 'files/model/_file.class.php',
'filecache' => $inc_path. 'files/model/_filecache.class.php',
'filelist' => $inc_path. 'files/model/_filelist.class.php',
'fileroot' => $inc_path. 'files/model/_fileroot.class.php',
'widgetcache' => $inc_path. 'widgets/model/_widgetcache.class.php',
'componentwidget' => $inc_path. 'widgets/model/_widget.class.php',
'session' => $inc_path. 'sessions/model/_session.class.php',
'hitlist' => $inc_path. 'sessions/model/_hitlist.class.php',
'hit' => $inc_path. 'sessions/model/_hit.class.php',
'goal' => $inc_path. 'sessions/model/_goal.class.php',
'idna_convert' => $inc_path. '_ext/idna/_idna_convert.class.php',
'item' => $inc_path. 'items/model/_item.class.php',
'itemlistlight' => $inc_path. 'items/model/_itemlistlight.class.php',
'itemlight' => $inc_path. 'items/model/_itemlight.class.php',
'link' => $inc_path. 'items/model/_link.class.php',
'itemlist2' => $inc_path. 'items/model/_itemlist.class.php',
'itemtype' => $inc_path. 'items/model/_itemtype.class.php',
'itemquery' => $inc_path. 'items/model/_itemquery.class.php',
'linkcache' => $inc_path. 'items/model/_linkcache.class.php',
'itemtypecache' => $inc_path. 'items/model/_itemtypecache.class.php',
'itemcache' => $inc_path. 'items/model/_itemcache.class.php',
'group' => $inc_path. 'users/model/_group.class.php',
'usercache' => $inc_path. 'users/model/_usercache.class.php',
'user' => $inc_path. 'users/model/_user.class.php',
'usersettings' => $inc_path. 'users/model/_usersettings.class.php',
'genericorderedcache' => $inc_path. 'generic/model/_genericorderedcache.class.php',
'genericordered' => $inc_path. 'generic/model/_genericordered.class.php',
'genericcategory' => $inc_path. 'generic/model/_genericcategory.class.php',
'genericcategorycache' => $inc_path. 'generic/model/_genericcategorycache.class.php',
'genericelement' => $inc_path. 'generic/model/_genericelement.class.php',
'genericcache' => $inc_path. 'generic/model/_genericcache.class.php',
'xhtml_validator' => $inc_path. 'xhtml_validator/_xhtml_validator.class.php',
'pofile' => $inc_path. 'locales/_pofile.class.php',
'plugins' => $inc_path. 'plugins/model/_plugins.class.php',
'plugins_admin' => $inc_path. 'plugins/model/_plugins_admin.class.php',
'pluginsettings' => $inc_path. 'plugins/model/_pluginsettings.class.php',
'pluginusersettings' => $inc_path. 'plugins/model/_pluginusersettings.class.php',
'plugins_admin_no_db' => $inc_path. 'plugins/model/_plugins_admin_no_db.class.php',
'plugin' => $inc_path. 'plugins/_plugin.class.php',
'cronjob' => $inc_path. 'cron/model/_cronjob.class.php',
'generalsettings' => $inc_path. 'settings/model/_generalsettings.class.php',
'abstractsettings' => $inc_path. 'settings/model/_abstractsettings.class.php',
'blogcache' => $inc_path. 'collections/model/_blogcache.class.php',
'collectionsettings' => $inc_path. 'collections/model/_collsettings.class.php',
'blog' => $inc_path. 'collections/model/_blog.class.php',
'chaptercache' => $inc_path. 'chapters/model/_chaptercache.class.php',
'chapter' => $inc_path. 'chapters/model/_chapter.class.php',
'adminui_general' => $admintemplates_path. '/_adminUI_general.class.php',
'adminui' => $admintemplates_path. '/wind/_adminUI.class.php',
'menu' => $inc_path. '_core/ui/_menu.class.php',
'rfc822_addresses_class' => $inc_path. '_ext/mime_parser/rfc822_addresses.php',
'mime_parser_class' => $inc_path. '_ext/mime_parser/mime_parser.php',
/* AUTOGENERATED LIST END */
$map_class_path = $_map_class_path;
if( isset ($map_class_path[$classname]) )
require_once $map_class_path[$classname];
* Use spl_autoload_register mechanism, if available (PHP>=5.1.2).
* This way, several autoload functions can be used.
// spl_autoload_register( 'var_dump' );
// PHP<5.1.2: Use the fallback method.
* Load class file. No-op for PHP5, uses __autoload().
|