public function __construct(array $config)
{
parent::__construct($config);
if (isset($config['toolbar_title'])) {
$this->toolbarTitle = $config['toolbar_title'];
} else {
$this->toolbarTitle = strtoupper($this->option . '_MANAGER_' . $this->getName());
}
if (isset($config['toolbar_icon'])) {
$this->toolbarIcon = $config['toolbar_icon'];
} else {
$this->toolbarIcon = strtolower($this->getName());
}
if (isset($config['supports_batch'])) {
$this->supportsBatch = $config['supports_batch'];
}
if (isset($config['help_link'])) {
$this->helpLink = $config['help_link'];
}
$this->canDo = new CMSObject();
}