00001 <?php 00002 // 00003 // Definition of kernel include functions 00004 // 00005 // Created on: <05-Mar-2003 10:02:29 amos> 00006 // 00007 // ## BEGIN COPYRIGHT, LICENSE AND WARRANTY NOTICE ## 00008 // SOFTWARE NAME: eZ publish 00009 // SOFTWARE RELEASE: 3.9.x 00010 // COPYRIGHT NOTICE: Copyright (C) 1999-2006 eZ systems AS 00011 // SOFTWARE LICENSE: GNU General Public License v2.0 00012 // NOTICE: > 00013 // This program is free software; you can redistribute it and/or 00014 // modify it under the terms of version 2.0 of the GNU General 00015 // Public License as published by the Free Software Foundation. 00016 // 00017 // This program is distributed in the hope that it will be useful, 00018 // but WITHOUT ANY WARRANTY; without even the implied warranty of 00019 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 00020 // GNU General Public License for more details. 00021 // 00022 // You should have received a copy of version 2.0 of the GNU General 00023 // Public License along with this program; if not, write to the Free 00024 // Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, 00025 // MA 02110-1301, USA. 00026 // 00027 // 00028 // ## END COPYRIGHT, LICENSE AND WARRANTY NOTICE ## 00029 // 00030 00031 /*! \file ezincludefunctions.php 00032 Contains some useful kernel include functions which are nice to use in extensions. 00033 */ 00034 00035 /*! 00036 */ 00037 function kernel_include( $name ) 00038 { 00039 $include = "kernel/$name"; 00040 return include_once( $include ); 00041 } 00042 00043 /*! 00044 */ 00045 function kernel_common( $name ) 00046 { 00047 $name = strtolower( $name ); 00048 $include = "kernel/common/$name.php"; 00049 return include_once( $include ); 00050 } 00051 00052 /*! 00053 */ 00054 function datatype_class( $datatype, $className ) 00055 { 00056 $className = strtolower( $className ); 00057 $include = "kernel/classes/datatypes/$datatype/$className.php"; 00058 return include_once( $include ); 00059 } 00060 00061 ?>
1.6.3