本文整理汇总了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;
}
示例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;
}
示例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);
}
}
示例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());
}
示例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);
}
示例6: __construct
/**
* Configures This class. Sets fop Path.
*/
public function __construct()
{
parent::__construct();
$this->_fopPath = __DIR__ . '/RenderPDF/vendor/fop-1.1rc1/';
}
示例7: __construct
protected function __construct()
{
parent::__construct();
array_shift($this->arguments);
}
示例8: __construct
public function __construct($content)
{
parent::__construct();
$this->content = $content;
}
示例9:
/**
* Constructor
*/
function __construct()
{
parent::__construct();
}
示例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());
}
示例11: __construct
/**
* @param array $profiles
*/
public function __construct(array $profiles)
{
$this->profiles = $profiles;
parent::__construct([]);
}