當前位置: 首頁>>代碼示例>>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;未經允許,請勿轉載。