Search
 
SCRIPT & CODE EXAMPLE
 

C

joomla

<?php

use JoomlaCMSInstallerInstallerAdapter;

class com_componentnameInstallerScript
{
	/**
	 * Constructor
	 *
	 * @param   InstallerAdapter  $adapter  The object responsible for running this script
	 */
	public function __construct(InstallerAdapter $adapter)
	{
	}
	
	/**
	 * Called before any type of action
	 *
	 * @param   string  $route  Which action is happening (install|uninstall|discover_install|update)
	 * @param   InstallerAdapter  $adapter  The object responsible for running this script
	 *
	 * @return  boolean  True on success
	 */
	public function preflight($route, InstallerAdapter $adapter)
	{
		return true;
	}
	
	/**
	 * Called after any type of action
	 *
	 * @param   string  $route  Which action is happening (install|uninstall|discover_install|update)
	 * @param   InstallerAdapter  $adapter  The object responsible for running this script
	 *
	 * @return  boolean  True on success
	 */
	public function postflight($route, $adapter)
	{
		return true;
	}
	
	/**
	 * Called on installation
	 *
	 * @param   InstallerAdapter  $adapter  The object responsible for running this script
	 *
	 * @return  boolean  True on success
	 */
	public function install(InstallerAdapter $adapter)
	{
		return true;
	}
	
	/**
	 * Called on update
	 *
	 * @param   InstallerAdapter  $adapter  The object responsible for running this script
	 *
	 * @return  boolean  True on success
	 */
	public function update(InstallerAdapter $adapter)
	{
		return true;
	}
	
	/**
	 * Called on uninstallation
	 *
	 * @param   InstallerAdapter  $adapter  The object responsible for running this script
	 */
	public function uninstall(InstallerAdapter $adapter)
	{
		return true;
	}
}

?>
Comment

PREVIOUS NEXT
Code Example
C :: how can i learn c game development 
C :: leer string en c 
C :: block quote in lua 
C :: onvert a string into 2d string in c 
C :: ask the user if they would like to do something again in C 
C :: gdebi install with yes option 
C :: uninstall elgg from hostgtor 
C :: Unix socket I/O primitives 
C :: call cuda kernel from c parameters 
C :: pointeur de pointeur en language c 
C :: deepak 
C :: arcolinux 
C :: link a lib iusing pragma 
C :: simpy process return value 
C :: Trier lexicographiquement en c 
C :: passing an array to a function 
C :: Sum of upper & lower triangles elements 
C :: libraries that are not supported by null sound safety in flutter 
C :: buildCheckFunction(locations) 
C :: or gmode inline image 
C :: finding average of elements in array using struct in C? 
C :: Sampoo C programming 
C :: helloworld c 
C :: C Macros using #define 
Dart :: dart regex for email 
Dart :: flutter label align top 
Dart :: round to decimal places dart 
Dart :: flutter mediaquery 
Dart :: flutter types class enum 
Dart :: flutter dissmis snackbar 
ADD CONTENT
Topic
Content
Source link
Name
8+9 =