本文整理汇总了PHP中ilObjStyleSheet::_determineTag方法的典型用法代码示例。如果您正苦于以下问题:PHP ilObjStyleSheet::_determineTag方法的具体用法?PHP ilObjStyleSheet::_determineTag怎么用?PHP ilObjStyleSheet::_determineTag使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类ilObjStyleSheet
的用法示例。
在下文中一共展示了ilObjStyleSheet::_determineTag方法的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: deleteTemplateObject
/**
* Delete table template
*/
function deleteTemplateObject()
{
global $ilCtrl;
if (is_array($_POST["tid"])) {
foreach ($_POST["tid"] as $tid) {
$cls = $this->object->getTemplateClasses($tid);
foreach ($cls as $k => $cls) {
$ty = $this->object->determineTemplateStyleClassType($_GET["temp_type"], $k);
$ta = ilObjStyleSheet::_determineTag($ty);
$this->object->deleteCharacteristic($ty, $ta, $cls);
}
$this->object->removeTemplate($tid);
}
}
$ilCtrl->redirect($this, "listTemplates");
}
示例2: _getCoreStyles
/**
* Get core styles
*/
static function _getCoreStyles()
{
$c_styles = array();
foreach (self::$core_styles as $cstyle) {
$c_styles[$cstyle["type"] . "." . ilObjStyleSheet::_determineTag($cstyle["type"]) . "." . $cstyle["class"]] = array("type" => $cstyle["type"], "tag" => ilObjStyleSheet::_determineTag($cstyle["type"]), "class" => $cstyle["class"]);
}
return $c_styles;
}
示例3: fillRow
/**
* Standard Version of Fill Row. Most likely to
* be overwritten by derived class.
*/
protected function fillRow($a_set)
{
global $lng, $ilCtrl, $ilAccess, $rbacsystem;
$stypes = ilObjStyleSheet::_getStyleSuperTypes();
$types = $stypes[$this->super_type];
if (!in_array($a_set["type"], $types)) {
return;
}
//var_dump($a_set);
// checkbox row
/* if ($this->expandable)
{
if (!empty($this->core_styles[$a_set["type"].".".
ilObjStyleSheet::_determineTag($a_set["type"]).
".".$a_set["class"]]))
{
$this->tpl->touchBlock("no_checkbox");
}
else
{*/
$this->tpl->setCurrentBlock("checkbox");
$this->tpl->setVariable("CHAR", $a_set["type"] . "." . ilObjStyleSheet::_determineTag($a_set["type"]) . "." . $a_set["class"]);
$this->tpl->parseCurrentBlock();
/* }
}*/
if ($this->hideable) {
if (!ilObjStyleSheet::_isHideable($a_set["type"]) || !empty($this->core_styles[$a_set["type"] . "." . ilObjStyleSheet::_determineTag($a_set["type"]) . "." . $a_set["class"]])) {
$this->tpl->touchBlock("no_hide_checkbox");
} else {
$this->tpl->setCurrentBlock("hide_checkbox");
$this->tpl->setVariable("CHAR", $a_set["type"] . "." . ilObjStyleSheet::_determineTag($a_set["type"]) . "." . $a_set["class"]);
if ($this->style->getHideStatus($a_set["type"], $a_set["class"])) {
$this->tpl->setVariable("CHECKED", "checked='checked'");
}
$this->tpl->parseCurrentBlock();
}
}
// example
$this->tpl->setVariable("EXAMPLE", ilObjStyleSheetGUI::getStyleExampleHTML($a_set["type"], $a_set["class"]));
$tag_str = ilObjStyleSheet::_determineTag($a_set["type"]) . "." . $a_set["class"];
$this->tpl->setVariable("TXT_TAG", $a_set["class"]);
$this->tpl->setVariable("TXT_TYPE", $lng->txt("sty_type_" . $a_set["type"]));
if ($rbacsystem->checkAccess("write", (int) $_GET["ref_id"])) {
$this->tpl->setVariable("TXT_EDIT", $this->lng->txt("edit"));
$ilCtrl->setParameter($this->parent_obj, "tag", $tag_str);
$ilCtrl->setParameter($this->parent_obj, "style_type", $a_set["type"]);
$this->tpl->setVariable("LINK_EDIT_TAG_STYLE", $ilCtrl->getLinkTarget($this->parent_obj, "editTagStyle"));
}
}