Develop Edocman Plugins

[TOC] Edocman allows you to develop plugins to extend or add more features for your store. Following are the events trigger which you can use to write your own plugins:

onCategoryAfterSave

This event will be triggered after Saving Category Information.


public function onCategoryAfterSave($row)
{
    // Put your code here
}

onDocumentAfterSave

This event will be triggered after Saving Document


public function onDocumentAfterSave($context, $row, $isNew)
{
    // Put your code here
}

onDocumentBatchUpload

This event will be triggered event when using Batch Upload


public function onDocumentAfterSave($savedFilename, $file, $path)
{
    // Put your code here
}

onDocumentUpload

This event will be triggered event when using Batch Upload


public function onDocumentAfterSave($row, $isNew, $file, $path, $fileName)
{
    // Put your code here
}

onDocumentBeforeDelete

This event will be triggered event before Removing Document


public function onDocumentAfterSave($task,$row)
{
    // Put your code here
}

You should use this events to make the plugin to integrate Edocman extension with any other extensions that you want.