- prefixed classes with LetoDMS_ where needed

This commit is contained in:
steinm 2010-11-08 12:41:53 +00:00
parent f1778edd4f
commit 5295252769
3 changed files with 12 additions and 12 deletions

View File

@ -2772,7 +2772,7 @@ class LetoDMS_AddContentResultSet {
return false;
}
if (!strcasecmp($type, "i")) {
if (strcasecmp(get_class($reviewer), "User")) {
if (strcasecmp(get_class($reviewer), "LetoDMS_User")) {
return false;
}
if ($this->_indReviewers == null) {
@ -2781,7 +2781,7 @@ class LetoDMS_AddContentResultSet {
$this->_indReviewers[$status][] = $reviewer;
}
if (!strcasecmp($type, "g")) {
if (strcasecmp(get_class($reviewer), "Group")) {
if (strcasecmp(get_class($reviewer), "LetoDMS_Group")) {
return false;
}
if ($this->_grpReviewers == null) {
@ -2798,7 +2798,7 @@ class LetoDMS_AddContentResultSet {
return false;
}
if (!strcasecmp($type, "i")) {
if (strcasecmp(get_class($approver), "User")) {
if (strcasecmp(get_class($approver), "LetoDMS_User")) {
return false;
}
if ($this->_indApprovers == null) {
@ -2807,7 +2807,7 @@ class LetoDMS_AddContentResultSet {
$this->_indApprovers[$status][] = $approver;
}
if (!strcasecmp($type, "g")) {
if (strcasecmp(get_class($approver), "Group")) {
if (strcasecmp(get_class($approver), "LetoDMS_Group")) {
return false;
}
if ($this->_grpApprovers == null) {

View File

@ -27,8 +27,8 @@ class LetoDMS_Email {
if ($recipient->getEmail()=="") return 0;
if ((!is_object($sender) && strcasecmp(get_class($sender), "User")) ||
(!is_object($recipient) && strcasecmp(get_class($recipient), "User"))) {
if ((!is_object($sender) && strcasecmp(get_class($sender), "LetoDMS_User")) ||
(!is_object($recipient) && strcasecmp(get_class($recipient), "LetoDMS_User"))) {
return -1;
}
@ -46,8 +46,8 @@ class LetoDMS_Email {
global $settings;
if (!$settings->_enableEmail) return 0;
if ((!is_object($sender) && strcasecmp(get_class($sender), "User")) ||
(!is_object($groupRecipient) && strcasecmp(get_class($groupRecipient), "Group"))) {
if ((!is_object($sender) && strcasecmp(get_class($sender), "LetoDMS_User")) ||
(!is_object($groupRecipient) && strcasecmp(get_class($groupRecipient), "LetoDMS_Group"))) {
return -1;
}
@ -76,7 +76,7 @@ class LetoDMS_Email {
global $settings;
if (!$settings->_enableEmail) return 0;
if ((!is_object($sender) && strcasecmp(get_class($sender), "User")) ||
if ((!is_object($sender) && strcasecmp(get_class($sender), "LetoDMS_User")) ||
(!is_array($recipients) && count($recipients)==0)) {
return -1;
}
@ -86,7 +86,7 @@ class LetoDMS_Email {
$toList = "";
foreach ($recipients as $recipient) {
if (is_object($recipient) && !strcasecmp(get_class($recipient), "User")) {
if (is_object($recipient) && !strcasecmp(get_class($recipient), "LetoDMS_User")) {
if ($recipient->getEmail()!="")
$toList .= (strlen($toList)==0 ? "" : ", ") . $recipient->getEmail();

View File

@ -176,7 +176,7 @@ class UI {
echo "<li><a href=\"../out/out.Help.php\">".getMLText("help")."</a></li>\n";
echo "<li id=\"search\">\n";
echo "<form action=\"../op/op.Search.php\">";
if ($folder!=null && is_object($folder) && !strcasecmp(get_class($folder), "Folder")) {
if ($folder!=null && is_object($folder) && !strcasecmp(get_class($folder), "LetoDMS_Folder")) {
echo "<input type=\"hidden\" name=\"folderid\" value=\"".$folder->getID()."\" />";
}
echo "<input type=\"hidden\" name=\"navBar\" value=\"1\" />";
@ -239,7 +239,7 @@ class UI {
global $user, $settings, $theme;
if (!is_object($folder) || strcasecmp(get_class($folder), "Folder")) {
if (!is_object($folder) || strcasecmp(get_class($folder), "LetoDMS_Folder")) {
echo "<ul class=\"localNav\">\n";
echo "</ul>\n";
return;