本文整理汇总了PHP中Load::charg_dossier_dans_tab方法的典型用法代码示例。如果您正苦于以下问题:PHP Load::charg_dossier_dans_tab方法的具体用法?PHP Load::charg_dossier_dans_tab怎么用?PHP Load::charg_dossier_dans_tab使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Load
的用法示例。
在下文中一共展示了Load::charg_dossier_dans_tab方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: Load
} else {
include_once "chain/connector.chain.default.php";
if (isset($firstchain) && file_exists("chain/connector.chain." . $firstchain . ".php")) {
include_once "chain/connector.chain." . $firstchain . ".php";
$chainconnector = $firstchain;
//echo $firstchain;
} else {
$chainconnector = "default";
}
}
}
//include classes abstract
$chemin_classes = "abstract";
include $chemin_classes . "/class.load.php";
$loader = new Load();
$tab_class = $loader->charg_dossier_dans_tab($chemin_classes);
sort($tab_class);
//print_r($tab_class);
foreach ($tab_class as $class_to_load) {
if (!strstr($class_to_load, "class.load.php")) {
include $class_to_load;
}
}
//charge chains dans tab
$chemin_chain = "chain";
$chaintab = $loader->charg_chain_dans_tab($chemin_chain);
//print_r($chaintab);
//init initer
$initer = array();
$initer['chainconnector'] = $chainconnector;
$initer['loader'] = $loader;
示例2: Load
<?php
session_start();
//to kill en mode prod
ini_set('display_errors', 1);
//error_reporting(e_all);
//include classes abstract
$chemin_abstract_classes = "abstract";
include $chemin_abstract_classes . "/class.load.php";
$loader = new Load();
$tab_class = $loader->charg_dossier_dans_tab($chemin_abstract_classes);
sort($tab_class);
//print_r($tab_class);
foreach ($tab_class as $class_to_load) {
if (!strstr($class_to_load, "class.load.php")) {
include $class_to_load;
}
}
//include classes deploy
$chemin_deploy_classes = "deploy/deployclass";
$tab_class = $loader->charg_dossier_dans_tab($chemin_deploy_classes);
//print_r($tab_class);
foreach ($tab_class as $class_to_load) {
include $class_to_load;
}
//include lib (tpl smarty in deploy)
include "deploy/deploylib/ext/Smarty-3.1.21/libs/Smarty.class.php";
//include conf deploy
$conf = array();
if (file_exists("deploy/conf.deploy.php")) {
include "deploy/conf.deploy.php";