Пример #1
0
 public function getCommandByObjectId(IdRequestObject $idRequestObject)
 {
     $object = steam_factory::get_object($GLOBALS["STEAM"]->get_id(), $idRequestObject->getId());
     if ($object instanceof steam_link) {
         return new \Explorer\Commands\Index();
     }
 }
Пример #2
0
 public function getCommandByObjectId(IdRequestObject $idRequestObject)
 {
     $object = steam_factory::get_object($GLOBALS["STEAM"]->get_id(), $idRequestObject->getId());
     if ($object instanceof steam_docextern) {
         return new \Explorer\Commands\ViewDocument();
     }
 }
Пример #3
0
 public function getCommandByObjectId(IdRequestObject $idRequestObject)
 {
     $forumObject = steam_factory::get_object($GLOBALS["STEAM"]->get_id(), $idRequestObject->getId());
     if ($forumObject instanceof steam_messageboard) {
         return new \Forum\Commands\Index();
     }
 }
Пример #4
0
 public function getCommandByObjectId(IdRequestObject $idRequestObject)
 {
     $object = steam_factory::get_object($GLOBALS["STEAM"]->get_id(), $idRequestObject->getId());
     $type = getObjectType($object);
     if (array_search($type, array("referenceFolder", "userHome", "groupWorkroom", "room", "container")) !== false) {
         return new \Explorer\Commands\Index();
     }
 }
Пример #5
0
 public function getCommandByObjectId(IdRequestObject $idRequestObject)
 {
     $obj = steam_factory::get_object($GLOBALS["STEAM"]->get_id(), $idRequestObject->getId());
     $status = $obj->get_attribute("worksheet_valid");
     if ($status === 1) {
         return new \Worksheet\Commands\Index();
     }
     return null;
 }
Пример #6
0
 public function getCommandByObjectId(IdRequestObject $idRequestObject)
 {
     $pyramidObject = steam_factory::get_object($GLOBALS["STEAM"]->get_id(), $idRequestObject->getId());
     $pyramidType = $pyramidObject->get_attribute("OBJ_TYPE");
     if ($pyramidType != "0" && strStartsWith($pyramidType, "container_pyramiddiscussion")) {
         return new \Pyramiddiscussion\Commands\Index();
     }
     return null;
 }
Пример #7
0
 public function getCommandByObjectId(IdRequestObject $idRequestObject)
 {
     $galleryObject = steam_factory::get_object($GLOBALS["STEAM"]->get_id(), $idRequestObject->getId());
     $galleryType = $galleryObject->get_attribute("bid:collectiontype");
     if ($galleryType === "gallery") {
         return new \Gallery\Commands\Index();
     }
     return null;
 }
Пример #8
0
 public function getCommandByObjectId(IdRequestObject $idRequestObject)
 {
     $waveObject = steam_factory::get_object($GLOBALS["STEAM"]->get_id(), $idRequestObject->getId());
     $waveType = $waveObject->get_attribute("OBJ_TYPE");
     if ($waveType === "container_waveside") {
         return new \Wave\Commands\Index();
     }
     return null;
 }
Пример #9
0
 public function getCommandByObjectId(IdRequestObject $idRequestObject)
 {
     $RapidfeedbackObject = steam_factory::get_object($GLOBALS["STEAM"]->get_id(), $idRequestObject->getId());
     $RapidfeedbackType = $RapidfeedbackObject->get_attribute("OBJ_TYPE");
     if ($RapidfeedbackType != "0" && $RapidfeedbackType == "RAPIDFEEDBACK_CONTAINER") {
         return new \Rapidfeedback\Commands\Index();
     }
     return null;
 }
Пример #10
0
 public function getCommandByObjectId(IdRequestObject $idRequestObject)
 {
     $TCRObject = steam_factory::get_object($GLOBALS["STEAM"]->get_id(), $idRequestObject->getId());
     $TCRType = $TCRObject->get_attribute("OBJ_TYPE");
     if ($TCRType != "0" && $TCRType == "TCR_CONTAINER") {
         return new \TCR\Commands\Index();
     }
     return null;
 }
Пример #11
0
 public function getCommandByObjectId(IdRequestObject $idRequestObject, $method = "view")
 {
     $object = steam_factory::get_object($GLOBALS["STEAM"]->get_id(), $idRequestObject->getId());
     if ($object instanceof steam_room && $object->get_attribute("OBJ_TYPE") == PORTFOLIO_PREFIX . "ARTEFACT") {
         if ($method == "competences") {
             return new \Portfolio\Commands\SetCompetence();
         }
         return new \Portfolio\Commands\ViewArtefact();
     }
 }
Пример #12
0
 public function getCommandByObjectId(IdRequestObject $idRequestObject)
 {
     $portletObject = steam_factory::get_object($GLOBALS["STEAM"]->get_id(), $idRequestObject->getId());
     $portletType = $portletObject->get_attribute("bid:portlet");
     if (!($portletType === "media")) {
         return false;
     }
     if ($idRequestObject->getMethod() == "view") {
         return new \PortletMedia\Commands\Index();
     }
 }
Пример #13
0
 public function getCommandByObjectId(IdRequestObject $idRequestObject)
 {
     //check if the portlet is valid for this object
     $portletObject = steam_factory::get_object($GLOBALS["STEAM"]->get_id(), $idRequestObject->getId());
     $portletType = $portletObject->get_attribute("bid:portlet");
     if (!($portletType === "msg")) {
         return false;
     }
     //return command
     if ($idRequestObject->getMethod() == "view") {
         return new \PortletMsg\Commands\Index();
     }
     if ($idRequestObject->getMethod() == "properties") {
         return new \PortletMsg\Commands\Properties();
     }
 }
Пример #14
0
 public function getCommandByObjectId(IdRequestObject $idRequestObject)
 {
     $portalObject = steam_factory::get_object($GLOBALS["STEAM"]->get_id(), $idRequestObject->getId());
     //is this a portlet? then abort TEST
     $portletType = $portalObject->get_attribute("bid:portlet");
     //TODO: replace this with a better test
     if ($portletType === "msg" || $portletType === "rss" || $portletType === "headline" || $portletType === "appointment" || $portletType === "media" || $portletType === "poll" || $portletType === "topic") {
         return;
     } else {
         //return false;
     }
     $portalType = $portalObject->get_attribute("OBJ_TYPE");
     if ($portalType === "container_portal_bid") {
         if ($idRequestObject->getMethod() == "view") {
             return new \Portal\Commands\Index();
         }
         if ($idRequestObject->getMethod() == "properties") {
             return new \Portal\Commands\Index();
         }
     }
 }
Пример #15
0
 public function getCommandByObjectId(IdRequestObject $idRequestObject)
 {
     //can handle
     $usableObject = false;
     $portalColumnObject = steam_factory::get_object($GLOBALS["STEAM"]->get_id(), $idRequestObject->getId());
     $portalType = $portalColumnObject->get_attribute("OBJ_TYPE");
     if ($portalType === "container_portalColumn_bid") {
         //go on;
     } else {
         return false;
     }
     //is this a portlet? then abort TEST
     $portletType = $portalColumnObject->get_attribute("bid:portlet");
     if ($portletType === "msg") {
         return false;
     } else {
         //return false;
     }
     if ($idRequestObject->getMethod() == "view") {
         return new \PortalColumn\Commands\Index();
     }
 }