<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
	<title type="html"><![CDATA[FrontAccounting forum — $next_extension_id elimination]]></title>
	<link rel="self" href="https://frontaccounting.com/punbb/extern.php?action=feed&amp;tid=5189&amp;type=atom" />
	<updated>2014-09-23T09:12:23Z</updated>
	<generator>PunBB</generator>
	<id>https://frontaccounting.com/punbb/viewtopic.php?id=5189</id>
		<entry>
			<title type="html"><![CDATA[Re: $next_extension_id elimination]]></title>
			<link rel="alternate" href="https://frontaccounting.com/punbb/viewtopic.php?pid=20938#p20938" />
			<content type="html"><![CDATA[<p>The extension id can be unique if it is parsed from the max value of the id in the array and not from the array count.</p><p>When an extension is removed (after de-activation from all domains), will these security parameters too be removed from the security_roles tables and be available for re-use?</p><p>Is there any list of security area_identifiers across all official extensions to prevent unintended re-use across ones from different authors?</p>]]></content>
			<author>
				<name><![CDATA[apmuthu]]></name>
				<uri>https://frontaccounting.com/punbb/profile.php?id=364</uri>
			</author>
			<updated>2014-09-23T09:12:23Z</updated>
			<id>https://frontaccounting.com/punbb/viewtopic.php?pid=20938#p20938</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: $next_extension_id elimination]]></title>
			<link rel="alternate" href="https://frontaccounting.com/punbb/viewtopic.php?pid=20928#p20928" />
			<content type="html"><![CDATA[<p>Extension id have to be unique, so it cannot be caluculted on the fly from array size. The id is used as a base for security area identifiers provied by extensions, which are stored in security_roles table.<br />Janusz</p>]]></content>
			<author>
				<name><![CDATA[itronics]]></name>
				<uri>https://frontaccounting.com/punbb/profile.php?id=89</uri>
			</author>
			<updated>2014-09-23T07:32:04Z</updated>
			<id>https://frontaccounting.com/punbb/viewtopic.php?pid=20928#p20928</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[$next_extension_id elimination]]></title>
			<link rel="alternate" href="https://frontaccounting.com/punbb/viewtopic.php?pid=20919#p20919" />
			<content type="html"><![CDATA[<p><strong>$next_extension_id</strong> is stored in the <strong>{webroot}/installed_extensions.php</strong> file.</p><p>It is used in:</p><p>admin/inst_module.php<br />admin/db/maintenance_db.inc ---&gt; writing to the installed_extensions file(s)<br />includes/packages.inc<br />index.php ----------------------------&gt; set during install on CoAs<br />sql/alter2.3/php --------------------&gt; updation of extension array elements</p><p>In general it is declared as a global variable from within functions and used and sometimes incremented. It is never decremented.</p><p>Actually it can be obtained by querying the $installed_extensions array and choosing to be one more than the highest key number or 1 if empty array.</p><p>This way we can make the array in each company (must make it a different name) have the same elements for the activated extensions.</p><p>Is this extension id stored in any FA table as a foreign key?</p>]]></content>
			<author>
				<name><![CDATA[apmuthu]]></name>
				<uri>https://frontaccounting.com/punbb/profile.php?id=364</uri>
			</author>
			<updated>2014-09-22T14:43:19Z</updated>
			<id>https://frontaccounting.com/punbb/viewtopic.php?pid=20919#p20919</id>
		</entry>
</feed>
