3
defined( '_JEXEC' ) or die( 'Restricted access' );
5
// Import library dependencies
6
jimport('joomla.plugin.plugin');
8
class plgUserDeleteinactive_jomsocial extends JPlugin
13
* For php4 compatability we must not use the __constructor as a constructor for
14
* plugins because func_get_args ( void ) returns a copy of all passed arguments
15
* NOT references. This causes problems with cross-referencing necessary for the
16
* observer design pattern.
18
function plgUserDeleteinactive_jomsocial( &$subject )
20
parent::__construct( $subject );
22
// load plugin parameters
23
$this->_plugin = JPluginHelper::getPlugin( 'user', 'deleteinactive-jomsocial' );
24
$this->_params = new JParameter( $this->_plugin->params );
28
* Plugin method with the same name as the event will be called automatically.
30
function onLoginUser($user, $options)
33
// TODO: use $user['username'] to find out if this user is an administrator
34
// TODO: Only execute if the currently viewing user is an administrator