当前位置: 首页>>代码示例>>PHP>>正文


PHP ilObjStyleSheet::lookupObjectStyle方法代码示例

本文整理汇总了PHP中ilObjStyleSheet::lookupObjectStyle方法的典型用法代码示例。如果您正苦于以下问题:PHP ilObjStyleSheet::lookupObjectStyle方法的具体用法?PHP ilObjStyleSheet::lookupObjectStyle怎么用?PHP ilObjStyleSheet::lookupObjectStyle使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在ilObjStyleSheet的用法示例。


在下文中一共展示了ilObjStyleSheet::lookupObjectStyle方法的9个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。

示例1: getXmlExportTailDependencies

 public function getXmlExportTailDependencies($a_entity, $a_target_release, $a_ids)
 {
     $res = array();
     // postings
     include_once "./Modules/Blog/classes/class.ilBlogPosting.php";
     $pg_ids = array();
     foreach ($a_ids as $id) {
         $pages = ilBlogPosting::getAllPostings($id);
         foreach (array_keys($pages) as $p) {
             $pg_ids[] = "blp:" . $p;
         }
     }
     if (sizeof($pg_ids)) {
         $res[] = array("component" => "Services/COPage", "entity" => "pg", "ids" => $pg_ids);
     }
     // style
     $style_ids = array();
     foreach ($a_ids as $id) {
         include_once "./Services/Style/classes/class.ilObjStyleSheet.php";
         $style_id = ilObjStyleSheet::lookupObjectStyle($id);
         if ($style_id > 0) {
             $style_ids[] = $style_id;
         }
     }
     if (sizeof($style_ids)) {
         $res[] = array("component" => "Services/Style", "entity" => "sty", "ids" => $style_ids);
     }
     return $res;
 }
开发者ID:arlendotcn,项目名称:ilias,代码行数:29,代码来源:class.ilBlogExporter.php

示例2: doRead

 protected function doRead()
 {
     global $ilDB;
     $set = $ilDB->query("SELECT * FROM il_blog" . " WHERE id = " . $ilDB->quote($this->id, "integer"));
     $row = $ilDB->fetchAssoc($set);
     $this->setNotesStatus((bool) $row["notes"]);
     $this->setProfilePicture((bool) $row["ppic"]);
     $this->setBackgroundColor($row["bg_color"]);
     $this->setFontColor($row["font_color"]);
     $this->setImage($row["img"]);
     $this->setRSS($row["rss_active"]);
     $this->setApproval($row["approval"]);
     include_once "./Services/Style/classes/class.ilObjStyleSheet.php";
     $this->setStyleSheetId(ilObjStyleSheet::lookupObjectStyle($this->id));
 }
开发者ID:Walid-Synakene,项目名称:ilias,代码行数:15,代码来源:class.ilObjBlog.php

示例3: read

 /**
  * read data of content object
  */
 function read()
 {
     global $ilDB;
     parent::read();
     #		echo "Glossary<br>\n";
     $q = "SELECT * FROM glossary WHERE id = " . $ilDB->quote($this->getId(), "integer");
     $gl_set = $ilDB->query($q);
     $gl_rec = $ilDB->fetchAssoc($gl_set);
     $this->setOnline(ilUtil::yn2tf($gl_rec["is_online"]));
     $this->setVirtualMode($gl_rec["virtual"]);
     $this->setPublicExportFile("xml", $gl_rec["public_xml_file"]);
     $this->setPublicExportFile("html", $gl_rec["public_html_file"]);
     $this->setActiveGlossaryMenu(ilUtil::yn2tf($gl_rec["glo_menu_active"]));
     $this->setActiveDownloads(ilUtil::yn2tf($gl_rec["downloads_active"]));
     $this->setPresentationMode($gl_rec["pres_mode"]);
     $this->setSnippetLength($gl_rec["snippet_length"]);
     $this->setShowTaxonomy($gl_rec["show_tax"]);
     include_once "./Services/Style/classes/class.ilObjStyleSheet.php";
     $this->setStyleSheetId((int) ilObjStyleSheet::lookupObjectStyle($this->getId()));
 }
开发者ID:arlendotcn,项目名称:ilias,代码行数:23,代码来源:class.ilObjGlossary.php

示例4: doRead

 protected function doRead()
 {
     global $ilDB;
     $set = $ilDB->query("SELECT * FROM usr_portfolio" . " WHERE id = " . $ilDB->quote($this->id, "integer"));
     $row = $ilDB->fetchAssoc($set);
     $this->setOnline((bool) $row["is_online"]);
     $this->setPublicComments((bool) $row["comments"]);
     $this->setProfilePicture((bool) $row["ppic"]);
     $this->setBackgroundColor($row["bg_color"]);
     $this->setFontColor($row["font_color"]);
     $this->setImage($row["img"]);
     include_once "./Services/Style/classes/class.ilObjStyleSheet.php";
     $this->setStyleSheetId(ilObjStyleSheet::lookupObjectStyle($this->id));
     $this->doReadCustom($row);
 }
开发者ID:Walid-Synakene,项目名称:ilias,代码行数:15,代码来源:class.ilObjPortfolioBase.php

