本文整理汇总了PHP中TemplateManager::getInstance方法的典型用法代码示例。如果您正苦于以下问题:PHP TemplateManager::getInstance方法的具体用法?PHP TemplateManager::getInstance怎么用?PHP TemplateManager::getInstance使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类TemplateManager
的用法示例。
在下文中一共展示了TemplateManager::getInstance方法的7个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: __construct
function __construct($parameter)
{
$this->tm = TemplateManager::getInstance();
if (isset($parameter['page']) && is_numeric($parameter['page'])) {
$this->page = $parameter['page'];
}
}
示例2: __construct
function __construct($paramaters)
{
if (isset($paramaters['webcode'])) {
$this->webcode = $paramaters['webcode'];
}
$this->tm = TemplateManager::getInstance();
}
示例3: __construct
function __construct($parameters)
{
if (!empty($parameters)) {
$this->{$parameters}[0] = true;
}
$this->tm = TemplateManager::getInstance();
}
示例4: __construct
function __construct($paramaters)
{
foreach ($paramaters as $key => $value) {
$this->{$key} = $value;
}
$this->tm = TemplateManager::getInstance();
$this->em = GeocacheManager::getInstance();
}
示例5: __get
/**
*
* @param type $componentName
* @return \template_manager\classes\TComponentShortcutWrapper
*/
public function __get($componentName)
{
// $currentTemplate = TemplateManager::getInstance()->getCurentTemplate();
// $components = $currentTemplate->getComponents();
$components = TemplateManager::getInstance()->getCurrentTemplateComponents();
$nameShort = self::getShortName($componentName);
foreach ($components as $componentName_ => $component_) {
$nameShort_ = self::getShortName($componentName_);
if ($componentName_ == $componentName || $nameShort_ == $nameShort) {
return $component_;
}
}
}
示例6: __construct
function __construct($parameters)
{
$this->error_id = $parameters['id'];
$this->tm = TemplateManager::getInstance();
}
示例7: __construct
function __construct($paramaters)
{
$this->tm = TemplateManager::getInstance();
}