Beispiel #1
0
 public function getCount()
 {
     $items = new Dase_DBO_Item($this->db);
     $items->list_id = $this->id;
     $items->hidden = false;
     $this->count = $items->findCount();
     return $this->count;
 }
Beispiel #2
0
 public function getItemsCount()
 {
     $i = new Dase_DBO_Item($this->db);
     $i->item_type_id = $this->id;
     return $i->findCount();
 }
Beispiel #3
0
 function updateItemCount()
 {
     $items = new Dase_DBO_Item($this->db);
     $items->collection_id = $this->id;
     $this->item_count = $items->findCount();
     $this->updated = date(DATE_ATOM);
     //postgres boolean weirdness make this necessary
     if (!$this->is_public) {
         $this->is_public = 0;
     }
     $this->update();
 }