/** * @param $wIId * @param $type {controller, template} * @return string */ public function getFullClassName($wIId, $type) { return 'OCA\\Dashboard\\Widgets\\' . ucwords(Helper::wId($wIId)) . '\\' . ucwords(Helper::wId($wIId)) . ucwords($type); }
public function removeWidgetInstance($wIId) { return $this->widgetConfigDAO->removeWidgetConfigs(Helper::wId($wIId), Helper::wNo($wIId), $this->user); }
/** * * is only called once to create the wId controller object * * @param $wIId */ private function x_createWidgetTemplateObject($wIId) { $templateClass = 'OCA\\Dashboard\\Widgets\\' . ucwords(Helper::wId($wIId)) . '\\' . ucwords(Helper::wId($wIId)) . 'Template'; if (class_exists($templateClass)) { $this->widgetTemplateObjects[$wIId] = new $templateClass($wIId, $this->widgetConfigDAO, $this->l10n); if (!$this->widgetTemplateObjects[$wIId]) { Util::writeLog('dashboard', 'Could not create widget template object (wIId = ' . $wIId . ')', 1); } } }