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


PHP ilObject::setTitle方法代码示例

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


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

示例1: setTitle

 /**
  * set title of survey question pool object
  */
 function setTitle($a_title)
 {
     parent::setTitle($a_title);
 }
开发者ID:arlendotcn,项目名称:ilias,代码行数:7,代码来源:class.ilObjSurveyQuestionPool.php

示例2: setTitle

 /**
  * set title of content object
  */
 function setTitle($a_title)
 {
     parent::setTitle($a_title);
     //		$this->meta_data->setTitle($a_title);
 }
开发者ID:Walid-Synakene,项目名称:ilias,代码行数:8,代码来源:class.ilObjContentObject.php

示例3: createNull

 /**	
  * Creates a dav null object as a child of this object.
  * null objects are used for locking names.
  *
  * @param	string		the name of the null object.
  * @return	ilObjectDAV	returns the created object, or null if creation failed.
  */
 function createNull($name)
 {
     global $tree;
     // create and insert Folder in tree
     require_once './Services/Object/classes/class.ilObject.php';
     $newObj = new ilObject(0);
     $newObj->setType('null');
     $newObj->setTitle($name);
     $newObj->create();
     $newObj->createReference();
     $newObj->setPermissions($this->getRefId());
     $newObj->putInTree($this->getRefId());
     require_once 'class.ilObjNullDAV.php';
     $objDAV = new ilObjNullDAV($newObj->getRefId(), $newObj);
     return $objDAV;
 }
开发者ID:arlendotcn,项目名称:ilias,代码行数:23,代码来源:class.ilObjectDAV.php

示例4: setTitle

 final function setTitle($a_title)
 {
     return parent::setTitle($a_title);
 }
开发者ID:Walid-Synakene,项目名称:ilias,代码行数:4,代码来源:class.ilObject2.php

示例5: testTreeTrash

 public function testTreeTrash()
 {
     global $tree;
     $obj = new ilObject();
     $obj->setType("xxx");
     $obj->setTitle("TestObject");
     $obj->setDescription("TestDescription");
     $obj->setImportId("imp_44");
     $obj->create();
     $obj->createReference();
     $id = $obj->getId();
     $ref_id = $obj->getRefId();
     $obj = new ilObject($ref_id);
     $obj->putInTree(ROOT_FOLDER_ID);
     $obj->createRoleFolder();
     $obj->setPermissions(ROOT_FOLDER_ID);
     if ($tree->isInTree($ref_id)) {
         $value .= "tree1-";
     }
     if (ilObject::_hasUntrashedReference($id)) {
         $value .= "tree2-";
     }
     // isSaved() uses internal cache!
     $tree->useCache(false);
     $tree->saveSubTree($ref_id, true);
     if ($tree->isDeleted($ref_id)) {
         $value .= "tree3-";
     }
     if ($tree->isSaved($ref_id)) {
         $value .= "tree4-";
     }
     if (ilObject::_isInTrash($ref_id)) {
         $value .= "tree5-";
     }
     if (!ilObject::_hasUntrashedReference($id)) {
         $value .= "tree6-";
     }
     $saved_tree = new ilTree(-(int) $ref_id);
     $node_data = $saved_tree->getNodeData($ref_id);
     $saved_tree->deleteTree($node_data);
     if (!ilObject::_isInTrash($ref_id)) {
         $value .= "tree7-";
     }
     $obs = ilUtil::_getObjectsByOperations("cat", "read");
     foreach ($obs as $ob) {
         if (ilObject::_lookupType(ilObject::_lookupObjId($ob)) != "cat") {
             $value .= "nocat-";
         }
     }
     $obj->delete();
     $this->assertEquals("tree1-tree2-tree3-tree4-tree5-tree6-tree7-", $value);
 }
开发者ID:Walid-Synakene,项目名称:ilias,代码行数:52,代码来源:ilObjectTest.php


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