mirror of
https://git.code.sf.net/p/seeddms/code
synced 2024-11-26 15:32:13 +00:00
- prefixed classes with LetoDMS_ where needed
This commit is contained in:
parent
f1778edd4f
commit
5295252769
|
@ -2772,7 +2772,7 @@ class LetoDMS_AddContentResultSet {
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
if (!strcasecmp($type, "i")) {
|
if (!strcasecmp($type, "i")) {
|
||||||
if (strcasecmp(get_class($reviewer), "User")) {
|
if (strcasecmp(get_class($reviewer), "LetoDMS_User")) {
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
if ($this->_indReviewers == null) {
|
if ($this->_indReviewers == null) {
|
||||||
|
@ -2781,7 +2781,7 @@ class LetoDMS_AddContentResultSet {
|
||||||
$this->_indReviewers[$status][] = $reviewer;
|
$this->_indReviewers[$status][] = $reviewer;
|
||||||
}
|
}
|
||||||
if (!strcasecmp($type, "g")) {
|
if (!strcasecmp($type, "g")) {
|
||||||
if (strcasecmp(get_class($reviewer), "Group")) {
|
if (strcasecmp(get_class($reviewer), "LetoDMS_Group")) {
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
if ($this->_grpReviewers == null) {
|
if ($this->_grpReviewers == null) {
|
||||||
|
@ -2798,7 +2798,7 @@ class LetoDMS_AddContentResultSet {
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
if (!strcasecmp($type, "i")) {
|
if (!strcasecmp($type, "i")) {
|
||||||
if (strcasecmp(get_class($approver), "User")) {
|
if (strcasecmp(get_class($approver), "LetoDMS_User")) {
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
if ($this->_indApprovers == null) {
|
if ($this->_indApprovers == null) {
|
||||||
|
@ -2807,7 +2807,7 @@ class LetoDMS_AddContentResultSet {
|
||||||
$this->_indApprovers[$status][] = $approver;
|
$this->_indApprovers[$status][] = $approver;
|
||||||
}
|
}
|
||||||
if (!strcasecmp($type, "g")) {
|
if (!strcasecmp($type, "g")) {
|
||||||
if (strcasecmp(get_class($approver), "Group")) {
|
if (strcasecmp(get_class($approver), "LetoDMS_Group")) {
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
if ($this->_grpApprovers == null) {
|
if ($this->_grpApprovers == null) {
|
||||||
|
|
|
@ -27,8 +27,8 @@ class LetoDMS_Email {
|
||||||
|
|
||||||
if ($recipient->getEmail()=="") return 0;
|
if ($recipient->getEmail()=="") return 0;
|
||||||
|
|
||||||
if ((!is_object($sender) && strcasecmp(get_class($sender), "User")) ||
|
if ((!is_object($sender) && strcasecmp(get_class($sender), "LetoDMS_User")) ||
|
||||||
(!is_object($recipient) && strcasecmp(get_class($recipient), "User"))) {
|
(!is_object($recipient) && strcasecmp(get_class($recipient), "LetoDMS_User"))) {
|
||||||
return -1;
|
return -1;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -46,8 +46,8 @@ class LetoDMS_Email {
|
||||||
global $settings;
|
global $settings;
|
||||||
if (!$settings->_enableEmail) return 0;
|
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_object($groupRecipient) && strcasecmp(get_class($groupRecipient), "Group"))) {
|
(!is_object($groupRecipient) && strcasecmp(get_class($groupRecipient), "LetoDMS_Group"))) {
|
||||||
return -1;
|
return -1;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -76,7 +76,7 @@ class LetoDMS_Email {
|
||||||
global $settings;
|
global $settings;
|
||||||
if (!$settings->_enableEmail) return 0;
|
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)) {
|
(!is_array($recipients) && count($recipients)==0)) {
|
||||||
return -1;
|
return -1;
|
||||||
}
|
}
|
||||||
|
@ -86,7 +86,7 @@ class LetoDMS_Email {
|
||||||
|
|
||||||
$toList = "";
|
$toList = "";
|
||||||
foreach ($recipients as $recipient) {
|
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()!="")
|
if ($recipient->getEmail()!="")
|
||||||
$toList .= (strlen($toList)==0 ? "" : ", ") . $recipient->getEmail();
|
$toList .= (strlen($toList)==0 ? "" : ", ") . $recipient->getEmail();
|
||||||
|
|
|
@ -176,7 +176,7 @@ class UI {
|
||||||
echo "<li><a href=\"../out/out.Help.php\">".getMLText("help")."</a></li>\n";
|
echo "<li><a href=\"../out/out.Help.php\">".getMLText("help")."</a></li>\n";
|
||||||
echo "<li id=\"search\">\n";
|
echo "<li id=\"search\">\n";
|
||||||
echo "<form action=\"../op/op.Search.php\">";
|
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=\"folderid\" value=\"".$folder->getID()."\" />";
|
||||||
}
|
}
|
||||||
echo "<input type=\"hidden\" name=\"navBar\" value=\"1\" />";
|
echo "<input type=\"hidden\" name=\"navBar\" value=\"1\" />";
|
||||||
|
@ -239,7 +239,7 @@ class UI {
|
||||||
|
|
||||||
global $user, $settings, $theme;
|
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 class=\"localNav\">\n";
|
||||||
echo "</ul>\n";
|
echo "</ul>\n";
|
||||||
return;
|
return;
|
||||||
|
|
Loading…
Reference in New Issue
Block a user