Table of Contents

OpenDocManâ„¢ Plug-in API

onAdminMenu()

This function allows for new admin menu items to display for your plugin

Used in:

onBeforeAdd()

This function is run on the Add File page

Used in:

onDuringAdd($fileId)

This function is run on while the file is being added to the database

Parameters:

Used in:

onAfterAdd($fileId)

This function is run after a new file is added

Parameters:

Used in:

onBeforeEditFile($fileId)

This function is run before the edit file form is finished being rendered

Parameters:

Used in:

onAfterEditFile($fileId)

This function is run after the user saves and change to a file

Parameters:

Used in:

onAfterArchiveFile()

This function is run after the user deletes a file (aka archive)

Used in:

onAfterDeleteFile()

This function is run after the admin permanently deletes a file

Used in:

onBeforeLogin()

This function is run before a user is logged in

Used in:

onAfterLogin()

This function is run after a user is logged in

Used in:

onFailedLogin()

This function is called after a failed login

Used in:

onAfterLogout()

This function is run after the user session is cleared

Used in:

onViewFile()

This function is called after the user views a file

Used in:

onSearch()

This function is performed after a search has been initiated

Used in:

onBeforeAddUser()

This function is run at the top of the add user form

Used in:

onAfterAddUser()

This function is run after the add user form is saved

Used in:

setProperties()

This function allows for setting of class settings

Used in:

getProperties()

This function allows for getting of class settings

Used in:

onDuringDetails($fileId)

This function is run during the details view

Parameters:

Used in:

onBeforeListFiles($fileList)

This function is run before the file list view

Parameters:

Used in:

onAfterListFiles()

This function is run after the file list view is drawn

Used in:

onBeforeEditFileSaved()

This function is run before the edited file object is saved to the db

Used in: