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; }
public function getItemsCount() { $i = new Dase_DBO_Item($this->db); $i->item_type_id = $this->id; return $i->findCount(); }
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(); }