當前位置: 首頁>>代碼示例>>PHP>>正文


PHP lms_steam::get_root_creator方法代碼示例

本文整理匯總了PHP中lms_steam::get_root_creator方法的典型用法代碼示例。如果您正苦於以下問題:PHP lms_steam::get_root_creator方法的具體用法?PHP lms_steam::get_root_creator怎麽用?PHP lms_steam::get_root_creator使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在lms_steam的用法示例。


在下文中一共展示了lms_steam::get_root_creator方法的9個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。

示例1: get_koala_object_for

 public static function get_koala_object_for($steam_object, $type, $obj_type)
 {
     if (strpos($obj_type, "container_pyramiddiscussion") === 0) {
         return new koala_container_pyramiddiscussion($steam_object, new units_pyramiddiscussion(lms_steam::get_root_creator($steam_object)));
     }
     return FALSE;
 }
開發者ID:rolwi,項目名稱:koala,代碼行數:7,代碼來源:units_pyramiddiscussion.extension.class.php

示例2: get_link_path_internal

 protected function get_link_path_internal($top_object)
 {
     $koala_creator = koala_object::get_koala_object(lms_steam::get_root_creator($this->steam_object));
     $link_path = $koala_creator->get_link_path($top_object);
     $link_path[] = array("name" => $this->get_display_name(), "link" => $koala_creator->get_url() . "units/" . $this->get_id() . "/", "koala_obj" => $this, "obj" => $this->steam_object);
     return $link_path;
 }
開發者ID:rolwi,項目名稱:koala,代碼行數:7,代碼來源:koala_container_routeplaner.class.php

示例3: get_koala_object_for

 public static function get_koala_object_for($steam_object, $type, $obj_type)
 {
     if (strpos($obj_type, "container_pointlist") === 0 && strpos($obj_type, "container_pointlist_studinfo") !== 0) {
         return new koala_container_pointlist($steam_object, new units_pointlist(lms_steam::get_root_creator($steam_object)));
     }
     return FALSE;
 }
開發者ID:rolwi,項目名稱:koala,代碼行數:7,代碼來源:units_pointlist.extension.class.php

示例4: get_koala_object_for

 public static function get_koala_object_for($steam_object, $type, $obj_type)
 {
     if (strpos($obj_type, "docextern_unit_koala") === 0) {
         return new koala_object_docextern($steam_object, new units_extern(lms_steam::get_root_creator($steam_object)));
     }
     return FALSE;
 }
開發者ID:rolwi,項目名稱:koala,代碼行數:7,代碼來源:units_extern.extension.class.php

示例5: get_koala_object_for

 public static function get_koala_object_for($steam_object, $type, $obj_type)
 {
     if (strpos($obj_type, "container_routeplaner") === 0 || strpos($obj_type, "room_routeplaner") === 0) {
         return new koala_container_routeplaner($steam_object, new units_routeplaner(lms_steam::get_root_creator($steam_object)));
     }
     return FALSE;
 }
開發者ID:rolwi,項目名稱:koala,代碼行數:7,代碼來源:units_routeplaner.extension.class.php

示例6: get_koala_object_for

 public static function get_koala_object_for($steam_object, $type, $obj_type)
 {
     if ($obj_type === "container_homework_unit_koala") {
         return new koala_container_homework($steam_object, new units_homework(lms_steam::get_root_creator($steam_object)));
     }
     if ($type == CLASS_CONTAINER && !is_string($obj_type)) {
         $root_env = $steam_object->get_root_environment();
         $env = $steam_object->get_environment();
         if (!is_object($env) || !is_object($root_env) || $root_env->get_id() != $env->get_id()) {
             return FALSE;
         }
         // object is not directly in a workroom
         $root_creator = $root_env->get_creator();
         if (is_object($root_creator) && $root_creator->get_attribute(OBJ_TYPE) !== 'course_learners') {
             return FALSE;
         }
         // object is not in learners' workroom
         return new koala_container_homework($steam_object, new units_homework(lms_steam::get_root_creator($steam_object)));
     }
     return FALSE;
 }
開發者ID:rolwi,項目名稱:koala,代碼行數:21,代碼來源:units_homework.extension.class.php

示例7: get_koala_object_for

 public static function get_koala_object_for($steam_object, $type, $obj_type)
 {
     if ($obj_type === "mediathing_unit_koala") {
         return new koala_object_mediathing($steam_object, new units_mediathing(lms_steam::get_root_creator($steam_object)));
     }
     return FALSE;
 }
開發者ID:rolwi,項目名稱:koala,代碼行數:7,代碼來源:units_mediathing.extension.class.php

示例8: get_url

 public function get_url()
 {
     return koala_object::get_koala_object(lms_steam::get_root_creator($this->steam_object))->get_url() . "units/" . $this->get_id() . "/";
 }
開發者ID:rolwi,項目名稱:koala,代碼行數:4,代碼來源:koala_object_mediathing.class.php

示例9: gettext

     $msg = gettext("Could not place '%OBJECT' into '%CONTAINER'.");
     $_SESSION["problem"] = str_replace(array("%OBJECT", "%CONTAINER"), array($koala_obj->get_display_name(), $koala_container->get_display_name()), $msg);
     header("Location: " . $_SERVER["HTTP_REFERER"]);
     exit;
 }
 $copy = steam_factory::create_copy($GLOBALS["STEAM"]->get_id(), $obj);
 if (!is_object($copy)) {
     $msg = gettext("Could not obtain a copy of '%OBJECT'.");
     $_SESSION["confirmation"] = str_replace(array("%OBJECT", "%CONTAINER"), array($koala_obj->get_display_name(), $koala_container->get_display_name()), $msg);
     header("Location: " . $_SERVER["HTTP_REFERER"]);
     exit;
 }
 if ($copy->move($container)) {
     $access = $koala_obj->get_access_scheme();
     if ($access) {
         $root_creator = lms_steam::get_root_creator($container);
         if (is_object($root_creator)) {
             $koala_creator = koala_object::get_koala_object($root_creator);
             if (is_object($koala_creator) && $koala_creator instanceof koala_group) {
                 $access_desc = $koala_obj->get_access_descriptions($root_creator);
                 if (isset($access_desc[$access]['members']) && isset($access_desc[$access]['steam'])) {
                     $koala_obj->set_access($access, $access_desc[$access]['members'], $access_desc[$access]['steam'], $koala_creator->get_members_group(), $koala_creator->get_staff_group(), $koala_creator->get_admins_group());
                 }
             }
         }
     }
     //TODO: change access permissions for the target/source:
     $msg = gettext("Obtained a copy of '%OBJECT' and placed it into '%CONTAINER'.");
     $_SESSION["confirmation"] = str_replace(array("%OBJECT", "%CONTAINER"), array($koala_obj->get_display_name(), $koala_container->get_display_name()), $msg);
     header("Location: " . $_SERVER["HTTP_REFERER"]);
     exit;
開發者ID:rolwi,項目名稱:koala,代碼行數:31,代碼來源:clipboard_handling.php


注:本文中的lms_steam::get_root_creator方法示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。