I want to extend the class under framework in my application so I can have my own customization with changing anything in the framework, and I won't have any problem doing framework upgrade in the future. Does anybody know how to do it? Thanks. For example, I want to create a file (MyHistoryTool.php) doing the following:
class MyHistoryTool extends Dataface_HistoryTool {
function myfunc() {
return 'Hello World!';
}
function getHistoryLog(&$record, $lang=null, $limit=100){ //override the function in parent class
echo "this is the new history log";
}
}
In which folder under my application should I put this MyHistoryTool.php? Does anybody know? If it's possible to do so, how do I use these new/overriding function and integrate with those templates in Dataface/templates?