Commit 63396e03d5ec378a7f3d1253399eb4324af88722
1 parent
85f1e314
KTS-1687
"Double quote to single quote conversion" Fixed. Reviewed by: Kevin Fourie git-svn-id: https://kt-dms.svn.sourceforge.net/svnroot/kt-dms/trunk@6256 c91229c3-7414-0410-bfa2-8a42b809f60b
Showing
1 changed file
with
51 additions
and
51 deletions
plugins/ktcore/KTCorePlugin.php
| @@ -29,7 +29,7 @@ require_once(KT_LIB_DIR . '/plugins/plugin.inc.php'); | @@ -29,7 +29,7 @@ require_once(KT_LIB_DIR . '/plugins/plugin.inc.php'); | ||
| 29 | 29 | ||
| 30 | class KTCorePlugin extends KTPlugin { | 30 | class KTCorePlugin extends KTPlugin { |
| 31 | var $bAlwaysInclude = true; | 31 | var $bAlwaysInclude = true; |
| 32 | - var $sNamespace = "ktcore.plugin"; | 32 | + var $sNamespace = 'ktcore.plugin'; |
| 33 | var $iOrder = -25; | 33 | var $iOrder = -25; |
| 34 | var $sFriendlyName = null; | 34 | var $sFriendlyName = null; |
| 35 | 35 | ||
| @@ -72,8 +72,8 @@ class KTCorePlugin extends KTPlugin { | @@ -72,8 +72,8 @@ class KTCorePlugin extends KTPlugin { | ||
| 72 | 72 | ||
| 73 | 73 | ||
| 74 | $this->registerNotificationHandler('KTAssistNotification', 'ktcore/assist', 'KTAssist.php'); | 74 | $this->registerNotificationHandler('KTAssistNotification', 'ktcore/assist', 'KTAssist.php'); |
| 75 | - $this->registerNotificationHandler("KTSubscriptionNotification", "ktcore/subscriptions", KT_LIB_DIR . '/dashboard/Notification.inc.php'); | ||
| 76 | - $this->registerNotificationHandler("KTWorkflowNotification", "ktcore/workflow", KT_LIB_DIR . '/dashboard/Notification.inc.php'); | 75 | + $this->registerNotificationHandler('KTSubscriptionNotification', 'ktcore/subscriptions', KT_LIB_DIR . '/dashboard/Notification.inc.php'); |
| 76 | + $this->registerNotificationHandler('KTWorkflowNotification', 'ktcore/workflow', KT_LIB_DIR . '/dashboard/Notification.inc.php'); | ||
| 77 | 77 | ||
| 78 | 78 | ||
| 79 | // Permissions | 79 | // Permissions |
| @@ -109,19 +109,19 @@ class KTCorePlugin extends KTPlugin { | @@ -109,19 +109,19 @@ class KTCorePlugin extends KTPlugin { | ||
| 109 | 'KTAdminSectionNavigation', 'ktcore.portlets.adminnavigation', | 109 | 'KTAdminSectionNavigation', 'ktcore.portlets.adminnavigation', |
| 110 | 'KTPortlets.php'); | 110 | 'KTPortlets.php'); |
| 111 | 111 | ||
| 112 | - $this->registerColumn(_kt("Title"), 'ktcore.columns.title', 'AdvancedTitleColumn', 'KTColumns.inc.php'); | ||
| 113 | - $this->registerColumn(_kt("Selection"), 'ktcore.columns.selection', 'AdvancedSelectionColumn', 'KTColumns.inc.php'); | ||
| 114 | - $this->registerColumn(_kt("Single Selection"), 'ktcore.columns.singleselection', 'AdvancedSingleSelectionColumn', 'KTColumns.inc.php'); | ||
| 115 | - $this->registerColumn(_kt("Workflow State"), 'ktcore.columns.workflow_state', 'AdvancedWorkflowColumn', 'KTColumns.inc.php'); | ||
| 116 | - $this->registerColumn(_kt("Creation Date"), 'ktcore.columns.creationdate', 'CreationDateColumn', 'KTColumns.inc.php'); | ||
| 117 | - $this->registerColumn(_kt("Modification Date"), 'ktcore.columns.modificationdate', 'ModificationDateColumn', 'KTColumns.inc.php'); | ||
| 118 | - $this->registerColumn(_kt("Creator"), 'ktcore.columns.creator', 'CreatorColumn', 'KTColumns.inc.php'); | ||
| 119 | - $this->registerColumn(_kt("Download File"), 'ktcore.columns.download', 'AdvancedDownloadColumn', 'KTColumns.inc.php'); | ||
| 120 | - $this->registerColumn(_kt("Document ID"), 'ktcore.columns.docid', 'DocumentIDColumn', 'KTColumns.inc.php'); | ||
| 121 | - $this->registerColumn(_kt("Open Containing Folder"), 'ktcore.columns.containing_folder', 'ContainingFolderColumn', 'KTColumns.inc.php'); | 112 | + $this->registerColumn(_kt('Title'), 'ktcore.columns.title', 'AdvancedTitleColumn', 'KTColumns.inc.php'); |
| 113 | + $this->registerColumn(_kt('Selection'), 'ktcore.columns.selection', 'AdvancedSelectionColumn', 'KTColumns.inc.php'); | ||
| 114 | + $this->registerColumn(_kt('Single Selection'), 'ktcore.columns.singleselection', 'AdvancedSingleSelectionColumn', 'KTColumns.inc.php'); | ||
| 115 | + $this->registerColumn(_kt('Workflow State'), 'ktcore.columns.workflow_state', 'AdvancedWorkflowColumn', 'KTColumns.inc.php'); | ||
| 116 | + $this->registerColumn(_kt('Creation Date'), 'ktcore.columns.creationdate', 'CreationDateColumn', 'KTColumns.inc.php'); | ||
| 117 | + $this->registerColumn(_kt('Modification Date'), 'ktcore.columns.modificationdate', 'ModificationDateColumn', 'KTColumns.inc.php'); | ||
| 118 | + $this->registerColumn(_kt('Creator'), 'ktcore.columns.creator', 'CreatorColumn', 'KTColumns.inc.php'); | ||
| 119 | + $this->registerColumn(_kt('Download File'), 'ktcore.columns.download', 'AdvancedDownloadColumn', 'KTColumns.inc.php'); | ||
| 120 | + $this->registerColumn(_kt('Document ID'), 'ktcore.columns.docid', 'DocumentIDColumn', 'KTColumns.inc.php'); | ||
| 121 | + $this->registerColumn(_kt('Open Containing Folder'), 'ktcore.columns.containing_folder', 'ContainingFolderColumn', 'KTColumns.inc.php'); | ||
| 122 | 122 | ||
| 123 | - $this->registerView(_kt("Browse Documents"), 'ktcore.views.browse'); | ||
| 124 | - $this->registerView(_kt("Search"), 'ktcore.views.search'); | 123 | + $this->registerView(_kt('Browse Documents'), 'ktcore.views.browse'); |
| 124 | + $this->registerView(_kt('Search'), 'ktcore.views.search'); | ||
| 125 | 125 | ||
| 126 | // workflow triggers | 126 | // workflow triggers |
| 127 | $this->registerWorkflowTrigger('ktcore.workflowtriggers.permissionguard', 'PermissionGuardTrigger', 'KTWorkflowTriggers.inc.php'); | 127 | $this->registerWorkflowTrigger('ktcore.workflowtriggers.permissionguard', 'PermissionGuardTrigger', 'KTWorkflowTriggers.inc.php'); |
| @@ -187,84 +187,84 @@ class KTCorePlugin extends KTPlugin { | @@ -187,84 +187,84 @@ class KTCorePlugin extends KTPlugin { | ||
| 187 | 187 | ||
| 188 | function setupAdmin() { | 188 | function setupAdmin() { |
| 189 | // set up the categories. | 189 | // set up the categories. |
| 190 | - $this->registerAdminCategory("principals", _kt("Users and Groups"), | ||
| 191 | - _kt("Control which users can log in, and are part of which groups and organisational units, from these management panels.")); | ||
| 192 | - $this->registerAdminCategory("security", _kt("Security Management"), | ||
| 193 | - _kt("Assign permissions to users and groups, and specify which permissions are required to interact with various parts of the Document Management System.")); | 190 | + $this->registerAdminCategory('principals', _kt('Users and Groups'), |
| 191 | + _kt('Control which users can log in, and are part of which groups and organisational units, from these management panels.')); | ||
| 192 | + $this->registerAdminCategory('security', _kt('Security Management'), | ||
| 193 | + _kt('Assign permissions to users and groups, and specify which permissions are required to interact with various parts of the Document Management System.')); | ||
| 194 | //$this->registerAdminCategory("plugins", _kt("Plugin Management"), | 194 | //$this->registerAdminCategory("plugins", _kt("Plugin Management"), |
| 195 | // _kt("Control which plugins are loaded, register new plugins and configure individual plugins.")); | 195 | // _kt("Control which plugins are loaded, register new plugins and configure individual plugins.")); |
| 196 | - $this->registerAdminCategory("storage", _kt("Document Storage"), | ||
| 197 | - _kt("Manage checked-out, archived and deleted documents.")); | ||
| 198 | - $this->registerAdminCategory("documents", _kt("Document Metadata and Workflow Configuration"), | ||
| 199 | - _kt("Configure the document metadata: Document Types, Document Fieldsets, Link Types and Workflows.")); | ||
| 200 | - $this->registerAdminCategory("misc", _kt("Miscellaneous"), | ||
| 201 | - _kt("Various settings which do not fit into the other categories, including managing help and saved searches.")); | 196 | + $this->registerAdminCategory('storage', _kt('Document Storage'), |
| 197 | + _kt('Manage checked-out, archived and deleted documents.')); | ||
| 198 | + $this->registerAdminCategory('documents', _kt('Document Metadata and Workflow Configuration'), | ||
| 199 | + _kt('Configure the document metadata: Document Types, Document Fieldsets, Link Types and Workflows.')); | ||
| 200 | + $this->registerAdminCategory('misc', _kt('Miscellaneous'), | ||
| 201 | + _kt('Various settings which do not fit into the other categories, including managing help and saved searches.')); | ||
| 202 | 202 | ||
| 203 | // users and groups | 203 | // users and groups |
| 204 | - $this->registerAdminPage("users", 'KTUserAdminDispatcher', "principals", | ||
| 205 | - _kt("Manage Users"), _kt("Add or remove users from the system."), | 204 | + $this->registerAdminPage('users', 'KTUserAdminDispatcher', 'principals', |
| 205 | + _kt('Manage Users'), _kt('Add or remove users from the system.'), | ||
| 206 | 'admin/userManagement.php', null); | 206 | 'admin/userManagement.php', null); |
| 207 | - $this->registerAdminPage("groups", 'KTGroupAdminDispatcher', "principals", | ||
| 208 | - _kt("Manage Groups"), _kt("Add or remove groups from the system."), | 207 | + $this->registerAdminPage('groups', 'KTGroupAdminDispatcher', 'principals', |
| 208 | + _kt('Manage Groups'), _kt('Add or remove groups from the system.'), | ||
| 209 | 'admin/groupManagement.php', null); | 209 | 'admin/groupManagement.php', null); |
| 210 | - $this->registerAdminPage("units", 'KTUnitAdminDispatcher', "principals", | ||
| 211 | - _kt("Control Units"), _kt("Specify which organisational units are available within the repository."), | 210 | + $this->registerAdminPage('units', 'KTUnitAdminDispatcher', 'principals', |
| 211 | + _kt('Control Units'), _kt('Specify which organisational units are available within the repository.'), | ||
| 212 | 'admin/unitManagement.php', null); | 212 | 'admin/unitManagement.php', null); |
| 213 | 213 | ||
| 214 | // security | 214 | // security |
| 215 | - $this->registerAdminPage("permissions", 'ManagePermissionsDispatcher', "security", | ||
| 216 | - _kt("Permissions"), _kt("Create or delete permissions."), 'admin/managePermissions.php', null); | ||
| 217 | - $this->registerAdminPage("roles", 'RoleAdminDispatcher', "security", | ||
| 218 | - _kt("Roles"), _kt("Create or delete roles"), | 215 | + $this->registerAdminPage('permissions', 'ManagePermissionsDispatcher', 'security', |
| 216 | + _kt('Permissions'), _kt('Create or delete permissions.'), 'admin/managePermissions.php', null); | ||
| 217 | + $this->registerAdminPage('roles', 'RoleAdminDispatcher', 'security', | ||
| 218 | + _kt('Roles'), _kt('Create or delete roles'), | ||
| 219 | 'admin/roleManagement.php', null); | 219 | 'admin/roleManagement.php', null); |
| 220 | - $this->registerAdminPage("conditions", 'KTConditionDispatcher', "security", | ||
| 221 | - _kt("Dynamic Conditions"), | ||
| 222 | - _kt("Manage criteria which determine whether a user is permitted to perform a system action."), | 220 | + $this->registerAdminPage('conditions', 'KTConditionDispatcher', 'security', |
| 221 | + _kt('Dynamic Conditions'), | ||
| 222 | + _kt('Manage criteria which determine whether a user is permitted to perform a system action.'), | ||
| 223 | 'admin/conditions.php', null); | 223 | 'admin/conditions.php', null); |
| 224 | 224 | ||
| 225 | // documents | 225 | // documents |
| 226 | - $this->registerAdminPage("typemanagement", 'KTDocumentTypeDispatcher', 'documents', | 226 | + $this->registerAdminPage('typemanagement', 'KTDocumentTypeDispatcher', 'documents', |
| 227 | _kt('Document Types'), | 227 | _kt('Document Types'), |
| 228 | _kt('Manage the different classes of document which can be added to the system.'), | 228 | _kt('Manage the different classes of document which can be added to the system.'), |
| 229 | 'admin/documentTypes.php', null); | 229 | 'admin/documentTypes.php', null); |
| 230 | - $this->registerAdminPage("fieldmanagement2", 'KTDocumentFieldDispatcher', 'documents', | 230 | + $this->registerAdminPage('fieldmanagement2', 'KTDocumentFieldDispatcher', 'documents', |
| 231 | _kt('Document Fieldsets'), | 231 | _kt('Document Fieldsets'), |
| 232 | _kt('Manage the different types of information that can be associated with classes of documents.'), | 232 | _kt('Manage the different types of information that can be associated with classes of documents.'), |
| 233 | 'admin/documentFieldsv2.php', null); | 233 | 'admin/documentFieldsv2.php', null); |
| 234 | - $this->registerAdminPage("workflows_2", 'KTWorkflowAdminV2', 'documents', | 234 | + $this->registerAdminPage('workflows_2', 'KTWorkflowAdminV2', 'documents', |
| 235 | _kt('Workflows'), _kt('Configure the process documents go through.'), | 235 | _kt('Workflows'), _kt('Configure the process documents go through.'), |
| 236 | 'admin/workflowsv2.php', null); | 236 | 'admin/workflowsv2.php', null); |
| 237 | 237 | ||
| 238 | // storage | 238 | // storage |
| 239 | - $this->registerAdminPage("checkout", 'KTCheckoutAdminDispatcher', 'storage', | 239 | + $this->registerAdminPage('checkout', 'KTCheckoutAdminDispatcher', 'storage', |
| 240 | _kt('Checked Out Document Control'), | 240 | _kt('Checked Out Document Control'), |
| 241 | _kt('Override the checked-out status of documents if a user has failed to do so.'), | 241 | _kt('Override the checked-out status of documents if a user has failed to do so.'), |
| 242 | 'admin/documentCheckout.php', null); | 242 | 'admin/documentCheckout.php', null); |
| 243 | - $this->registerAdminPage("archived", 'ArchivedDocumentsDispatcher', 'storage', | ||
| 244 | - _kt('Archived Document Restoration'), _kt("Restore old (archived) documents, usually at a user's request."), | 243 | + $this->registerAdminPage('archived', 'ArchivedDocumentsDispatcher', 'storage', |
| 244 | + _kt('Archived Document Restoration'), _kt('Restore old (archived) documents, usually at a user\'s request.'), | ||
| 245 | 'admin/archivedDocuments.php', null); | 245 | 'admin/archivedDocuments.php', null); |
| 246 | - $this->registerAdminPage("expunge", 'DeletedDocumentsDispatcher', 'storage', | 246 | + $this->registerAdminPage('expunge', 'DeletedDocumentsDispatcher', 'storage', |
| 247 | _kt('Restore or Expunge Deleted Documents'), _kt('Restore previously deleted documents, or permanently expunge them.'), | 247 | _kt('Restore or Expunge Deleted Documents'), _kt('Restore previously deleted documents, or permanently expunge them.'), |
| 248 | 'admin/deletedDocuments.php', null); | 248 | 'admin/deletedDocuments.php', null); |
| 249 | 249 | ||
| 250 | // misc | 250 | // misc |
| 251 | - $this->registerAdminPage("helpmanagement", 'ManageHelpDispatcher', 'misc', | 251 | + $this->registerAdminPage('helpmanagement', 'ManageHelpDispatcher', 'misc', |
| 252 | _kt('Edit Help files'), _kt('Change the help files that are displayed to users.'), | 252 | _kt('Edit Help files'), _kt('Change the help files that are displayed to users.'), |
| 253 | 'admin/manageHelp.php', null); | 253 | 'admin/manageHelp.php', null); |
| 254 | - $this->registerAdminPage("savedsearch", 'KTSavedSearchDispatcher', 'misc', | 254 | + $this->registerAdminPage('savedsearch', 'KTSavedSearchDispatcher', 'misc', |
| 255 | _kt('Saved searches'), | 255 | _kt('Saved searches'), |
| 256 | _kt('Manage saved searches - searches available by default to all users.'), | 256 | _kt('Manage saved searches - searches available by default to all users.'), |
| 257 | 'admin/savedSearch.php', null); | 257 | 'admin/savedSearch.php', null); |
| 258 | - $this->registerAdminPage("plugins", 'KTPluginDispatcher', 'misc', | 258 | + $this->registerAdminPage('plugins', 'KTPluginDispatcher', 'misc', |
| 259 | _kt('Manage plugins'), _kt('Register new plugins, disable plugins, and so forth'), | 259 | _kt('Manage plugins'), _kt('Register new plugins, disable plugins, and so forth'), |
| 260 | 'admin/plugins.php', null); | 260 | 'admin/plugins.php', null); |
| 261 | - $this->registerAdminPage("techsupport", 'KTSupportDispatcher', 'misc', | 261 | + $this->registerAdminPage('techsupport', 'KTSupportDispatcher', 'misc', |
| 262 | _kt('Support and System information'), _kt('Information about this system and how to get support.'), | 262 | _kt('Support and System information'), _kt('Information about this system and how to get support.'), |
| 263 | 'admin/techsupport.php', null); | 263 | 'admin/techsupport.php', null); |
| 264 | - $this->registerAdminPage("cleanup", 'ManageCleanupDispatcher', 'misc', | 264 | + $this->registerAdminPage('cleanup', 'ManageCleanupDispatcher', 'misc', |
| 265 | _kt('Verify document storage'), _kt('Performs a check to see if the documents in your repositories all are stored on the back-end storage (usually on disk).'), | 265 | _kt('Verify document storage'), _kt('Performs a check to see if the documents in your repositories all are stored on the back-end storage (usually on disk).'), |
| 266 | 'admin/manageCleanup.php', null); | 266 | 'admin/manageCleanup.php', null); |
| 267 | - $this->registerAdminPage("views", 'ManageViewDispatcher', 'misc', | 267 | + $this->registerAdminPage('views', 'ManageViewDispatcher', 'misc', |
| 268 | _kt('Manage views'), _kt('Allows you to specify the columns that are to be used by a particular view (e.g. Browse documents, Search)'), | 268 | _kt('Manage views'), _kt('Allows you to specify the columns that are to be used by a particular view (e.g. Browse documents, Search)'), |
| 269 | 'admin/manageViews.php', null); | 269 | 'admin/manageViews.php', null); |
| 270 | 270 |