3 # FILE: SystemConfiguration.php 5 # Part of the Collection Workflow Integration System (CWIS) 6 # Copyright 2013 Edward Almasy and Internet Scout Research Group 7 # http://scout.wisc.edu/cwis/ 19 # ---- PUBLIC INTERFACE -------------------------------------------------- 38 return $this->UpdateValue(
"TopLinkString", $NewValue);
50 return $this->UpdateValue(
"TopLinkBeginLetter", $NewValue);
62 return $this->UpdateValue(
"TopLinkEndLetter", $NewValue);
73 return $this->UpdateValue(
"AdminEmail", $NewValue);
84 return $this->UpdateValue(
"PasswordMailSubject", $NewValue);
95 return $this->UpdateValue(
"PasswordMailBody", $NewValue);
106 return $this->UpdateValue(
"PasswordResetMailSubject", $NewValue);
117 return $this->UpdateValue(
"PasswordResetMailBody", $NewValue);
128 return $this->UpdateValue(
"MailChangeMailSubject", $NewValue);
139 return $this->UpdateValue(
"MailChangeMailBody", $NewValue);
150 return $this->UpdateValue(
"PortalName", $NewValue);
161 return $this->UpdateValue(
"DefaultActiveUI", $NewValue);
172 return $this->UpdateValue(
"CurrentTheme", $NewValue);
183 return $this->UpdateValue(
"DefaultCharacterSet", $NewValue);
195 return $this->UpdateValue(
"SearchTermsRequired", $NewValue);
207 return $this->UpdateValue(
"ShowNumResourcesEnabled", $NewValue);
218 return $this->UpdateValue(
"AnnouncementsEnabled", $NewValue);
229 return $this->UpdateValue(
"ForumsEnabled", $NewValue);
240 return $this->UpdateValue(
"ForumsAllowHTML", $NewValue);
251 return $this->UpdateValue(
"ForumsUseWYSIWYG", $NewValue);
263 return $this->UpdateValue(
"AllowMultipleUIsEnabled", $NewValue);
277 return $this->UpdateValue(
"ResourceLaunchesNewWindowEnabled", $NewValue);
289 return $this->UpdateValue(
"UserAgentsEnabled", $NewValue);
300 return $this->UpdateValue(
"ResourceRatingsEnabled", $NewValue);
311 return $this->UpdateValue(
"ResourceCommentsEnabled", $NewValue);
337 return $this->UpdateValue(
"IncrementalKeywordSearchEnabled", $NewValue);
349 return $this->UpdateValue(
"ReleaseFlagApproved", $NewValue);
360 return $this->UpdateValue(
"SearchDBEnabled", $NewValue);
372 return $this->UpdateValue(
"RecommenderDBEnabled", $NewValue);
383 return $this->UpdateValue(
"OAISQEnabled", $NewValue);
396 return $this->UpdateValue(
"NumAnnounceOnHomePage", $NewValue);
408 return $this->UpdateValue(
"NumResourcesOnHomePage", $NewValue);
419 return $this->UpdateValue(
"LegalNotice", $NewValue);
430 return $this->UpdateValue(
"DefaultRecordsPerPage", $NewValue);
442 return $this->UpdateValue(
"NumResourcesForSearchFacets", $NewValue);
454 return $this->UpdateValue(
"MaxFacetsPerField", $NewValue);
467 # if new classes per browse page has been specified 469 $NewValue != $this->UpdateValue(
"NumClassesPerBrowsePage",
DB_NOVALUE))
471 # clear all classification links 473 $this->DB->Query(
"UPDATE Classifications SET LinkString=''");
475 return $this->UpdateValue(
"NumClassesPerBrowsePage", $NewValue);
488 return $this->UpdateValue(
"NumColumnsPerBrowsePage", $NewValue);
500 return $this->UpdateValue(
"BrowsingFieldId", $NewValue);
511 return $this->UpdateValue(
"OaiIdDomain", $NewValue);
522 return $this->UpdateValue(
"OaiIdPrefix", $NewValue);
533 return $this->UpdateValue(
"OaiEarliestDate", $NewValue);
544 return $this->UpdateValue(
"OaiDateGranularity", $NewValue);
555 return $this->UpdateValue(
"SiteKeywords", $NewValue);
566 return $this->UpdateValue(
"AboutText", $NewValue);
577 return $this->UpdateValue(
"ContactName", $NewValue);
588 return $this->UpdateValue(
"ContactEmail", $NewValue);
599 return $this->UpdateValue(
"Organization", $NewValue);
610 return $this->UpdateValue(
"OrganizationType", $NewValue);
621 return $this->UpdateValue(
"SiteType", $NewValue);
634 return $this->UpdateValue(
"OkayToListSite", $NewValue);
645 return $this->UpdateValue(
"LastRegisteredOn", $NewValue);
656 return $this->UpdateValue(
"AddAWStatsScript", $NewValue);
669 return $this->UpdateValue(
"DisplayLimitsByDefault", $NewValue);
681 return $this->UpdateValue(
"DefaultSortField", $NewValue);
693 return $this->UpdateValue(
"FieldDisplayFolder", $NewValue);
705 return $this->UpdateValue(
"FieldEditFolder", $NewValue);
718 return $this->UpdateValue(
"CollapseMetadataFieldGroups", $NewValue);
729 return $this->UpdateValue(
"RequireEmailWithFeedback", $NewValue);
741 return $this->UpdateValue(
"SearchEngineUpdatePriority", $NewValue);
754 return $this->UpdateValue(
"RecommenderEngineUpdatePriority", $NewValue);
763 return $this->UpdateValue(
"LogoFileName",
DB_NOVALUE,
"UIStyleConfiguration");
772 return $this->UpdateValue(
"LogoAltText",
DB_NOVALUE,
"UIStyleConfiguration");
781 return $this->UpdateValue(
"LogoWidth",
DB_NOVALUE,
"UIStyleConfiguration");
790 return $this->UpdateValue(
"LogoHeight",
DB_NOVALUE,
"UIStyleConfiguration");
799 return strlen($this->UpdateValue(
"LastRegisteredOn",
DB_NOVALUE))
811 return $this->UpdateValue(
"TitleField", $NewValue);
822 return $this->UpdateValue(
"DescriptionField", $NewValue);
833 return $this->UpdateValue(
"UrlField", $NewValue);
844 return $this->UpdateValue(
"ScreenshotField", $NewValue);
855 return $this->UpdateValue(
"SecureLogin", $NewValue);
866 return $this->UpdateValue(
"EmailLineEnding", $NewValue);
877 return $this->UpdateValue(
"SavedSearchMailTemplate", $NewValue);
890 $NewValue = serialize($NewValue);
893 $Result = unserialize($this->UpdateValue(
"DefaultUserPrivs", $NewValue));
895 if (!is_array($Result))
911 return $this->UpdateValue(
"RootUrlOverride", $NewValue);
922 return $this->UpdateValue(
"PreferHttpHost", $NewValue);
933 return $this->UpdateValue($FieldName, $NewValue);
955 return $this->UpdateValue(
"ShowGroupNamesEnabled", $NewValue);
959 # ---- PRIVATE INTERFACE ------------------------------------------------- 972 private function UpdateValue($FieldName, $NewValue, $Table=
"SystemConfiguration")
976 $SignalResult = $GLOBALS[
"AF"]->SignalEvent(
977 "EVENT_SET_SYSCONFIG_VALUE", array(
978 "FieldName" => $FieldName,
979 "NewValue" => $NewValue));
980 $NewValue = $SignalResult[
"NewValue"];
982 $Value = $this->DB->UpdateValue($Table, $FieldName,
983 $NewValue, NULL, $this->DBFields);
984 $SignalResult = $GLOBALS[
"AF"]->SignalEvent(
985 "EVENT_GET_SYSCONFIG_VALUE", array(
986 "FieldName" => $FieldName,
988 $Value = $SignalResult[
"Value"];
const UNCHANGED_VALUE
This value is used to determine if a value is changed.
NumResourcesForSearchFacets($NewValue=DB_NOVALUE)
Gets or sets the number of resources considered to build search facets.
ContactName($NewValue=DB_NOVALUE)
Gets or sets the contact name system configuration setting.
DefaultCharacterSet($NewValue=DB_NOVALUE)
Gets or sets the default character set system configuration setting.
ResourceRatingsEnabled($NewValue=DB_NOVALUE)
Gets or sets the resource ratings enabled system configuration setting.
DefaultUserPrivs($NewValue=DB_NOVALUE)
Gets or sets the default user privileges system configuration setting.
ReleaseFlagApproved($NewValue=DB_NOVALUE)
Gets or sets the release flag approved system configuration setting.
OkayToListSite($NewValue=DB_NOVALUE)
Gets or sets the okay to list site system configuration setting.
ForumsAllowHTML($NewValue=DB_NOVALUE)
Gets or sets the forums allow html system configuration setting.
PortalName($NewValue=DB_NOVALUE)
Gets or sets the portal name system configuration setting.
ContactEmail($NewValue=DB_NOVALUE)
Gets or sets the contact email system configuration setting.
AddAWStatsScript($NewValue=DB_NOVALUE)
Gets or sets the add AW stats script system configuration setting.
FieldDisplayFolder($NewValue=DB_NOVALUE)
Gets or sets the field display folder system configuration setting.
ResourceLaunchesNewWindowEnabled($NewValue=DB_NOVALUE)
Gets or sets the resource launches new window enabled system configuration setting.
AddGoogleAnalytics($NewValue=DB_NOVALUE)
Method retained for backward compatibility with old interfaces.
MailChangeMailBody($NewValue=DB_NOVALUE)
Gets or sets the mail change mail body system configuration setting.
RecommenderEngineUpdatePriority($NewValue=DB_NOVALUE)
Gets or sets the recommender engine update priority system configuration setting. ...
SQL database abstraction object with smart query caching.
RecommenderDBEnabled($NewValue=DB_NOVALUE)
Gets or sets the recommender database enabled system configuration setting.
TopLinkString($NewValue=DB_NOVALUE)
Gets or sets the top link string system configuration setting.
NumClassesPerBrowsePage($NewValue=DB_NOVALUE)
Gets or sets the number of classes per browse page system configuration setting.
LogoFileName()
Gets or sets the logo file name system configuration setting.
SecureLogin($NewValue=DB_NOVALUE)
Gets or sets the secure login system configuration setting.
MailChangeMailSubject($NewValue=DB_NOVALUE)
Gets or sets the mail change mail subject system configuration setting.
DefaultSortField($NewValue=DB_NOVALUE)
Gets or sets the default sort field system configuration setting.
NumColumnsPerBrowsePage($NewValue=DB_NOVALUE)
Gets or sets the number of columns per browse page system configuration setting.
UrlField($NewValue=DB_NOVALUE)
Gets or sets the url field system configuration setting.
CurrentTheme($NewValue=DB_NOVALUE)
Gets or sets the current theme system configuration setting.
SearchEngineUpdatePriority($NewValue=DB_NOVALUE)
Gets or sets the search engine update priority system configuration setting.
LogoHeight()
Gets or sets the logo height system configuration setting.
DefaultActiveUI($NewValue=DB_NOVALUE)
Gets or sets the default active UI system configuration setting.
UserAgentsEnabled($NewValue=DB_NOVALUE)
Gets or sets the user agents enabled system configuration setting.
ResourceCommentsEnabled($NewValue=DB_NOVALUE)
Gets or sets the resource comments enabled system configuration setting.
OaiDateGranularity($NewValue=DB_NOVALUE)
Gets or sets the OAI date granularity system configuration setting.
SavedSearchMailTemplate($NewValue=DB_NOVALUE)
Gets or sets the saved search mail template system configuration setting.
HasRegistered()
Gets or sets the has registered system configuration setting.
NumAnnounceOnHomePage($NewValue=DB_NOVALUE)
Gets or sets the number of announcements on homepage system configuration setting.
ForumsEnabled($NewValue=DB_NOVALUE)
Gets or sets the forums enabled system configuration setting.
RequireEmailWithFeedback($NewValue=DB_NOVALUE)
Gets or sets the require email with feedback system configuration setting.
CollapseMetadataFieldGroups($NewValue=DB_NOVALUE)
Gets or sets the collapse metadata field groups system configuration setting.
OaiIdDomain($NewValue=DB_NOVALUE)
Gets or sets the OAI ID domain system configuration setting.
__construct()
Constructs a new SystemConfiguration object.
AdminEmail($NewValue=DB_NOVALUE)
Gets or sets the admin email system configuration setting.
ForumsUseWYSIWYG($NewValue=DB_NOVALUE)
Gets or sets the forums use WYSIWYG editor setting.
IncrementalKeywordSearchEnabled($NewValue=DB_NOVALUE)
Gets or sets the incremental keyword search enabled system configuration setting. ...
SearchTermsRequired($NewValue=DB_NOVALUE)
Gets or sets the search terms required system configuration setting.
AllowMultipleUIsEnabled($NewValue=DB_NOVALUE)
Gets or sets the allow multiple UIs enabled system configuration setting.
AnnouncementsEnabled($NewValue=DB_NOVALUE)
Gets or sets the announcements enabled system configuration setting.
OrganizationType($NewValue=DB_NOVALUE)
Gets or sets the organization type system configuration setting.
Value($FieldName, $NewValue=DB_NOVALUE)
Gets or changes a value in the database.
SiteType($NewValue=DB_NOVALUE)
Gets or sets the site type system configuration setting.
DisplayLimitsByDefault($NewValue=DB_NOVALUE)
Gets or sets the display limits by default system configuration setting.
MaxFacetsPerField($NewValue=DB_NOVALUE)
Gets or sets the number of facets considered excessive, above which we won't display the facets...
DescriptionField($NewValue=DB_NOVALUE)
Gets or sets the description field system configuration setting.
LegalNotice($NewValue=DB_NOVALUE)
Gets or sets the legal notice system configuration setting.
OaiEarliestDate($NewValue=DB_NOVALUE)
Gets or sets the OAI earliest date system configuration setting.
Organization($NewValue=DB_NOVALUE)
Gets or sets the organization system configuration setting.
SearchDBEnabled($NewValue=DB_NOVALUE)
Gets or sets the search database enabled system configuration setting.
NumResourcesOnHomePage($NewValue=DB_NOVALUE)
Gets or sets the number of resources on homepage system configuration setting.
AccessibilityWizardEnabled($NewValue=DB_NOVALUE)
Gets or sets the accessibility wizard enabled system configuration setting.
EmailLineEnding($NewValue=DB_NOVALUE)
Gets or sets the email line ending system configuration setting.
SiteKeywords($NewValue=DB_NOVALUE)
Gets or sets the site keywords system configuration setting.
ShowGroupNamesEnabled($NewValue=DB_NOVALUE)
Gets or sets Show Group Names system configuration setting.
PasswordResetMailBody($NewValue=DB_NOVALUE)
Gets or sets the password reset mail body system configuration setting.
FieldEditFolder($NewValue=DB_NOVALUE)
Gets or sets the field edit folder system configuration setting.
ShowNumResourcesEnabled($NewValue=DB_NOVALUE)
Gets or sets the show number of resources enabled system configuration setting.
TopLinkBeginLetter($NewValue=DB_NOVALUE)
Gets or sets the top link begin letter system configuration setting.
PasswordMailSubject($NewValue=DB_NOVALUE)
Gets or sets the password mail subject system configuration setting.
LogoWidth()
Gets or sets the logo width system configuration setting.
RootUrlOverride($NewValue=DB_NOVALUE)
Gets or sets the root URL override system configuration setting.
LogoAltText()
Gets or sets the logo alt text system configuration setting.
PasswordResetMailSubject($NewValue=DB_NOVALUE)
Gets or sets the password reset mail subject system configuration setting.
LastRegisteredOn($NewValue=DB_NOVALUE)
Gets or sets the last registered on system configuration setting.
TopLinkEndLetter($NewValue=DB_NOVALUE)
Gets or sets the top link end letter system configuration setting.
ScreenshotField($NewValue=DB_NOVALUE)
Gets or sets the screenshot field system configuration setting.
DefaultRecordsPerPage($NewValue=DB_NOVALUE)
Gets or sets the default records per page system configuration setting.
BrowsingFieldId($NewValue=DB_NOVALUE)
Gets or sets the browsing field ID system configuration setting.
AboutText($NewValue=DB_NOVALUE)
Gets or sets the about text system configuration setting.
PasswordMailBody($NewValue=DB_NOVALUE)
Gets or sets the password mail body system configuration setting.
PreferHttpHost($NewValue=DB_NOVALUE)
Gets or sets the prefer HTTP_HOST system configuration setting.
OAISQEnabled($NewValue=DB_NOVALUE)
Gets or sets OAISQ enabled system configuration setting.
OaiIdPrefix($NewValue=DB_NOVALUE)
Gets or sets the OAI ID prefix system configuration setting.
TitleField($NewValue=DB_NOVALUE)
Gets or sets the title field system configuration setting.