本文整理汇总了PHP中ilObjStyleSheet::getContentStylePath方法的典型用法代码示例。如果您正苦于以下问题:PHP ilObjStyleSheet::getContentStylePath方法的具体用法?PHP ilObjStyleSheet::getContentStylePath怎么用?PHP ilObjStyleSheet::getContentStylePath使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类ilObjStyleSheet
的用法示例。
在下文中一共展示了ilObjStyleSheet::getContentStylePath方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: __construct
/**
* Constructor
*
* @param object $a_parent_obj
* @param int $table_id
* @param int $a_definition_id
*/
public function __construct($table_id, $a_definition_id = 0)
{
global $tpl;
//TODO Permission-Check
$this->table_id = $table_id;
if (!$a_definition_id) {
$a_definition_id = ilDataCollectionRecordViewViewdefinition::getIdByTableId($this->table_id);
}
// we always need a page object - create on demand
if (!$a_definition_id) {
$viewdef = new ilDataCollectionRecordViewViewdefinition(0, $this->table_id);
$viewdef->create();
$a_definition_id = $viewdef->getId();
}
parent::__construct("dclf", $a_definition_id);
// content style (using system defaults)
include_once "./Services/Style/classes/class.ilObjStyleSheet.php";
$tpl->setCurrentBlock("SyntaxStyle");
$tpl->setVariable("LOCATION_SYNTAX_STYLESHEET", ilObjStyleSheet::getSyntaxStylePath());
$tpl->parseCurrentBlock();
$tpl->setCurrentBlock("ContentStyle");
$tpl->setVariable("LOCATION_CONTENT_STYLESHEET", ilObjStyleSheet::getContentStylePath(0));
$tpl->parseCurrentBlock();
// config
$this->setPreventHTMLUnmasking(true);
$this->setEnabledPCTabs(true);
$this->setEnabledMaps(false);
$this->setEnabledInternalLinks(false);
$this->setEnabledWikiLinks(false);
$this->setEnabledActivation(false);
}
开发者ID:khanhnnvn,项目名称:ilias_E-learning,代码行数:38,代码来源:class.ilDataCollectionRecordViewViewdefinitionGUI.php
示例2: getPageHTML
/**
* Render COPage
*
* @see ilContainerGUI
* @return string
*/
protected function getPageHTML()
{
global $tpl, $ilSetting, $ilUser;
if (!$ilSetting->get("enable_cat_page_edit")) {
return;
}
$page_id = $this->start_object->getObjId();
// if page does not exist, return nothing
include_once "./Services/COPage/classes/class.ilPageUtil.php";
if (!ilPageUtil::_existsAndNotEmpty("cstr", $page_id)) {
return;
}
include_once "./Services/Style/classes/class.ilObjStyleSheet.php";
$tpl->setVariable("LOCATION_CONTENT_STYLESHEET", ilObjStyleSheet::getContentStylePath(0));
$tpl->setCurrentBlock("SyntaxStyle");
$tpl->setVariable("LOCATION_SYNTAX_STYLESHEET", ilObjStyleSheet::getSyntaxStylePath());
$tpl->parseCurrentBlock();
include_once "./Services/Container/classes/class.ilContainerStartObjectsPageGUI.php";
$page_gui = new ilContainerStartObjectsPageGUI($page_id);
include_once "./Services/Style/classes/class.ilObjStyleSheet.php";
$page_gui->setStyleId(ilObjStyleSheet::getEffectiveContentStyleId(0));
$page_gui->setPresentationTitle("");
$page_gui->setTemplateOutput(false);
$page_gui->setHeader("");
return $page_gui->showPage();
}
示例3: __construct
/**
* Constructor
*/
function __construct($a_portfolio_id, $a_id = 0, $a_old_nr = 0, $a_enable_comments = true)
{
global $tpl, $ilSetting;
$this->portfolio_id = (int) $a_portfolio_id;
$this->enable_comments = (bool) $a_enable_comments;
parent::__construct("prtf", $a_id, $a_old_nr);
// content style
include_once "./Services/Style/classes/class.ilObjStyleSheet.php";
$tpl->setCurrentBlock("SyntaxStyle");
$tpl->setVariable("LOCATION_SYNTAX_STYLESHEET", ilObjStyleSheet::getSyntaxStylePath());
$tpl->parseCurrentBlock();
$tpl->setCurrentBlock("ContentStyle");
$tpl->setVariable("LOCATION_CONTENT_STYLESHEET", ilObjStyleSheet::getContentStylePath(0));
$tpl->parseCurrentBlock();
// #11190
$prfa_set = new ilSetting("prfa");
$this->setPreventHTMLUnmasking((bool) $prfa_set->get("mask", false));
// $this->setEnabledMaps(true);
$this->setEnabledInternalLinks(false);
$this->setEnabledPCTabs(true);
$this->setEnabledProfile(true);
if (!$ilSetting->get('disable_wsp_certificates')) {
$this->setEnabledVerification(true);
}
/* embedding blog postings currently disabled
if(!$ilSetting->get('disable_wsp_blogs'))
{
$this->setEnabledBlog(true);
}
*/
$skmg_set = new ilSetting("skmg");
if ($skmg_set->get("enable_skmg")) {
$this->setEnabledSkills(true);
}
}
示例4: __construct
/**
* Constructor
*/
public function __construct()
{
global $tpl;
if (!ilImprint::_exists("impr", 1)) {
$page = new ilImprint("impr");
$page->setId(1);
$page->create();
}
// there is only 1 imprint page
parent::__construct("impr", 1);
// content style (using system defaults)
include_once "./Services/Style/classes/class.ilObjStyleSheet.php";
$tpl->setCurrentBlock("SyntaxStyle");
$tpl->setVariable("LOCATION_SYNTAX_STYLESHEET", ilObjStyleSheet::getSyntaxStylePath());
$tpl->parseCurrentBlock();
$tpl->setCurrentBlock("ContentStyle");
$tpl->setVariable("LOCATION_CONTENT_STYLESHEET", ilObjStyleSheet::getContentStylePath(0));
$tpl->parseCurrentBlock();
// config
$this->setPreventHTMLUnmasking(true);
$this->setEnabledPCTabs(true);
$this->setEnabledMaps(false);
$this->setEnabledInternalLinks(false);
$this->setEnabledWikiLinks(false);
$this->setEnabledActivation(true);
}
示例5: __construct
/**
* @param $table_id
* @param int $a_definition_id
*/
public function __construct($table_id, $a_definition_id = 0)
{
global $tpl, $ilCtrl;
/**
* @var $ilCtrl ilCtrl
*/
$this->ctrl = $ilCtrl;
//TODO Permission-Check
$this->table_id = $table_id;
if (!$a_definition_id) {
$a_definition_id = ilDataCollectionRecordViewViewdefinition::getIdByTableId($this->table_id);
}
// we always need a page object - create on demand
if (!$a_definition_id) {
$viewdef = new ilDataCollectionRecordViewViewdefinition();
$viewdef->setTableId($this->table_id);
$viewdef->setActive(false);
$viewdef->create();
$a_definition_id = $viewdef->getId();
}
parent::__construct("dclf", $a_definition_id);
$this->getPageObject()->setTableId($this->table_id);
// content style (using system defaults)
include_once "./Services/Style/classes/class.ilObjStyleSheet.php";
$tpl->setCurrentBlock("SyntaxStyle");
$tpl->setVariable("LOCATION_SYNTAX_STYLESHEET", ilObjStyleSheet::getSyntaxStylePath());
$tpl->parseCurrentBlock();
$tpl->setCurrentBlock("ContentStyle");
$tpl->setVariable("LOCATION_CONTENT_STYLESHEET", ilObjStyleSheet::getContentStylePath(0));
$tpl->parseCurrentBlock();
}
示例6: forwardToPageObject
public function forwardToPageObject()
{
global $lng, $ilTabs;
$ilTabs->clearTargets();
$ilTabs->setBackTarget($lng->txt('back'), $this->ctrl->getLinkTarget($this), '_top');
// page object
include_once 'Services/COPage/classes/class.ilPageObject.php';
include_once 'Services/COPage/classes/class.ilPageObjectGUI.php';
$lng->loadLanguageModule('content');
include_once './Services/Style/classes/class.ilObjStyleSheet.php';
$this->tpl->setVariable('LOCATION_CONTENT_STYLESHEET', ilObjStyleSheet::getContentStylePath(0));
if (!ilPageObject::_exists('shop', self::SHOP_PAGE_EDITOR_PAGE_ID)) {
// doesn't exist -> create new one
$new_page_object = new ilPageObject('shop');
$new_page_object->setParentId(0);
$new_page_object->setId(self::SHOP_PAGE_EDITOR_PAGE_ID);
$new_page_object->createFromXML();
}
$this->ctrl->setReturnByClass('ilpageobjectgui', 'edit');
$page_gui = new ilPageObjectGUI('shop', self::SHOP_PAGE_EDITOR_PAGE_ID);
$page_gui->setIntLinkHelpDefault('StructureObject', self::SHOP_PAGE_EDITOR_PAGE_ID);
$page_gui->setTemplateTargetVar('ADM_CONTENT');
$page_gui->setLinkXML('');
$page_gui->setFileDownloadLink($this->ctrl->getLinkTargetByClass(array('ilpageobjectgui'), 'downloadFile'));
$page_gui->setFullscreenLink($this->ctrl->getLinkTargetByClass(array('ilpageobjectgui'), 'displayMediaFullscreen'));
$page_gui->setSourcecodeDownloadScript($this->ctrl->getLinkTargetByClass(array('ilpageobjectgui'), 'download_paragraph'));
$page_gui->setPresentationTitle('');
$page_gui->setTemplateOutput(false);
$page_gui->setHeader('');
$page_gui->setEnabledRepositoryObjects(false);
$page_gui->setEnabledFileLists(true);
$page_gui->setEnabledMaps(true);
$page_gui->setEnabledPCTabs(true);
return $this->ctrl->forwardCommand($page_gui);
}
示例7: forwardToPageObject
public function forwardToPageObject()
{
/**
* @var $ilTabs ilTabsGUI
*/
global $ilTabs;
if (!(int) $_GET['pobject_id']) {
ilUtil::sendInfo($this->lng->txt('paya_no_object_selected'));
return $this->showObjects();
}
$this->ctrl->setParameter($this, 'pobject_id', (int) $_GET['pobject_id']);
$this->__initPaymentObject((int) $_GET['pobject_id']);
$this->lng->loadLanguageModule('content');
$ilTabs->clearTargets();
$ilTabs->clearSubTabs();
$ilTabs->setBackTarget($this->lng->txt('back'), $this->ctrl->getLinkTarget($this, 'editDetails'), '_top');
// page objec
include_once 'Services/Payment/classes/class.ilShopPage.php';
include_once 'Services/Payment/classes/class.ilShopPageGUI.php';
include_once './Services/Style/classes/class.ilObjStyleSheet.php';
$this->tpl->setVariable('LOCATION_CONTENT_STYLESHEET', ilObjStyleSheet::getContentStylePath(0));
if (!ilShopPage::_exists('shop', $this->pobject->getPobjectId())) {
// doesn't exist -> create new one
$new_page_object = new ilShopPage();
$new_page_object->setParentId(0);
$new_page_object->setId($this->pobject->getPobjectId());
$new_page_object->createFromXML();
}
$this->ctrl->setReturnByClass('ilshoppagegui', 'edit');
$page_gui = new ilShopPageGUI($this->pobject->getPobjectId());
$this->ctrl->setParameter($page_gui, 'pobject_id', (int) $_GET['pobject_id']);
return $this->ctrl->forwardCommand($page_gui);
}
示例8: __construct
function __construct($a_parent_type, $a_id = 0, $a_old_nr = 0, $a_slm_id = 0)
{
global $tpl, $ilCtrl;
parent::__construct($a_parent_type, $a_id, $a_old_nr);
//associated object
include_once "./Services/Style/classes/class.ilPageLayout.php";
$this->layout_object = new ilPageLayout($a_id);
$this->layout_object->readObject();
// content style
include_once "./Services/Style/classes/class.ilObjStyleSheet.php";
$tpl->setCurrentBlock("ContentStyle");
$tpl->setVariable("LOCATION_CONTENT_STYLESHEET", ilObjStyleSheet::getContentStylePath($this->layout_object->getStyleId()));
$tpl->parseCurrentBlock();
$tpl->setCurrentBlock("SyntaxStyle");
$tpl->setVariable("LOCATION_SYNTAX_STYLESHEET", ilObjStyleSheet::getSyntaxStylePath());
$tpl->setVariable("LOCATION_ADDITIONAL_STYLESHEET", ilObjStyleSheet::getPlaceHolderStylePath());
$tpl->parseCurrentBlock();
$this->setEnabledMaps(false);
$this->setPreventHTMLUnmasking(false);
$this->setEnabledInternalLinks(false);
$this->setEnabledSelfAssessment(false);
$this->setStyleId($this->layout_object->getStyleId());
//set For GUI and associated object
$this->setLayoutMode(true);
$this->obj->setLayoutMode(true);
$this->slm_id = $a_slm_id;
}
示例9: __construct
/**
* Constructor
*
* @param int $a_node
* @param object $a_access_handler
* @param int $a_id
* @param int $a_old_nr
* @param bool $a_enable_notes
* @param bool $a_may_contribute
* @return ilBlogPostingGUI
*/
function __construct($a_node_id, $a_access_handler = null, $a_id = 0, $a_old_nr = 0, $a_enable_public_notes = true, $a_may_contribute = true)
{
global $tpl, $lng;
$lng->loadLanguageModule("blog");
$this->node_id = $a_node_id;
$this->access_handler = $a_access_handler;
$this->enable_public_notes = (bool) $a_enable_public_notes;
parent::__construct("blp", $a_id, $a_old_nr);
// #11151
$this->may_contribute = (bool) $a_may_contribute;
$this->setEnableEditing($a_may_contribute);
// content style
include_once "./Services/Style/classes/class.ilObjStyleSheet.php";
$tpl->setCurrentBlock("SyntaxStyle");
$tpl->setVariable("LOCATION_SYNTAX_STYLESHEET", ilObjStyleSheet::getSyntaxStylePath());
$tpl->parseCurrentBlock();
$tpl->setCurrentBlock("ContentStyle");
$tpl->setVariable("LOCATION_CONTENT_STYLESHEET", ilObjStyleSheet::getContentStylePath(0));
$tpl->parseCurrentBlock();
// #11190
$blga_set = new ilSetting("blga");
$this->setPreventHTMLUnmasking((bool) $blga_set->get("mask", false));
$this->setEnabledMaps(true);
$this->setEnabledInternalLinks(false);
$this->setEnabledWikiLinks(false);
$this->setEnabledPCTabs(true);
$this->setEnabledActivation(true);
}
示例10: __construct
/**
* Constructor
*/
function __construct($a_id = 0, $a_old_nr = 0, $a_prevent_get_id = false, $a_lang = "")
{
global $tpl;
parent::__construct("mep", $a_id, $a_old_nr, $a_prevent_get_id, $a_lang);
// content style
include_once "./Services/Style/classes/class.ilObjStyleSheet.php";
$tpl->setCurrentBlock("ContentStyle");
$tpl->setVariable("LOCATION_CONTENT_STYLESHEET", ilObjStyleSheet::getContentStylePath(0));
$tpl->parseCurrentBlock();
$tpl->setCurrentBlock("SyntaxStyle");
$tpl->setVariable("LOCATION_SYNTAX_STYLESHEET", ilObjStyleSheet::getSyntaxStylePath());
$tpl->parseCurrentBlock();
}
示例11: __construct
public function __construct($a_dcl_object)
{
global $tpl;
$this->dcl_gui_object = $a_dcl_object;
$this->record_id = $_GET['record_id'];
$this->record_obj = ilDataCollectionCache::getRecordCache($this->record_id);
// content style (using system defaults)
include_once "./Services/Style/classes/class.ilObjStyleSheet.php";
$tpl->setCurrentBlock("SyntaxStyle");
$tpl->setVariable("LOCATION_SYNTAX_STYLESHEET", ilObjStyleSheet::getSyntaxStylePath());
$tpl->parseCurrentBlock();
$tpl->setCurrentBlock("ContentStyle");
$tpl->setVariable("LOCATION_CONTENT_STYLESHEET", ilObjStyleSheet::getContentStylePath(0));
$tpl->parseCurrentBlock();
}
示例12: __construct
/**
* Constructor
*/
function __construct($a_portfolio_id, $a_id = 0, $a_old_nr = 0, $a_enable_comments = true)
{
global $tpl;
$this->portfolio_id = (int) $a_portfolio_id;
$this->enable_comments = (bool) $a_enable_comments;
parent::__construct($this->getParentType(), $a_id, $a_old_nr);
$this->getPageObject()->setPortfolioId($this->portfolio_id);
// content style
include_once "./Services/Style/classes/class.ilObjStyleSheet.php";
$tpl->setCurrentBlock("SyntaxStyle");
$tpl->setVariable("LOCATION_SYNTAX_STYLESHEET", ilObjStyleSheet::getSyntaxStylePath());
$tpl->parseCurrentBlock();
$tpl->setCurrentBlock("ContentStyle");
$tpl->setVariable("LOCATION_CONTENT_STYLESHEET", ilObjStyleSheet::getContentStylePath(0));
$tpl->parseCurrentBlock();
}
示例13: forwardToPageObject
public function forwardToPageObject()
{
/**
* @var $ilTabs ilTabsGUI
*/
global $ilTabs;
if (!(int) $_GET['pobject_id']) {
ilUtil::sendInfo($this->lng->txt('paya_no_object_selected'));
return $this->showObjects();
}
$this->ctrl->setParameter($this, 'pobject_id', (int) $_GET['pobject_id']);
$this->__initPaymentObject((int) $_GET['pobject_id']);
$this->lng->loadLanguageModule('content');
$ilTabs->clearTargets();
$ilTabs->clearSubTabs();
$ilTabs->setBackTarget($this->lng->txt('back'), $this->ctrl->getLinkTarget($this, 'editDetails'), '_top');
// page objec
include_once 'Services/COPage/classes/class.ilPageObject.php';
include_once 'Services/COPage/classes/class.ilPageObjectGUI.php';
include_once './Services/Style/classes/class.ilObjStyleSheet.php';
$this->tpl->setVariable('LOCATION_CONTENT_STYLESHEET', ilObjStyleSheet::getContentStylePath(0));
if (!ilPageObject::_exists('shop', $this->pobject->getPobjectId())) {
// doesn't exist -> create new one
$new_page_object = new ilPageObject('shop');
$new_page_object->setParentId(0);
$new_page_object->setId($this->pobject->getPobjectId());
$new_page_object->createFromXML();
}
$this->ctrl->setReturnByClass('ilpageobjectgui', 'edit');
$page_gui = new ilPageObjectGUI('shop', $this->pobject->getPobjectId());
$this->ctrl->setParameter($page_gui, 'pobject_id', (int) $_GET['pobject_id']);
$page_gui->setIntLinkHelpDefault('StructureObject', $this->pobject->getPobjectId());
$page_gui->setTemplateTargetVar('ADM_CONTENT');
$page_gui->setLinkXML('');
$page_gui->setFileDownloadLink($this->ctrl->getLinkTargetByClass(array('ilpageobjectgui'), 'downloadFile'));
$page_gui->setFullscreenLink($this->ctrl->getLinkTargetByClass(array('ilpageobjectgui'), 'displayMediaFullscreen'));
$page_gui->setSourcecodeDownloadScript($this->ctrl->getLinkTargetByClass(array('ilpageobjectgui'), 'download_paragraph'));
$page_gui->setPresentationTitle('');
$page_gui->setTemplateOutput(false);
$page_gui->setHeader('');
$page_gui->setEnabledRepositoryObjects(false);
$page_gui->setEnabledFileLists(true);
$page_gui->setEnabledMaps(true);
$page_gui->setEnabledPCTabs(true);
return $this->ctrl->forwardCommand($page_gui);
}
示例14: __construct
/**
* Constructor
*/
function __construct($a_id = 0, $a_old_nr = 0, $a_prevent_get_id = false)
{
global $tpl;
parent::__construct("mep", $a_id, $a_old_nr, $a_prevent_get_id);
// content style
include_once "./Services/Style/classes/class.ilObjStyleSheet.php";
$tpl->setCurrentBlock("ContentStyle");
$tpl->setVariable("LOCATION_CONTENT_STYLESHEET", ilObjStyleSheet::getContentStylePath(0));
$tpl->parseCurrentBlock();
$tpl->setCurrentBlock("SyntaxStyle");
$tpl->setVariable("LOCATION_SYNTAX_STYLESHEET", ilObjStyleSheet::getSyntaxStylePath());
$tpl->parseCurrentBlock();
$this->setEnabledMaps(false);
$this->setPreventHTMLUnmasking(false);
$this->setEnabledInternalLinks(false);
$this->setEnabledWikiLinks(false);
}
示例15: __construct
/**
* Constructor
*/
public function __construct()
{
global $tpl;
if (!ilImprint::_exists("impr", 1)) {
$page = new ilImprint("impr");
$page->setId(1);
$page->create();
}
// there is only 1 imprint page
parent::__construct("impr", 1);
// content style (using system defaults)
include_once "./Services/Style/classes/class.ilObjStyleSheet.php";
$tpl->setCurrentBlock("SyntaxStyle");
$tpl->setVariable("LOCATION_SYNTAX_STYLESHEET", ilObjStyleSheet::getSyntaxStylePath());
$tpl->parseCurrentBlock();
$tpl->setCurrentBlock("ContentStyle");
$tpl->setVariable("LOCATION_CONTENT_STYLESHEET", ilObjStyleSheet::getContentStylePath(0));
$tpl->parseCurrentBlock();
}