當前位置: 首頁>>代碼示例>>PHP>>正文


PHP Factory::run方法代碼示例

本文整理匯總了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();
 }
開發者ID:cywymch,項目名稱:testMvc,代碼行數:8,代碼來源:App.php

示例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);
}
開發者ID:yonchin,項目名稱:Docker-Web,代碼行數:28,代碼來源:docker.php

示例3: Factory

<?php

require 'Classes/Factory.class.php';
$doc = new Factory();
$doc->run(0);
//參數 = 0 輸出List格式的lua,參數 = 1 輸出Map格式的lua
開發者ID:castilla1988,項目名稱:excelToXml-Lua,代碼行數:6,代碼來源:init.php


注:本文中的Factory::run方法示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。