Exemplo n.º 1
0
 public function saveActiveView($gridcode, $viewid)
 {
     $activeView = new Gpf_Db_ActiveView();
     $activeView->set(self::ACCOUNTUSERID, Gpf_Session::getAuthUser()->getAccountUserId());
     $activeView->set(self::VIEWTYPE, $gridcode);
     try {
         $activeView->load();
     } catch (Gpf_DbEngine_NoRowException $e) {
     }
     $activeView->set(self::ACTIVEVIEWID, $viewid);
     $activeView->save();
 }
Exemplo n.º 2
0
	private function getActiveViewId($gridCode) {
        $activeView = new Gpf_Db_ActiveView();
        $activeView->set("viewtype", $gridCode);
        $activeView->set("accountuserid", Gpf_Session::getAuthUser()->getAccountUserId());
        $activeView->load();
        return $activeView->get("activeviewid");
    }