- getUser(), getFolder(), getDocument() are now methods of LetoDMS_DMS

This commit is contained in:
steinm 2010-11-26 08:34:47 +00:00
parent c522f28497
commit f81a7063df
5 changed files with 5 additions and 5 deletions

View File

@ -168,7 +168,7 @@ if (!isset($_GET["targetidform2"]) || !is_numeric($_GET["targetidform2"]) || int
UI::exitError(getMLText("admin_tools"),getMLText("invalid_folder_id"));
}
$folderid = $_GET["targetidform2"];
$folder = getFolder($folderid);
$folder = $dms->getFolder($folderid);
if (!is_object($folder)) {
UI::exitError(getMLText("admin_tools"),getMLText("invalid_folder_id"));

View File

@ -52,7 +52,7 @@ if (!isset($_GET["targetidform1"]) || !is_numeric($_GET["targetidform1"]) || int
UI::exitError(getMLText("admin_tools"),getMLText("invalid_folder_id"));
}
$folderid = $_GET["targetidform1"];
$folder = getFolder($folderid);
$folder = $dms->getFolder($folderid);
if (!is_object($folder)) {
UI::exitError(getMLText("admin_tools"),getMLText("invalid_folder_id"));

View File

@ -49,7 +49,7 @@ function add_folder_notify($folder,$userid,$recursefolder,$recursedoc)
// recurse all folder's folders
$subFolders = $folder->getSubFolders();
$subFolders = LetoDMS_DMS::filterAccess($subFolders, getUser($userid), M_READ);
$subFolders = LetoDMS_DMS::filterAccess($subFolders, $dms->getUser($userid), M_READ);
foreach($subFolders as $subFolder)
add_folder_notify($subFolder,$userid,$recursefolder,$recursedoc);

View File

@ -111,7 +111,7 @@ foreach ($entries as $entry){
}
$folderid=substr($entry,strpos($entry,"_")+1);
$folder=getFolder((int)$folderid);
$folder=$dms->getFolder((int)$folderid);
print "<tr>\n";
print "<td><a href=\"../op/op.Download.php?arkname=".$entry."\">".$entry."</a></td>\n";

View File

@ -114,7 +114,7 @@ function printDocumentNotificationList($ret,$deleteaction=true)
print "<th>".getMLText("actions")."</th>\n";
print "</tr></thead>\n<tbody>\n";
foreach ($ret as $ID) {
$doc = getDocument($ID);
$doc = $dms->getDocument($ID);
if (is_object($doc)) {
$owner = $doc->getOwner();
$latest = $doc->getLatestContent();