/** */ function getTotalPosts() { if ($this->_totalPosts == null) { $blogs = new Blogs(); $this->_totalPosts = $blogs->getBlogTotalPosts($this->getId()); } return $this->_totalPosts; }