Esempio n. 1
0
 public function getList()
 {
     $list = new Dase_DBO_List($this->db);
     $list->load($this->list_id);
     $this->list = $list;
     return $list;
 }
Esempio n. 2
0
 public function postToListAccess($r)
 {
     $list = new Dase_DBO_List($this->db);
     $list->uniq_id = $r->get('id');
     if (!$list->findOne()) {
         $r->renderError(404);
     }
     if ('public' == $r->get('access')) {
         $list->is_public = 1;
         $list->update();
     }
     if ('private' == $r->get('access')) {
         $list->is_public = 0;
         $list->update();
     }
     $r->renderRedirect($list->uniq_id);
 }