public function enable($type = '')
{
if (is_array($type)) {
foreach ($type as $enable_type) {
$this->enable($enable_type);
}
return;
}
if ($type == '' || $type == 'all') {
$this->disabled_types = array();
return;
}
unset($this->disabled_types[$type]);
}