Exemple #1
0
 public static function register()
 {
     self::$prefix = substr(__CLASS__, 0, strpos(__CLASS__, '_') + 1);
     self::$path = dirname(dirname(realpath(__FILE__))) . DIRECTORY_SEPARATOR;
     // ici est opéré la registration
     spl_autoload_register(array(__CLASS__, 'autoload'));
 }
Exemple #2
0
# This file is part of magix cjQuery.
# The above copyright notice and this permission notice shall be included in
# all copies or substantial portions of the Software.
# Magix cjQuery is a library written in PHP 5.
# It can work with a layer of abstraction, to validate data, handle jQuery code in PHP.
# Copyright (C)Magix cjQuery 2009 Gerits Aurelien
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU Affero General Public License as
# published by the Free Software Foundation, either version 3 of the
# License, or (at your option) any later version.
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
# GNU Affero General Public License for more details.
# You should have received a copy of the GNU Affero General Public License
# along with this program.  If not, see <http://www.gnu.org/licenses/>.
#
# -- END LICENSE BLOCK -----------------------------------
/**
 * 
 * Magix cjQuery
 * 
 * @author Gérits Aurélien
 * @access public
 * @copyright clashdesign
 * @version 0.1
 *
 */
require dirname(__FILE__) . '/_autoload.php';
magixcjquery_Autoloader::register();