ktcoreplugin.php.svn-base

来自「PHP 知识管理系统(基于树结构的知识管理系统), 英文原版的PHP源码。」· SVN-BASE 代码 · 共 374 行 · 第 1/2 页

SVN-BASE
374
字号
        $this->registerWidget('KTCoreConditionalSelectionWidget', 'ktcore.widgets.conditionalselection', 'KTWidgets.php');        $this->registerPage('collection', 'KTCoreCollectionPage', 'KTWidgets.php');        $this->registerPage('notifications', 'KTNotificationOverflowPage', 'KTMiscPages.php');        // validators        $this->registerValidator('KTStringValidator', 'ktcore.validators.string', 'KTValidators.php');        $this->registerValidator('KTIllegalCharValidator', 'ktcore.validators.illegal_char', 'KTValidators.php');        $this->registerValidator('KTEntityValidator', 'ktcore.validators.entity', 'KTValidators.php');        $this->registerValidator('KTRequiredValidator', 'ktcore.validators.required', 'KTValidators.php');        $this->registerValidator('KTEmailValidator', 'ktcore.validators.emailaddress', 'KTValidators.php');        $this->registerValidator('KTBooleanValidator', 'ktcore.validators.boolean', 'KTValidators.php');        $this->registerValidator('KTPasswordValidator', 'ktcore.validators.password', 'KTValidators.php');        $this->registerValidator('KTMembershipValidator', 'ktcore.validators.membership', 'KTValidators.php');        $this->registerValidator('KTFieldsetValidator', 'ktcore.validators.fieldset', 'KTValidators.php');        $this->registerValidator('KTFileValidator', 'ktcore.validators.file', 'KTValidators.php');        $this->registerValidator('KTRequiredFileValidator', 'ktcore.validators.requiredfile', 'KTValidators.php');        $this->registerValidator('KTFileIllegalCharValidator', 'ktcore.validators.fileillegalchar', 'KTValidators.php');        $this->registerValidator('KTArrayValidator', 'ktcore.validators.array', 'KTValidators.php');        // criterion        $this->registerCriterion('NameCriterion', 'ktcore.criteria.name', KT_LIB_DIR . '/browse/Criteria.inc');        $this->registerCriterion('IDCriterion', 'ktcore.criteria.id', KT_LIB_DIR . '/browse/Criteria.inc');        $this->registerCriterion('TitleCriterion', 'ktcore.criteria.title', KT_LIB_DIR . '/browse/Criteria.inc');        $this->registerCriterion('CreatorCriterion', 'ktcore.criteria.creator', KT_LIB_DIR . '/browse/Criteria.inc');        $this->registerCriterion('DateCreatedCriterion', 'ktcore.criteria.datecreated', KT_LIB_DIR . '/browse/Criteria.inc');        $this->registerCriterion('DocumentTypeCriterion', 'ktcore.criteria.documenttype', KT_LIB_DIR . '/browse/Criteria.inc');        $this->registerCriterion('DateModifiedCriterion', 'ktcore.criteria.datemodified', KT_LIB_DIR . '/browse/Criteria.inc');        $this->registerCriterion('SizeCriterion', 'ktcore.criteria.size', KT_LIB_DIR . '/browse/Criteria.inc');        $this->registerCriterion('WorkflowStateCriterion', 'ktcore.criteria.workflowstate', KT_LIB_DIR . '/browse/Criteria.inc');        $this->registerCriterion('DateCreatedDeltaCriterion', 'ktcore.criteria.datecreateddelta', KT_LIB_DIR . '/browse/Criteria.inc');        $this->registerCriterion('DateModifiedDeltaCriterion', 'ktcore.criteria.datemodifieddelta', KT_LIB_DIR . '/browse/Criteria.inc');        $this->registerCriterion('GeneralMetadataCriterion', 'ktcore.criteria.generalmetadata', KT_LIB_DIR . '/browse/Criteria.inc');        $this->setupAdmin();    }    function setupAdmin() {        // set up the categories.        $this->registerAdminCategory('principals', _kt('Users and Groups'),            _kt('Control which users can log in, and are part of which groups and organisational units, from these management panels.'));        $this->registerAdminCategory('security', _kt('Security Management'),            _kt('Assign permissions to users and groups, and specify which permissions are required to interact with various parts of the Document Management System.'));        //$this->registerAdminCategory("plugins", _kt("Plugin Management"),        //    _kt("Control which plugins are loaded, register new plugins and configure individual plugins."));        $this->registerAdminCategory('storage', _kt('Document Storage'),            _kt('Manage checked-out, archived and deleted documents.'));        $this->registerAdminCategory('documents', _kt('Document Metadata and Workflow Configuration'),            _kt('Configure the document metadata: Document Types, Document Fieldsets, Link Types and Workflows.'));        $this->registerAdminCategory('search', _kt('Search and Indexing'),            _kt('Search and Indexing Settings'));		$this->registerAdminCategory('config', _kt('System Configuration'),            _kt('System Configuration Settings'));        $this->registerAdminCategory('misc', _kt('Miscellaneous'),            _kt('Various settings which do not fit into the other categories, including managing help and saved searches.'));        // users and groups        $this->registerAdminPage('users', 'KTUserAdminDispatcher', 'principals',            _kt('Manage Users'), _kt('Add or remove users from the system.'),            'admin/userManagement.php', null);        $this->registerAdminPage('groups', 'KTGroupAdminDispatcher', 'principals',            _kt('Manage Groups'), _kt('Add or remove groups from the system.'),            'admin/groupManagement.php', null);        $this->registerAdminPage('units', 'KTUnitAdminDispatcher', 'principals',            _kt('Control Units'), _kt('Specify which organisational units are available within the repository.'),            'admin/unitManagement.php', null);        // security        $this->registerAdminPage('permissions', 'ManagePermissionsDispatcher', 'security',            _kt('Permissions'), _kt('Create or delete permissions.'), 'admin/managePermissions.php', null);        $this->registerAdminPage('roles', 'RoleAdminDispatcher', 'security',            _kt('Roles'), _kt('Create or delete roles'),            'admin/roleManagement.php', null);        $this->registerAdminPage('conditions', 'KTConditionDispatcher', 'security',            _kt('Dynamic Conditions'),            _kt('Manage criteria which determine whether a user is permitted to perform a system action.'),            'admin/conditions.php', null);        // documents        $this->registerAdminPage('typemanagement', 'KTDocumentTypeDispatcher', 'documents',            _kt('Document Types'),            _kt('Manage the different classes of document which can be added to the system.'),            'admin/documentTypes.php', null);        $this->registerAdminPage('fieldmanagement2', 'KTDocumentFieldDispatcher', 'documents',             _kt('Document Fieldsets'),            _kt('Manage the different types of information that can be associated with classes of documents.'),            'admin/documentFieldsv2.php', null);        if(KTPluginUtil::pluginIsActive('ktdms.wintools'))        {            $this->registerAdminPage('emailtypemanagement', 'KTEmailDocumentTypeDispatcher', 'documents',                    _kt('Email Document Types'),                    _kt('Manage the addition of Email document types to the system.'),                    '../wintools/email/emailDocumentTypes.php', null);        }        $this->registerAdminPage('workflows_2', 'KTWorkflowAdminV2', 'documents',            _kt('Workflows'), _kt('Configure automated Workflows that map to document life-cycles.'),            'admin/workflowsv2.php', null);        // storage        $this->registerAdminPage('checkout', 'KTCheckoutAdminDispatcher', 'storage',            _kt('Checked Out Document Control'),            _kt('Override the checked-out status of documents if a user has failed to do so.'),            'admin/documentCheckout.php', null);        $this->registerAdminPage('archived', 'ArchivedDocumentsDispatcher', 'storage',            _kt('Archived Document Restoration'), _kt('Restore old (archived) documents, usually at a user\'s request.'),            'admin/archivedDocuments.php', null);        $this->registerAdminPage('expunge', 'DeletedDocumentsDispatcher', 'storage',            _kt('Restore or Expunge Deleted Documents'), _kt('Restore previously deleted documents, or permanently expunge them.'),            'admin/deletedDocuments.php', null);		//Search and Indexing		$this->registerAdminPage('managemimetypes', 'ManageMimeTypesDispatcher', 'search',            _kt('Mime Types'), sprintf(_kt('This report lists all mime types and extensions that can be identified by %s.'), APP_NAME),            '../search2/reporting/ManageMimeTypes.php', null);        $this->registerAdminPage('extractorinfo', 'ExtractorInfoDispatcher', 'search',            _kt('Extractor Information'), _kt('This report lists the text extractors and their supported mime types.'),            '../search2/reporting/ExtractorInfo.php', null);        $this->registerAdminPage('indexerrors', 'IndexErrorsDispatcher', 'search',            _kt('Document Indexing Diagnostics'), _kt('This report will help to diagnose problems with document indexing.'),            '../search2/reporting/IndexErrors.php', null);		$this->registerAdminPage('pendingdocuments', 'PendingDocumentsDispatcher', 'search',            _kt('Pending Documents Indexing Queue'), _kt('This report lists documents that are waiting to be indexed.'),            '../search2/reporting/PendingDocuments.php', null);        $this->registerAdminPage('reschedulealldocuments', 'RescheduleDocumentsDispatcher', 'search',            _kt('Reschedule all documents'), _kt('This function allows you to re-index your entire repository.'),            '../search2/reporting/RescheduleDocuments.php', null);		//config		$this->registerAdminPage('emailconfigpage', 'EmailConfigPageDispatcher', 'config',            _kt('Email'), _kt('Define the sending email server address, email password, email port, and user name, and view and modify policies for emailing documents and attachments from KnowledgeTree.'),            'admin/configSettings.php', null);        $this->registerAdminPage('uiconfigpage', 'UIConfigPageDispatcher', 'config',            _kt('User Interface'), _kt('View and modify settings on Browse View actions, OEM name, automatic refresh, search results restrictions, custom logo details, paths to dot binary, graphics, and log directory, and whether to enable/disable condensed UI, \'open\' from downloads, sort metadata, and skinning.'),            'admin/configSettings.php', null);        $this->registerAdminPage('searchandindexingconfigpage', 'SearchAndIndexingConfigPageDispatcher', 'config',            _kt('Search and Indexing'), _kt('View and modify the number of documents indexed / migrated in a cron session, core indexing class, paths to the extractor hook, text extractors, indexing engine, Lucene indexes, and the Java Lucene URL. View and modify search date format, paths to search, indexing fields and libraries, results display format, and results per page.'),            'admin/configSettings.php', null);        $this->registerAdminPage('clientconfigpage', 'ClientSettingsConfigPageDispatcher', 'config',            _kt('Client Tools'), _kt('View and change settings for the KnowledgeTree Tools Server, Client Tools Policies, WebDAV, and the OpenOffice.org service.'),            'admin/configSettings.php', null);        $this->registerAdminPage('generalconfigpage', 'GeneralConfigPageDispatcher', 'config',            _kt('General Settings'), _kt('View and modify settings for the KnowledgeTree cache, custom error message handling, Disk Usage threshold percentages, location of zip binary, paths to external binaries, general server configuration, LDAP authentication, session management, KnowledgeTree storage manager, miscellaneous tweaks, and whether to always display \'Your Checked-out Documents\' dashlet.'),            'admin/configSettings.php', null);        $this->registerAdminPage('i18nconfigpage', 'i18nConfigPageDispatcher', 'config',            _kt('Internationalization'), _kt('View and modify the default language.'),            'admin/configSettings.php', null);        // misc        $this->registerAdminPage('helpmanagement', 'ManageHelpDispatcher', 'misc',            _kt('Edit Help files'), _kt('Change the help files that are displayed to users.'),            'admin/manageHelp.php', null);        $this->registerAdminPage('plugins', 'KTPluginDispatcher', 'misc',            _kt('Manage plugins'), _kt('Register new plugins, disable plugins, and so forth'),            'admin/plugins.php', null);        $this->registerAdminPage('techsupport', 'KTSupportDispatcher', 'misc',            _kt('Support and System information'), _kt('Information about this system and how to get support.'),            'admin/techsupport.php', null);        $this->registerAdminPage('cleanup', 'ManageCleanupDispatcher', 'storage',            _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).'),            'admin/manageCleanup.php', null);        $this->registerAdminPage('views', 'ManageViewDispatcher', 'misc',            _kt('Manage views'), _kt('Allows you to specify the columns that are to be used by a particular view (e.g. Browse documents, Search)'),            'admin/manageViews.php', null);        // plugins    }}$oRegistry =& KTPluginRegistry::getSingleton();$oRegistry->registerPlugin('KTCorePlugin', 'ktcore.plugin', __FILE__);require_once('KTPortlets.php');require_once(KT_LIB_DIR . '/storage/ondiskpathstoragemanager.inc.php');require_once(KT_LIB_DIR . '/storage/ondiskhashedstoragemanager.inc.php');

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?