当前位置: 首页>>代码示例>>PHP>>正文


PHP Manager::getAbsoluteURL方法代码示例

本文整理汇总了PHP中Manager::getAbsoluteURL方法的典型用法代码示例。如果您正苦于以下问题:PHP Manager::getAbsoluteURL方法的具体用法?PHP Manager::getAbsoluteURL怎么用?PHP Manager::getAbsoluteURL使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在Manager的用法示例。


在下文中一共展示了Manager::getAbsoluteURL方法的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。

示例1: onCreate

 public function onCreate()
 {
     parent::onCreate();
     $this->setName($this->getId());
     $this->setDojoType('dijit.Editor');
     $this->page->addDojoRequire('dijit.Editor');
     $this->page->addDojoRequire("dijit.Toolbar");
     $this->page->addDojoRequire("dijit._editor.plugins.FontChoice");
     // 'fontName','fontSize','formatBlock'
     $this->page->addDojoRequire("dijit._editor.plugins.TextColor");
     $this->page->addDojoRequire('dojox.editor.plugins.PasteFromWord');
     $this->page->addDojoRequire("dojox.editor.plugins.TablePlugins");
     $this->page->addDojoRequire("dojox.editor.plugins.ResizeTableColumn");
     $this->attributes->dojoProps->dojoProps["extraPlugins"] = "@[\"PasteFromWord\"]";
     $this->attributes->dojoProps->dojoProps["plugins"] = "@[\"cut\",\"copy\"\n            ,\"paste\",\"|\",\"bold\",\"italic\",\"underline\",\"strikethrough\"\n            ,\"subscript\",\"superscript\",\"|\", \"indent\", \"outdent\"\n            ,\"justifyLeft\", \"justifyCenter\", \"justifyRight\",\"|\",\n            {name:\"dijit._editor.plugins.FontChoice\", command:\"fontName\", generic:true},\n            {name: \"insertTable\"},\n            {name: \"modifyTable\"},\n            {name: \"insertTableRowBefore\"},\n            {name: \"insertTableRowAfter\"},\n            {name: \"insertTableColumnBefore\"},\n            {name: \"insertTableColumnAfter\"},\n            {name: \"deleteTableRow\"},\n            {name: \"deleteTableColumn\"},\n            {name: \"colorTableCell\"},\n            {name: \"tableContextMenu\"}]";
     $urlCSS = Manager::getAbsoluteURL('public/scripts/dojox/editor/plugins/resources/editorPlugins.css');
     $this->page->addJsCode("dojo.create(\"link\", {href:'{$urlCSS}', type:'text/css', rel:'stylesheet'}, document.getElementsByTagName('head')[0]);");
     $urlPasteFromWord = Manager::getAbsoluteURL('public/scripts/dojox/editor/plugins/resources/css/PasteFromWord.css');
     $this->page->addJsCode("dojo.create(\"link\", {href:'{$urlPasteFromWord}', type:'text/css', rel:'stylesheet'}, document.getElementsByTagName('head')[0]);");
     $this->setRender('div');
 }
开发者ID:joshuacoddingyou,项目名称:php,代码行数:21,代码来源:meditor.php

示例2: insertScript

 public function insertScript($url)
 {
     $url = Manager::getAbsoluteURL('html/scripts/' . $url);
     $this->scripts->insert($url);
 }
开发者ID:joshuacoddingyou,项目名称:php,代码行数:5,代码来源:mscripts.php

示例3: fill

 function fill($fileInput, $fileOutput, $fileType, $parameters, $classPath, $save)
 {
     if ($this->executionType == 'local') {
         // execute java program at localhost
         $params = array();
         // build a params array as base to json encoding
         if (is_array($parameters)) {
             foreach ($parameters as $pn => $pv) {
                 $params[$pn] = utf8_encode($pv);
             }
         }
         $db = Manager::$conf['db'][$this->dataSource];
         $params['dbUser'] = $db['user'];
         $params['jdbcDriver'] = $db['jdbc']['driver'];
         $params['jdbcDb'] = $db['jdbc']['db'];
         $prefix = substr(uniqid(md5(uniqid(""))), 0, 10);
         $params['pass'] = base64_encode($prefix . $db['password']);
         $params['relatorio'] = $fileInput;
         $params['fileOutput'] = $fileOutput;
         $params['fileType'] = $this->fileType;
         $javaPath = $this->manager->getOptions("javaPath");
         //            $logPath = $this->manager->getConf('home.logs');
         $fileLog = $this->manager->getLog()->getLogFileName(str_replace("\\", "", "Jasper_" . str_replace('/', '', $this->name)) . "_" . substr(uniqid(md5(uniqid(""))), 0, 6) . '.log');
         $json = addslashes(json_encode($params));
         $MJasperPath = Manager::getFrameworkPath('classes/extensions/jasper');
         $debug = $this->manager->getOptions("debug");
         $cmd = $javaPath . "/bin/java -classpath {$classPath} MJasper \"{$json}\"" . ($debug ? " 2> {$fileLog}" : "");
         ////mdump($cmd);
         exec($cmd, $output);
         //var_dump($output);
         if (trim($output[0]) == "end") {
             //no errors!
             if ($this->fileType == "TXT") {
                 // adjust for CR+LF difference between Windows and Linux
                 Mutil::unix2dos($fileOutput);
             }
             if ($save) {
                 // download
                 $this->manager->response->sendDownload($fileOutput);
             } else {
                 // new window
                 $output = Manager::getAbsoluteURL('var/reports/' . $this->fileOutput);
                 $this->manager->getPage()->window($output);
             }
         } else {
             // errors!
             $link = new MLink('', 'aqui', Manager::getActionURL('manager', "logs:{$fileLog}"), 'aqui', '_errors');
             $detalhes = "<br>Para mais detalhes clique " . $link->generate();
             throw new EControlException(implode("<br>", $output) . $detalhes);
         }
     } else {
         if ($this->executionType == 'remote') {
             //Generate report throught another host, via TomCat
             $this->fileOutput = $this->manager->getConf("home.url_jasper") . "?bd={$this->db}&relatorio={$filein}" . $parameters;
             $this->manager->getPage()->window($this->fileOutput);
         }
     }
 }
开发者ID:joshuacoddingyou,项目名称:php,代码行数:58,代码来源:mjasperreport.php


注:本文中的Manager::getAbsoluteURL方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。