...
For more information about it's usage see Restricting Module Installation.
Code Block |
---|
<fileinclude>
<install>functions.inc.php</install>
</fileinclude> |
|
...
Any modules that wish to provide an Out of Box Experience page must provide an 'oobe' tag in their XML. This is documented fully on the OOBE page - Out of Box Experience
Code Block |
---|
<oobe method="oobeHook" priority="200" /> |
|
...
Database information. This let's FreePBX know how the database should be generated. The database structure is setup/executed before the install() function/install.php is run. For more information see: Database 13#Creating/Altering/UpdatingaDatabaseThroughmodule.xml(FreePBX14+)
Code Block |
---|
<database>
<table name="trunks">
<field name="trunkid" type="integer" default="0" primaryKey="true"/>
<field name="name" type="string" length="50" default=""/>
<field name="tech" type="string" length="20" primaryKey="true"/>
<field name="outcid" type="string" length="40" default=""/>
<field name="keepcid" type="string" length="4" default="off" notnull="false"/>
<field name="maxchans" type="string" length="6" default="" notnull="false"/>
<field name="failscript" type="string" length="255" default=""/>
<field name="dialoutprefix" type="string" length="255" default=""/>
<field name="channelid" type="string" length="255" default="" primaryKey="true"/>
<field name="usercontext" type="string" length="255" notnull="false"/>
<field name="provider" type="string" length="40" notnull="false"/>
<field name="disabled" type="string" length="4" default="off" notnull="false"/>
<field name="continue" type="string" length="4" default="off" notnull="false"/>
</table>
</database> |
|
...
Hooking information to let FreePBX know that this module has functions/methods that need to hook into other modules. For more information on how this works see: BMO Hooks#GeneralModuleHooks
Code Block |
---|
<hooks>
<bulkhandler namespace="FreePBX\modules" class="Bulkhandler" priority="100">
<method namespace="FreePBX\modules" class="Core" callingMethod="getTypes">bulkhandlerGetTypes</method>
<method namespace="FreePBX\modules" class="Core" callingMethod="getHeaders">bulkhandlerGetHeaders</method>
<method namespace="FreePBX\modules" class="Core" callingMethod="validate">bulkhandlerValidate</method>
<method namespace="FreePBX\modules" class="Core" callingMethod="import">bulkhandlerImport</method>
<method namespace="FreePBX\modules" class="Core" callingMethod="export">bulkhandlerExport</method>
</bulkhandler>
</hooks> |
|
...
This allows you to define an updateURL for this module. When "Check Online" is run Framework will reach out to the server defined in this URL to ask it for updates to this module. For more information about the Update URL and it's functionality see: Third Party Module Hosting
Code Block |
---|
<updateurl>http://link.to.json.file.json</uptdateurl> |
|