本文整理匯總了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