本文整理汇总了PHP中Factory::run方法的典型用法代码示例。如果您正苦于以下问题:PHP Factory::run方法的具体用法?PHP Factory::run怎么用?PHP Factory::run使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Factory
的用法示例。
在下文中一共展示了Factory::run方法的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: run
public static function run()
{
require_once 'library/Smarty/Smarty.class.php';
require_once 'core/Loader.class.php';
date_default_timezone_set("Asia/Shanghai");
Loader::init();
Factory::run();
}
示例2: foreach
<?php
include 'config.php';
//上传文件处理
if (!empty($_FILES)) {
foreach ($_FILES['dkAddFile']['error'] as $key => $error) {
if ($error == UPLOAD_ERR_OK) {
$tmp_name = $_FILES['dkAddFile']['tmp_name'][$key];
$name = $_FILES['dkAddFile']['name'][$key];
$fileName = $_FILES['dkAddFile']['name'];
move_uploaded_file($tmp_name, "./{$name}");
}
}
}
isset($_GET['all']) && (print Factory::run($_GET['all']));
isset($_GET['ctnerId']) && (print Factory::run(explode(' ', $_GET['ctnerId'])));
isset($_GET['newCtnerName']) && (print Factory::run(explode(' ', $_GET['ctnerId']), $_GET['newCtnerName']));
isset($_GET['imgId']) && (print Factory::run(explode(' ', $_GET['imgId'])));
isset($_POST['dkTag']) && isset($_POST['dkFileData']) && (print Factory::run($_POST['dkTag'], $_POST['dkFileData']));
$_GET['target'] == 'DockerChart' && (print Factory::run());
$_GET['target'] == 'DockerInfo' && (print Factory::run());
if (isset($_GET['newTag'])) {
list($newRepo, $newTag) = explode(':', $_GET['newTag']);
if (!isset($newTag)) {
$newTag = 'latest';
}
Factory::run(explode(' ', $_GET['imgId']), $newRepo, $newTag);
}
示例3: Factory
<?php
require 'Classes/Factory.class.php';
$doc = new Factory();
$doc->run(0);
//参数 = 0 输出List格式的lua,参数 = 1 输出Map格式的lua