Script file of Matukio component Com_MatukioInstallerScript

since 1.0.0
package MatukioEvents

 Methods

Create content type in UCM

createContentType() : void
Static

Create the index for the Matukio bookign fields

createIndexMatukioBookingFields() : boolean | mixed
since 6.0.13

Returns

booleanmixed

Create the index for the Matukio bookings

createIndexMatukioBookings() : boolean | mixed
since 6.0.13

Returns

booleanmixed

Create the index for the Matukio recurring table

createIndexMatukioRecurringable() : boolean | mixed
since 6.0.13

Returns

booleanmixed

Create the index for the Matukio table

createIndexMatukioTable() : boolean | mixed
since 6.0.13

Exceptions

\Exception

Returns

booleanmixed

Create the Matukio indexes

createIndexes() : void

Inserts the currency content

currencyContent() : void

Drop an index

dropIndex(string $name, string $table) : mixed

Parameters

$name

string

Name of the index

$table

string

Name of the table

Returns

mixed

method to install the component

install(string $parent) : void

Parameters

$parent

string
  • The parent

Install libraries

installLibraries(array $libraries) : array

Parameters

$libraries

array
  • libraries to install

Returns

array

Installs the plugins

installPlugins(array $plugins) : array

Parameters

$plugins

array
  • The plugin array

Returns

array

Is the index existing?

isIndexExisting(string $indexName, string $tableName) : mixed | null

Parameters

$indexName

string

The index

$tableName

string

The table name

Returns

mixednull

Migrates ALL the old bookings to json format

migrateOldBookingsJSON() : boolean

Should only run once! Can also be called through the backend with index.php?option=com_matukio&controller=bookings&task=migratejson

Exceptions

\Exception - on db error

Returns

boolean

Migrate the settings to the config.xml

migrateSettingsToConfig(object $parent = null) : boolean

Parameters

$parent

object
  • The parent

Returns

boolean

Method to run after the install routine.

postflight(string $type, \JInstallerAdapterComponent $parent) : void
since 1.0.0

Parameters

$type

string

The action being performed

$parent

\JInstallerAdapterComponent

The class calling this method

Executed on install/update/discover

preflight(string $type, \JInstallerAdapterComponent $parent) : boolean
since 1.0.0

Parameters

$type

string
  • the type of th einstallation

$parent

\JInstallerAdapterComponent
  • the parent JInstaller obeject

Exceptions

\Exception - if library is not found

Returns

boolean- true if everything is OK and we should continue with the installation

Removes obsolete files and folders

removeFilesAndFolders(array $removeList) : void

Parameters

$removeList

array

The files and directories to remove

Renders information for the installed libraries

renderLibraryInfoInstall(array $libraries) : string

Parameters

$libraries

array
  • array with libraries

Returns

string

Render modules

renderModuleInfoInstall(array $modules) : string

Parameters

$modules

array
  • The modules

Returns

string

Renders the uninstallation infos

renderModuleInfoUninstall(array $modules) : string

Parameters

$modules

array
  • The modules

Returns

string

Render the install infos

renderPluginInfoInstall(array $plugins) : string

Parameters

$plugins

array
  • The plugins

Returns

string

Render the install uninstall

renderPluginInfoUninstall(array $plugins) : string

Parameters

$plugins

array
  • The plugins

Returns

string

Insert the templates Data into DB

templatesContent(boolean $install = true) : mixed | void

Parameters

$install

boolean
  • Is the function called during the installation (default true)

Returns

mixedvoid

method to uninstall the component

uninstall(string $parent) : void

Parameters

$parent

string
  • The parent

Uninstalls the plugins

uninstallPlugins(array $plugins) : array

Parameters

$plugins

array
  • The plugin array

Returns

array

method to update the component

update(string $parent) : void

Parameters

$parent

string
  • The parent

Exceptions

\Exception - if an uknown database is found

Updates the database to the initial version

update100() : void

Updates the table to Matukio 2.0.2

update202() : void

Updates the database to version 2.2

update220() : void

Updates the database to version 2.2.2 And at ALSO to 3.0.0

update222() : void

Updates the Matukio database to 3.0

update300() : void

Updates Matukio to 3.0.2

update302() : void

Updates Database to 3.1

update310() : void

Exceptions

\Exception - if queries fail

Updates Database to 3.1.1

update311() : void

Exceptions

\Exception - if queries fail

Updates Database to 4.0.6

update406() : void

Exceptions

\Exception - if queries fail

Updates Database to 4.2.0

update420() : void

Exceptions

\Exception - if queries fail

Updates Database to 4.2.1

update421() : void

Exceptions

\Exception - if queries fail

Updates Database to 4.3.0

update430() : void

Exceptions

\Exception - if queries fail

Updates Database to 4.4.0

update440() : void

Exceptions

\Exception - if queries fail

Updates Database to 4.5.0

update450() : void

Exceptions

\Exception - if queries fail

Updates to 5.0.0

update500() : void

Updates to 5.0.1

update501() : void

Updates to 5.1.0

update510() : void

Updates to 5.1.1

update511() : void

Updates to 5.1.2

update512() : void

Updates to 5.1.4

update514() : void

Boulderado!

Updates to 5.2.0

update520() : void

Updates to 5.2.3

update523() : void

Updates to 5.2.5

update525() : void

Updates to 5.2.6

update526() : void

Updates to 5.2.7

update527() : void

Updates to 5.2.8

update528() : void

