1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68
|
<?php
/**
* Plugin Name: Welcome
* Plugin URI: http://azhari.harahap.us
* Version: 0.2
* Description: Example plugin
* Author: Unknown
* Author URI: http://azhari.harahap.us
*/
class Welcome_plugin extends CI3_plugin_system {
use plugin_trait;
public function __construct()
{
parent::__construct();
// Add hooks here like add_action, or add_filter...
}
// ------------------------------------------------------------------------
/**
* Install Plugin
*
* Anything that needs to happen when this plugin gets installed
*
* @access public
* @since 0.1.0
* @return bool TRUE by default
*/
public static function install($data = NULL)
{
return TRUE;
}
// ------------------------------------------------------------------------
/**
* Activate Plugin
*
* Anything that needs to happen when this plugin gets activate
*
* @access public
* @since 0.1.0
* @return bool TRUE by default
*/
public function activate($data = NULL)
{
return TRUE;
}
// ------------------------------------------------------------------------
/**
* Deactivate Plugin
*
* Anything that needs to happen when this plugin gets deactivate
*
* @access public
* @since 0.1.0
* @return bool TRUE by default
*/
public function deactivate($data = NULL)
{
return TRUE;
}
}
|