Beispiel #1
0
 public static function get($id = '')
 {
     if ($id) {
         $lists = new Listmaker_Model_Lists();
         return $lists->find($id)->current();
     } else {
         $lists = new Listmaker_Model_Lists();
         return $lists->createRow();
     }
 }
Beispiel #2
0
 public function getAction()
 {
     $view = $this->initView();
     $view->lists = Listmaker_Model_Lists::getAll();
     $content = $view->render('list/show_all.tpl');
     $this->getResponse()->setHeader('Content-Type', $this->fmt)->appendBody($content);
 }
Beispiel #3
0
 public static function getAll()
 {
     $atts = new Listmaker_Model_Lists();
     return $atts->fetchAll($atts->select()->order(array('name')));
 }