TimeTrex/classes/modules/plugins/PunchListFactory.plugin.example

20 lines
788 B
Plaintext

<?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;
}
}