/**
* Class constructor
*
* @param array $options Array of options
*
* @since 1.6
*/
public function __construct($options)
{
$this->_extension = $options['extension'];
$this->_table = $options['table'];
$this->_field = isset($options['field']) && $options['field'] ? $options['field'] : 'catid';
$this->_key = isset($options['key']) && $options['key'] ? $options['key'] : 'id';
$this->_statefield = isset($options['statefield']) ? $options['statefield'] : 'state';
$options['access'] = isset($options['access']) ? $options['access'] : 'true';
$options['published'] = isset($options['published']) ? $options['published'] : 1;
$options['countItems'] = isset($options['countItems']) ? $options['countItems'] : 0;
$options['currentlang'] = Multilanguage::isEnabled() ? Factory::getLanguage()->getTag() : 0;
$this->_options = $options;
}