protected function getSidebar()
 {
     $sidebarAlias = "application.modules.calendar.views.sidebar";
     $params = array("hasSubUid" => UserUtil::hasSubUid(Ibos::app()->user->uid), "lang" => Ibos::getLangSource("calendar.default"));
     $sidebarView = $this->renderPartial($sidebarAlias, $params, true);
     return $sidebarView;
 }
 public function getSidebar()
 {
     $sidebarAlias = "application.modules.assignment.views.sidebar";
     $uid = Ibos::app()->user->uid;
     $params = array("hasSubUid" => UserUtil::hasSubUid($uid), "unfinishCount" => Assignment::model()->getUnfinishCountByUid($uid));
     return $this->renderPartial($sidebarAlias, $params, true);
 }