示例5: afterSave

 protected function afterSave(ilObject $a_new_object)
 {
     global $ilUser, $tree;
     // add default translation
     $a_new_object->addTranslation($a_new_object->getTitle(), $a_new_object->getDescription(), $ilUser->getPref("language"), true);
     // default: sort by title
     include_once 'Services/Container/classes/class.ilContainerSortingSettings.php';
     $settings = new ilContainerSortingSettings($a_new_object->getId());
     $settings->setSortMode(ilContainer::SORT_TITLE);
     $settings->save();
     // inherit parents content style, if not individual
     $parent_ref_id = $tree->getParentId($a_new_object->getRefId());
     $parent_id = ilObject::_lookupObjId($parent_ref_id);
     include_once "./Services/Style/classes/class.ilObjStyleSheet.php";
     $style_id = ilObjStyleSheet::lookupObjectStyle($parent_id);
     if ($style_id > 0) {
         if (ilObjStyleSheet::_lookupStandard($style_id)) {
             ilObjStyleSheet::writeStyleUsage($a_new_object->getId(), $style_id);
         }
     }
     // always send a message
     ilUtil::sendSuccess($this->lng->txt("cat_added"), true);
     $this->ctrl->setParameter($this, "ref_id", $a_new_object->getRefId());
     $this->redirectToRefId($a_new_object->getRefId(), "");
 }
开发者ID:khanhnnvn,项目名称:ilias_E-learning,代码行数:25,代码来源:class.ilObjCategoryGUI.php

示例6: getXmlRecord

 /**
  * Get xml record
  *
  * @param
  * @return
  */
 function getXmlRecord($a_entity, $a_version, $a_set)
 {
     if ($a_entity == "blog") {
         include_once "./Modules/Blog/classes/class.ilObjBlog.php";
         $dir = ilObjBlog::initStorage($a_set["Id"]);
         $a_set["Dir"] = $dir;
         include_once "./Services/Style/classes/class.ilObjStyleSheet.php";
         $a_set["Style"] = ilObjStyleSheet::lookupObjectStyle($a_set["Id"]);
         // #14734
         include_once "./Services/Notes/classes/class.ilNote.php";
         $a_set["Notes"] = ilNote::commentsActivated($a_set["Id"], 0, "blog");
     }
     return $a_set;
 }
开发者ID:arlendotcn,项目名称:ilias,代码行数:20,代码来源:class.ilBlogDataSet.php

示例7: read

 /**
  * read
  *
  * @access public
  * @param
  * @return
  */
 public function read()
 {
     parent::read();
     include_once "./Services/Container/classes/class.ilContainerSortingSettings.php";
     $this->setOrderType(ilContainerSortingSettings::_lookupSortMode($this->getId()));
     include_once "./Services/Style/classes/class.ilObjStyleSheet.php";
     $this->setStyleSheetId((int) ilObjStyleSheet::lookupObjectStyle($this->getId()));
 }
开发者ID:bheyser,项目名称:qplskl,代码行数:15,代码来源:class.ilContainer.php

示例8: read

 /**
  * Read wiki data
  */
 function read()
 {
     global $ilDB;
     parent::read();
     $query = "SELECT * FROM il_wiki_data WHERE id = " . $ilDB->quote($this->getId(), "integer");
     $set = $ilDB->query($query);
     $rec = $ilDB->fetchAssoc($set);
     $this->setOnline($rec["is_online"]);
     $this->setStartPage($rec["startpage"]);
     $this->setShortTitle($rec["short"]);
     $this->setRatingOverall($rec["rating_overall"]);
     $this->setRating($rec["rating"]);
     $this->setRatingAsBlock($rec["rating_side"]);
     $this->setRatingForNewPages($rec["rating_new"]);
     $this->setRatingCategories($rec["rating_ext"]);
     $this->setPublicNotes($rec["public_notes"]);
     $this->setIntroduction($rec["introduction"]);
     $this->setImportantPages($rec["imp_pages"]);
     $this->setPageToc($rec["page_toc"]);
     $this->setEmptyPageTemplate($rec["empty_page_templ"]);
     include_once "./Services/Style/classes/class.ilObjStyleSheet.php";
     $this->setStyleSheetId((int) ilObjStyleSheet::lookupObjectStyle($this->getId()));
 }
开发者ID:bheyser,项目名称:qplskl,代码行数:26,代码来源:class.ilObjWiki.php

示例9: doRead

 protected function doRead()
 {
     global $ilDB;
     $set = $ilDB->query("SELECT * FROM il_blog" . " WHERE id = " . $ilDB->quote($this->id, "integer"));
     $row = $ilDB->fetchAssoc($set);
     $this->setProfilePicture((bool) $row["ppic"]);
     $this->setBackgroundColor($row["bg_color"]);
     $this->setFontColor($row["font_color"]);
     $this->setImage($row["img"]);
     $this->setRSS($row["rss_active"]);
     $this->setApproval($row["approval"]);
     $this->setAbstractShorten($row["abs_shorten"]);
     $this->setAbstractShortenLength($row["abs_shorten_len"]);
     $this->setAbstractImage($row["abs_image"]);
     $this->setAbstractImageWidth($row["abs_img_width"]);
     $this->setAbstractImageHeight($row["abs_img_height"]);
     $this->setKeywords($row["keywords"]);
     $this->setAuthors($row["authors"]);
     $this->setNavMode($row["nav_mode"]);
     $this->setNavModeListPostings($row["nav_list_post"]);
     $this->setNavModeListMonths($row["nav_list_mon"]);
     $this->setOverviewPostings($row["ov_post"]);
     if (trim($row["nav_order"])) {
         $this->setOrder(explode(";", $row["nav_order"]));
     }
     // #14661
     include_once "./Services/Notes/classes/class.ilNote.php";
     $this->setNotesStatus(ilNote::commentsActivated($this->id, 0, "blog"));
     include_once "./Services/Style/classes/class.ilObjStyleSheet.php";
     $this->setStyleSheetId(ilObjStyleSheet::lookupObjectStyle($this->id));
 }
开发者ID:bheyser,项目名称:qplskl,代码行数:31,代码来源:class.ilObjBlog.php


注:本文中的ilObjStyleSheet::lookupObjectStyle方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。