/**
* Constructor
*
* @param array $config An optional associative array of configuration settings.
*/
public function __construct(array $config)
{
parent::__construct($config);
// Set class properties from config data passed in constructor
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'];
}
// Set default value for $canDo to avoid fatal error if child class doesn't set value for this property
$this->canDo = new CMSObject();
}