Added a series of hooks to trigger backup jobs when files are uploaded/deleted.

This commit is contained in:
Loic d'Anterroches
2010-05-21 11:29:36 +02:00
parent 982b330739
commit 7a952215aa
6 changed files with 149 additions and 0 deletions

View File

@@ -146,6 +146,28 @@ class IDF_Form_UpdateUpload extends Pluf_Form
$this->upload->modif_dtime = gmdate('Y-m-d H:i:s');
$this->upload->update();
$this->upload->batchAssoc('IDF_Tag', $tags);
/**
* [signal]
*
* IDF_Upload::update
*
* [sender]
*
* IDF_Form_UpdateUpload
*
* [description]
*
* This signal allows an application to perform a set of tasks
* just after the update of an uploaded file.
*
* [parameters]
*
* array('upload' => $upload);
*
*/
$params = array('upload' => $this->upload);
Pluf_Signal::send('IDF_Upload::update',
'IDF_Form_UpdateUpload', $params);
return $this->upload;
}
}