Ejemplo n.º 1
0
 function __construct()
 {
     parent::__construct();
     // Register Extra tasks
     $this->registerTask('add', 'upload');
     $this->registerTask('start_upload', 'start_upload');
 }
Ejemplo n.º 2
0
 function __construct()
 {
     parent::__construct();
     // Register Extra tasks
     $this->registerTask('add', 'sync');
     $this->registerTask('backup', 'sync');
 }
 function __construct()
 {
     // remove obsolete files
     jimport('joomla.filesystem.file');
     jimport('joomla.filesystem.folder');
     $removeFiles = array();
     $removeFiles[] = JPATH_ADMINISTRATOR . DS . 'components' . DS . 'com_joomailermailchimpintegration' . DS . 'assets' . DS . 'js' . DS . 'jquery-1.4.2.min.js';
     $removeFiles[] = JPATH_ADMINISTRATOR . DS . 'components' . DS . 'com_joomailermailchimpintegration' . DS . 'assets' . DS . 'js' . DS . 'jquery.clockpick.1.2.7.min.js';
     $removeFiles[] = JPATH_ADMINISTRATOR . DS . 'components' . DS . 'com_joomailermailchimpintegration' . DS . 'assets' . DS . 'css' . DS . 'jquery.clockpick.1.2.7.css';
     $removeFiles[] = JPATH_ADMINISTRATOR . DS . 'components' . DS . 'com_joomailermailchimpintegration' . DS . 'assets' . DS . 'images' . DS . 'ol_bg.jpg';
     $removeFiles[] = JPATH_ADMINISTRATOR . DS . 'components' . DS . 'com_joomailermailchimpintegration' . DS . 'models' . DS . 'archive.php';
     $removeFiles[] = JPATH_ADMINISTRATOR . DS . 'components' . DS . 'com_joomailermailchimpintegration' . DS . 'controllers' . DS . 'archive.php';
     $removeFiles[] = JPATH_ADMINISTRATOR . DS . 'components' . DS . 'com_joomailermailchimpintegration' . DS . 'models' . DS . 'suppression.php';
     $removeFiles[] = JPATH_ADMINISTRATOR . DS . 'components' . DS . 'com_joomailermailchimpintegration' . DS . 'controllers' . DS . 'suppression.php';
     $removeFiles[] = JPATH_ADMINISTRATOR . DS . 'components' . DS . 'com_joomailermailchimpintegration' . DS . 'helpers' . DS . 'cache.php';
     $removeFiles[] = JPATH_ADMINISTRATOR . DS . 'components' . DS . 'com_joomailermailchimpintegration' . DS . 'assets' . DS . 'images' . DS . 'templateEditor.png';
     $removeFiles[] = JPATH_ADMINISTRATOR . DS . 'components' . DS . 'com_joomailermailchimpintegration' . DS . 'assets' . DS . 'images' . DS . 'clearPosition.png';
     $removeFiles[] = JPATH_ADMINISTRATOR . DS . 'components' . DS . 'com_joomailermailchimpintegration' . DS . 'assets' . DS . 'images' . DS . 'apply.png';
     foreach ($removeFiles as $rf) {
         if (JFile::exists($rf)) {
             JFile::Delete($rf);
         }
     }
     // remove obsolete folders
     $removeFolders = array();
     $removeFolders[] = JPATH_ADMINISTRATOR . DS . 'components' . DS . 'com_joomailermailchimpintegration' . DS . 'assets' . DS . 'scripts';
     $removeFolders[] = JPATH_ADMINISTRATOR . DS . 'components' . DS . 'com_joomailermailchimpintegration' . DS . 'views' . DS . 'archive';
     $removeFolders[] = JPATH_ADMINISTRATOR . DS . 'components' . DS . 'com_joomailermailchimpintegration' . DS . 'views' . DS . 'suppression';
     foreach ($removeFolders as $rf) {
         if (JFolder::exists($rf)) {
             JFolder::Delete($rf);
         }
     }
     parent::__construct();
     $this->registerTask('install', 'install');
     $this->registerTask('upgrade', 'upgrade');
 }
Ejemplo n.º 4
0
 function __construct()
 {
     parent::__construct();
     $this->registerTask('add', 'send');
 }
Ejemplo n.º 5
0
 /**
  * constructor (registers additional tasks to methods)
  * @return void
  */
 function __construct()
 {
     parent::__construct();
 }
Ejemplo n.º 6
0
 function __construct()
 {
     parent::__construct();
     // Register Extra tasks
     $this->registerTask('add', 'edit');
 }