本文整理汇总了PHP中UploadHandler::projectFilesPath方法的典型用法代码示例。如果您正苦于以下问题:PHP UploadHandler::projectFilesPath方法的具体用法?PHP UploadHandler::projectFilesPath怎么用?PHP UploadHandler::projectFilesPath使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类UploadHandler
的用法示例。
在下文中一共展示了UploadHandler::projectFilesPath方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: init
public static function init()
{
Constants::$host = self::$host;
Constants::$pass = self::$pass;
Constants::$user = self::$user;
Constants::$database = self::$database;
UploadHandler::$projectFilesPath = ProjectGlobal::$projectFilesPath;
UploadHandler::$rootFilesPath = "/upload/generated_files/";
}
示例2: init
public static function init()
{
Compiler::init(array("css" => "min_single", "js" => "min_single", "getServices" => array("except" => Import::getImportPath() . "service.php"), "global" => array("copy" => array(Import::$uber_src_path . "service.php", Import::getImportPath() . "index.php"), "getImages" => true, "code" => array("tmpl" => array("replace" => array("replaceSrc" => false, "\${images}" => Import::$uber_src_path . "/global/images/")))), "compile" => array(array("id" => "min_single", "minify" => true, "copy" => array(), "code" => array("css" => array("singleFile" => true, "path" => "global/css/"), "js" => array("singleFile" => true, "path" => "global/js/"))), array("id" => "min_multi", "minify" => true, "code" => array("css" => array("singleFile" => false, "path" => "global/css/"), "js" => array("singleFile" => false, "path" => "global/js/"))), array("id" => "unmin", "code" => array("css" => array("singleFile" => false, "path" => "global/css/"), "js" => array("singleFile" => false, "path" => "global/js/"))), array("id" => "unmin_raw", "raw" => true))));
//------------------------------------------------
GlobalMas::$host = self::$host;
GlobalMas::$pass = self::$pass;
GlobalMas::$user = self::$user;
GlobalMas::$database = self::$database;
UploadHandler::$projectFilesPath = ProjectGlobal::$projectFilesPath;
//UploadHandler::$rootFilesPath = "/upload/generated_files/";
self::$filesLocalPath = $_SERVER['DOCUMENT_ROOT'] . "/" . UploadHandler::$rootFilesPath . self::$projectFilesPath;
self::$filesPath = GenFun::get_full_url(self::$filesLocalPath);
}