private function getCleanName() { if ($this->object instanceof steam_user) { $title = $this->object->get_attribute(USER_FIRSTNAME) . " " . $this->object->get_attribute(USER_FULLNAME); } else { $user = isUserHome($this->object); if ($user) { $title = getCleanName($user); } else { if ($this->object instanceof steam_trashbin) { $title = "Papierkorb"; } else { $desc = $this->object->get_attribute(OBJ_DESC); if ($desc !== 0 && trim($desc) !== "") { $title = $desc; } else { $title = $this->object->get_name(); } $title = str_replace("'s workarea", "", stripslashes($title)); $title = str_replace(" workarea", "", stripslashes($title)); $title = str_replace("s workroom.", "", $title); $title = str_replace("s workroom", "", $title); $title = preg_replace("/.*'s bookmarks/", "Lesezeichen", $title); } } } return $title; }
function getObjectType($object) { if ($object instanceof \steam_document) { $type = "document"; } else { if ($object instanceof \steam_messageboard) { $type = "forum"; } else { if ($object instanceof \steam_exit) { $type = "referenceFolder"; } else { if ($object instanceof \steam_link) { $type = "referenceFile"; } else { if ($object instanceof \steam_user) { $type = "user"; } else { if ($object instanceof \steam_group) { $type = "group"; } else { if ($object instanceof \steam_trashbin) { $type = "trashbin"; } else { if ($object instanceof \steam_container) { $bidDocType = $object->get_attribute("bid:doctype"); $bidType = $object->get_attribute("bid:collectiontype"); $objType = $object->get_attribute("OBJ_TYPE"); if ($bidDocType === "portal") { $type = "portal_old"; } else { if ($bidType === "gallery") { $type = "gallery"; } else { if ($objType === "container_portal_bid") { $type = "portal"; } else { if ($objType === "container_portalColumn_bid") { $type = "portalColumn"; } else { if ($objType === "container_portlet_bid") { $type = "portalPortlet"; } else { if (isUserHome($object)) { $type = "userHome"; } else { if (isGroupWorkroom($object)) { $type = "groupWorkroom"; } else { if ($object instanceof \steam_room) { $type = "room"; } else { $type = "container"; } } } } } } } } } else { $type = "unknown"; } } } } } } } } return $type; }