In my plugin xml file I have a large number of parameters to retrieve, about 100. Presently, to set a more friendly name to parameters, I am retrieving them like this:
public function __construct(& $subject, $config)
{
parent::__construct($subject, $config);
$this->loadLanguage();
// Load login parameters
$this->simple_name001 = $this->params->get('complex_name001', 'default_value');
$this->simple_name... = $this->params->get('complex_name...', 'default_value');
$this->simple_name100 = $this->params->get('complex_name100', 'default_value');
What's the proper way to handle with this? Should I handle this in a external file (and then use like an array)?
onUserLogin
event and a logout redirect URL parameter in theonUserLogout
event