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


PHP Renderer::__construct方法代码示例

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


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

示例1: __construct

 /**
  * Sets the FO o FO transformation StyleSheet. In case you might want to add
  * it to the config file sfExportGlobals.yml in 
  * step3: {XSLFO: {xslt_output: sheet: ~}}.
  * 
  * @see    %sf_plugins_dir%/NeatReports/config/sfExportGlobals.yml
  */
 public function __construct()
 {
     parent::__construct();
     $toFo = $this->_conf['step3']['XSLFO']['xslt_output']['sheet'];
     $toFo && ($this->_toFo = simplexml_load_file($this->_pluginDir . $toFo));
     $this->_structure = $this->_toFo;
 }
开发者ID:backstageel,项目名称:neatReports,代码行数:14,代码来源:RenderFo.php

示例2: __construct

 /**
  * Sets the FO o HTML transformation StyleSheet. It gets it from the config 
  * file sfExportGlobals.yml in: 
  * step3: {HTML: {xslt_output: sheet: ~}}.
  * 
  * @see    %sf_plugins_dir%/NeatReports/config/sfExportGlobals.yml
  */
 public function __construct()
 {
     parent::__construct();
     $toHtml = $this->_conf['step3']['HTML']['xslt_output']['sheet'];
     $toHtml && ($this->_toHtml = simplexml_load_file($this->_pluginDir . $toHtml));
     $this->_structure = $this->_toHtml;
 }
开发者ID:backstageel,项目名称:neatReports,代码行数:14,代码来源:RenderHtml.php

示例3: __construct

 public function __construct()
 {
     $this->baseDirectory = 'renders/' . Season::getInstance()->nefub_id . '/' . date('Y') . '_wk' . date('W');
     parent::__construct();
     if (isset($_GET['clear']) && $_GET['clear'] == 1 && (isset($_GET['clearall']) && $_GET['clearall'] == 1)) {
         recursive_remove_directory($this->baseDirectory);
     }
 }
开发者ID:rjpijpker,项目名称:nefub-mobile,代码行数:8,代码来源:FrontRenderer.php

示例4: __construct

 public function __construct(array $arguments)
 {
     parent::__construct();
     $this->arguments = $arguments;
     $this->subject = $arguments[1];
     $this->mode = $arguments[2];
     $this->editId = $arguments[3];
     $this->templateBaseDir = '/beheer';
     $this->assign('loggedIn', Account::getLoggedIn());
 }
开发者ID:rjpijpker,项目名称:nefub-mobile,代码行数:10,代码来源:AdminRenderer.php

示例5: __construct

 /**
  * Create a new Renderer, configuring its template directories
  * @param string|array $template_dirs A template directory or an array of potential directories
  */
 public function __construct($template_dirs, \Microsite\App $app)
 {
     parent::__construct($template_dirs, $app);
     #
     # Constructor function. Initialize appropriate member variables.
     #
     $this->_initDetab();
     $this->prepareItalicsAndBold();
     $this->nested_brackets_re = str_repeat('(?>[^\\[\\]]+|\\[', $this->nested_brackets_depth) . str_repeat('\\])*', $this->nested_brackets_depth);
     $this->nested_url_parenthesis_re = str_repeat('(?>[^()\\s]+|\\(', $this->nested_url_parenthesis_depth) . str_repeat('(?>\\)))*', $this->nested_url_parenthesis_depth);
     $this->escape_chars_re = '[' . preg_quote($this->escape_chars) . ']';
     # Sort document, block, and span gamut in ascendant priority order.
     asort($this->document_gamut);
     asort($this->block_gamut);
     asort($this->span_gamut);
 }
开发者ID:ringmaster,项目名称:microsite2,代码行数:20,代码来源:MarkdownRenderer.php

示例6: __construct

 /**
  * Configures This class. Sets fop Path.
  */
 public function __construct()
 {
     parent::__construct();
     $this->_fopPath = __DIR__ . '/RenderPDF/vendor/fop-1.1rc1/';
 }
开发者ID:backstageel,项目名称:neatReports,代码行数:8,代码来源:RenderPdfConsole.php

示例7: __construct

 protected function __construct()
 {
     parent::__construct();
     array_shift($this->arguments);
 }
开发者ID:rjpijpker,项目名称:nefub-mobile,代码行数:5,代码来源:DownloadRenderer.php

示例8: __construct

 public function __construct($content)
 {
     parent::__construct();
     $this->content = $content;
 }
开发者ID:janpoem,项目名称:kephp,代码行数:5,代码来源:Text.php

示例9:

 /**
  * Constructor
  */
 function __construct()
 {
     parent::__construct();
 }
开发者ID:hidenorigoto,项目名称:sfjp-cms2,代码行数:7,代码来源:MarkdownRenderer.class.php

示例10: __construct

 /**
  * Should not be called directly but is public
  * since Renderer is public
  * 
  * @param core_kernel_classes_Resource $resource
  * @param core_kernel_classes_Property $property
  */
 public function __construct(core_kernel_classes_Resource $resource, core_kernel_classes_Property $property)
 {
     $tpl = Template::getTemplate('form' . DIRECTORY_SEPARATOR . 'generis_tree_form.tpl', 'tao');
     parent::__construct($tpl);
     $this->setData('id', 'uid' . md5($property->getUri() . $resource->getUri()));
     $this->setData('title', $property->getLabel());
     $this->setData('resourceUri', $resource->getUri());
     $this->setData('propertyUri', $property->getUri());
 }
开发者ID:nagyist,项目名称:tao-core,代码行数:16,代码来源:class.GenerisTreeForm.php

示例11: __construct

 /**
  * @param array $profiles
  */
 public function __construct(array $profiles)
 {
     $this->profiles = $profiles;
     parent::__construct([]);
 }
开发者ID:ndrx-io,项目名称:profiler,代码行数:8,代码来源:ProcessList.php


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