protected function _populateIssueCounts() { if (!is_array($this->_issuecounts)) { $this->_issuecounts = array(); } if (!array_key_exists('all', $this->_issuecounts)) { $this->_issuecounts['all'] = array(); } if (empty($this->_issuecounts['all'])) { list($this->_issuecounts['all']['closed'], $this->_issuecounts['all']['open']) = TBGIssue::getIssueCountsByProjectID($this->getID()); } if (empty($this->_issuecounts['last30'])) { list($closed, $open) = TBGLogTable::getTable()->getLast30IssueCountsByProjectID($this->getID()); $this->_issuecounts['last30']['open'] = $open; $this->_issuecounts['last30']['closed'] = $closed; } }