Project

General

Profile

PluginStructure » History » Version 2

Vasily Bezruchkin, September 19, 2012 23:47

1 1 Vasily Bezruchkin
h1. Plugin Structure
2
3
Plugin should have index.php for both admin panel and frontend.
4 2 Vasily Bezruchkin
5
6
There is a way to import mysql dump files during a plugin or package installation.
7
8
<pre>
9
<install>
10
	<import type="sql">USA.sql</import>
11
</install>
12
</pre>
13
14
15
The appropriate SQL dump file should be placed into includes/dumps/ folder.
16
17
Implement the confirmation when importing dumps.
18
There should be an ability to specify each import as optional.
19
Example:
20
<pre>
21
	<import type="sql" optional="1" description="Canadian ZIP codes">my-dump.sql</import>
22
or
23
	<import type="sql" interact="confirmation/forced" description="Canadian ZIP codes">my-dump.sql</import>
24
25
</pre>
26
In this case the script has to ask the user "Would you like to install Canadian ZIP codes?" when installing a package.