<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
	<title type="html"><![CDATA[FrontAccounting forum — Does extending core classes fall under the extension framework?]]></title>
	<link rel="self" href="https://frontaccounting.com/punbb/extern.php?action=feed&amp;tid=2518&amp;type=atom" />
	<updated>2011-11-23T12:31:45Z</updated>
	<generator>PunBB</generator>
	<id>https://frontaccounting.com/punbb/viewtopic.php?id=2518</id>
		<entry>
			<title type="html"><![CDATA[Re: Does extending core classes fall under the extension framework?]]></title>
			<link rel="alternate" href="https://frontaccounting.com/punbb/viewtopic.php?pid=10870#p10870" />
			<content type="html"><![CDATA[<p>I&#039;m not sure what you mean by &#039;extending core clases&#039;. I guess the right solution for you is using db_postwrite() hook defined in your extension hook class derived from general hooks class (see includes/hooks.inc). If this method is defined, it is called just after transaction is stored in database - see add_po() function in purchasing/includes/po_db.inc.</p><p>Janusz</p>]]></content>
			<author>
				<name><![CDATA[itronics]]></name>
				<uri>https://frontaccounting.com/punbb/profile.php?id=89</uri>
			</author>
			<updated>2011-11-23T12:31:45Z</updated>
			<id>https://frontaccounting.com/punbb/viewtopic.php?pid=10870#p10870</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Does extending core classes fall under the extension framework?]]></title>
			<link rel="alternate" href="https://frontaccounting.com/punbb/viewtopic.php?pid=10852#p10852" />
			<content type="html"><![CDATA[<p>Anybody?</p><p>...I&#039;m under the impression that if I want to extend core classes I should just do so in the original code.&nbsp; That there is no extension framework for extending core functionality.&nbsp; Is this true?</p>]]></content>
			<author>
				<name><![CDATA[mtleng]]></name>
				<uri>https://frontaccounting.com/punbb/profile.php?id=9390</uri>
			</author>
			<updated>2011-11-22T13:25:38Z</updated>
			<id>https://frontaccounting.com/punbb/viewtopic.php?pid=10852#p10852</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Does extending core classes fall under the extension framework?]]></title>
			<link rel="alternate" href="https://frontaccounting.com/punbb/viewtopic.php?pid=10747#p10747" />
			<content type="html"><![CDATA[<p>Just a little confused after reading the description of the FA extensions framework (https://frontaccounting.com/fawiki/index.php?n=Devel.Extensions).&nbsp; Could someone clarify how the desired modification described below will fit into the extension framework?</p><p>I am not looking to add a new menu option or tab, but simply extend existing core functionality.&nbsp; Specifically, after a purchase order is processed/received I would like to add an additional call to a new function.&nbsp; Shouldn&#039;t matter what this new function does, but in my case it will be using cURL to update 3rd party s/w.</p><p>Will a mod like this (true class extension) fit into the FA extension framework and, if so, which one (plugin or module)? Or should I just modify the appropriate core class directly and track changes via source control (SVN, CVS, etc.)?</p>]]></content>
			<author>
				<name><![CDATA[mtleng]]></name>
				<uri>https://frontaccounting.com/punbb/profile.php?id=9390</uri>
			</author>
			<updated>2011-11-16T17:12:48Z</updated>
			<id>https://frontaccounting.com/punbb/viewtopic.php?pid=10747#p10747</id>
		</entry>
</feed>
