TimeTrex Community Edition v16.2.0
This commit is contained in:
19
classes/modules/plugins/PunchListFactory.plugin.example
Normal file
19
classes/modules/plugins/PunchListFactory.plugin.example
Normal file
@@ -0,0 +1,19 @@
|
||||
<?php
|
||||
/*$License$*/
|
||||
|
||||
|
||||
/*
|
||||
* Example plugin.
|
||||
*/
|
||||
class PunchListFactoryPlugin extends PunchListFactory {
|
||||
function postSave() {
|
||||
parent::postSave(); //Make sure you always call the parents function to maintain proper code operation.
|
||||
|
||||
//Punch record was saved. We can do all sorts of things here like trigger real-time data exporting.
|
||||
Debug::Arr( $this->getObjectAsArray(), 'Plugin postSave(): Punch Data: ', __FILE__, __LINE__, __METHOD__,10);
|
||||
Debug::Arr( $this->getPunchControlObject()->getObjectAsArray(), 'Plugin postSave(): Punch Control Data: ', __FILE__, __LINE__, __METHOD__,10);
|
||||
Debug::Arr( $this->getPunchControlObject()->getUserDateObject()->getUserObject()->getObjectAsArray(), 'Plugin postSave(): User Data: ', __FILE__, __LINE__, __METHOD__,10);
|
||||
|
||||
return TRUE;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user