Updates to 6.0.0

update600() : void

Updates to 6.0.15

update6015() : void
since 6.0.15

Update to 6.1.0

update610() : void
since 6.1.0

Update to 6.1.3

update613() 

return void

since 6.1.3

Updates the database version to the current one

updateDBVersion() : void

No migration for new installs

noMigration() : void
since __DEPLOY_VERSION__

Copies the CLI scripts into Joomla!'s cli directory

_copyCliFiles(\JInstaller $parent) : void

Parameters

$parent

\JInstaller

Parent installer

Returns a singleton with all settings

_loadSettings() : \JObject
Static

Returns

\JObject- loads a singleton object with all settings

Create the general booking form

bookingFieldContent() : void
since 7.0.0

Create the general booking form

bookingFormContent() : void
since 7.0.0

Display the Installation Info

displayInfoInstallation() : string

Returns

string

Displays the uninstall informations

displayInfoUninstallation() : string

Returns

string

Inserts the dummy content (booking fields, templates etc.)

dummyContent() : void

Get a variable from the manifest file (actually, from the manifest cache).

getParam(string $name) : mixed

Parameters

$name

string
  • The name

Returns

mixed

Get the current installed version

getVersion() : mixed

Returns

mixedthe Version or null

Installs the modules

installModules() : void

The joomla framework doesn't tell us if the component has tables filled with data

newInstall() : boolean

Returns

boolean

Uninstalls the modules

uninstallModules() : void

 Properties

 

$installer

$installer 

Default

 

$isUpdate

$isUpdate 

Default

"No"
 

$parent

$parent 

Default

 

$removeFiles

$removeFiles 

Default

array('files' => array('components/com_matukio/views/eventlist/tmpl/default.php', 'components/com_matukio/views/event/tmpl/default.php', 'components/com_matukio/views/bookevent/tmpl/default-old.php', 'components/com_matukio/controllers/differentfees.php', 'components/com_matukio/controllers/recurring.php', 'components/com_matukio/controllers/editbooking.php', 'components/com_matukio/controllers/bookingfields.php', 'components/com_matukio/models/editbooking.php', 'components/com_matukio/models/editbookingfield.php', 'components/com_matukio/models/editcoupon.php', 'components/com_matukio/models/editfee.php', 'components/com_matukio/models/editlocation.php', 'components/com_matukio/models/editorganizer.php', 'components/com_matukio/models/editrecurring.php', 'components/com_matukio/models/edittax.php', 'components/com_matukio/models/recurring.php', 'components/com_matukio/models/bookingfields.php'), 'folders' => array('administrator/components/com_matukio/liveupdate', 'administrator/components/com_matukio/controlcenter', 'components/com_matukio/views/calendarmoo', 'components/com_matukio/views/participants', 'components/com_matukio/views/paypalpayment', 'components/com_matukio/views/callback', 'components/com_matukio/views/bookevent', 'components/com_matukio/views/submitevent', 'administrator/components/com_matukio/views/bookingfields', 'administrator/components/com_matukio/views/editbookingfield', 'administrator/components/com_matukio/views/editbooking', 'administrator/components/com_matukio/views/editcoupon', 'administrator/components/com_matukio/views/editfee', 'administrator/components/com_matukio/views/editlocation', 'administrator/components/com_matukio/views/editorganizer', 'administrator/components/com_matukio/views/editrecurring', 'administrator/components/com_matukio/views/recurring', 'administrator/components/com_matukio/views/differentfees'))
 

$extension

$extension 

Default

"COM_MATUKIO"
 

$installationQueue

$installationQueue 

Default

array('modules' => array('site' => array('mod_matukio' => array('left', 0), 'mod_matukio_calendar' => array('left', 0), 'mod_matukio_upcoming' => array('left', 0), 'mod_matukio_tiles' => array('left', 0), 'mod_matukio_organizer' => array('left', 0), 'mod_matukio_map' => array('left', 0), 'mod_matukio_nearyou' => array('left', 0)), 'admin' => array()), 'plugins' => array('plg_search_matukio' => 1, 'plg_editors-xtd_matukioplaceholder' => 1, 'plg_payment_alphauserpoints' => 1, 'plg_payment_amazon' => 1, 'plg_payment_cash' => 1, 'plg_payment_banktransfer' => 1, 'plg_payment_authorizenet' => 1, 'plg_payment_bycheck' => 1, 'plg_payment_byorder' => 1, 'plg_payment_ccavenue' => 1, 'plg_payment_jomsocialpoints' => 1, 'plg_payment_linkpoint' => 1, 'plg_payment_paypal' => 1, 'plg_payment_paypalpro' => 1, 'plg_payment_payu' => 1, 'plg_payment_debit' => 1, 'plg_payment_epaydk' => 1, 'plg_payment_payfast' => 1, 'plg_payment_paymill' => 1, 'plg_payment_giropay' => 1, 'plg_payment_2checkout' => 1, 'plg_system_matukioccnewsletter' => 0, 'plg_payment_postfinance' => 1, 'plg_payment_ingenico' => 1, 'plg_payment_girocheckout' => 1, 'plg_system_matukiocmc' => 0), 'libraries' => array('compojoom' => 1, 'cforms' => 1))
 

$matVersion

$matVersion 

Default

'##VERSION##'
 

$matukioCli

$matukioCli 

Default

array('matukio.php')
 

$minimum_joomla_release

$minimum_joomla_release 

Default

'3.7.0'