[RFC|Merged] Extensions
[RFC] New front pages in extensions
For those interested, here is an example extension with a cron task: https://github.com/igorw/ascraeus-foobar-extension
Re: [RFC|Merged] Extensions
in common.php 3.1 there is now a new line :
is this where extensions, a.k.a mod classes will be loaded ?
$phpbb_extension_manager = new phpbb_extension_manager($db, EXT_TABLE, $phpbb_root_path, ".$phpEx", $cache->get_driver());
is this where extensions, a.k.a mod classes will be loaded ?
Re: [RFC|Merged] Extensions
what's an xcp module ?naderman wrote:What are extensions?
- XCP Module:
phpBB/ext/<ext>/xcp/xcp_<name>_module.php
phpBB/ext/<ext>/xcp/xcp_<name>_info.php
Re: [RFC|Merged] Extensions
acp/mcp/ucp.
Re: [RFC|Merged] Extensions
What is ext_state used for in the ext table? As there is already an ext_active column and as far as I can see on here it can only be active or inactive (or it can be purged but thats an action)?
Also, wouldn't it make sense to have a column for ext_id (set as primary key and auto increase) to use an identifier as you could have two (for example) blog MODs both called phpBB Blog, released on different sites and because of the index it would not allow the second one to be added.
EDIT: Also how would the SQL changes be shown, in the manifest or in a db_changes.php or another file?
Also the chat log from earlier about manifests:
https://gist.github.com/1762789
Also, wouldn't it make sense to have a column for ext_id (set as primary key and auto increase) to use an identifier as you could have two (for example) blog MODs both called phpBB Blog, released on different sites and because of the index it would not allow the second one to be added.
EDIT: Also how would the SQL changes be shown, in the manifest or in a db_changes.php or another file?
Also the chat log from earlier about manifests:
https://gist.github.com/1762789
Formerly known as Unknown Bliss
No unsolicited PMs please except for quotes.psoTFX wrote: I went with Olympus because as I said to the teams ... "It's been one hell of a hill to climb"
Re: [RFC|Merged] Extensions
The state contains extension-specific data that is persisted between requests during installation (more specific: during the extension enabling/disabling process). This allows for multi-step changes when enabling an ext.Unknown Bliss wrote:What is ext_state used for in the ext table? As there is already an ext_active column and as far as I can see on here it can only be active or inactive (or it can be purged but thats an action)?
Re: [RFC|Merged] Extensions
Ok, in that case what is used to show whether an extension has been previously activated then deactivated? As the installer would need to know this?
Formerly known as Unknown Bliss
No unsolicited PMs please except for quotes.psoTFX wrote: I went with Olympus because as I said to the teams ... "It's been one hell of a hill to climb"
Re: [RFC|Merged] Extensions
As long as the extension is not active, the state is used for activation. As soon as it is active, the state is used for deactivation.
Re: [RFC|Merged] Extensions
But once deactivated it doesn't remove any SQL, when activated then it runs the SQL. So to prevent it running the SQL on every activation...?igorw wrote:As long as the extension is not active, the state is used for activation. As soon as it is active, the state is used for deactivation.
Formerly known as Unknown Bliss
No unsolicited PMs please except for quotes.psoTFX wrote: I went with Olympus because as I said to the teams ... "It's been one hell of a hill to climb"
Re: [RFC|Merged] Extensions
Something which came up on IRC and I've vaguely mentioned here.
I would suggest adding the following:
An ext_history column which would display the number of times it had been enabled
An ext_id column to use as an identifier rather than name
The first because DB changes should only be run on the first time it is enabled. This doesn't matter so much until migrations.
The second because it makes more sense to use a unique numeric id as an identifier than a unique extension name and it can be used as the primary key.
I would suggest adding the following:
An ext_history column which would display the number of times it had been enabled
An ext_id column to use as an identifier rather than name
The first because DB changes should only be run on the first time it is enabled. This doesn't matter so much until migrations.
The second because it makes more sense to use a unique numeric id as an identifier than a unique extension name and it can be used as the primary key.
Formerly known as Unknown Bliss
No unsolicited PMs please except for quotes.psoTFX wrote: I went with Olympus because as I said to the teams ... "It's been one hell of a hill to climb"