当前位置: 首页>>代码示例>>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;未经允许,请勿转载。