/** * Gets the comments for this image. * If the comments weren't supplied with the original image, this method will try to * retrieve them again just to make sure. * * @access public * @return array */ public function getComments() { if (($this->commentCount === null || intval($this->commentCount) > 0) && $this->comments === null) { if ($this->author != null) { $pic = new Picasa(null, null, null, $this->contextArray); $user = $this->author->getUser(); $thisImg = $pic->getImageById($user, $this->albumid, $this->idnum); $this->commentCount = $thisImg->getCommentCount(); $this->comments = $thisImg->getComments(); } } return $this->comments; }
public function actionDetail($albumid, $imageid) { $pic = new Picasa(); $image = $pic->getImageById($this->username, $albumid, $imageid, null, 1440); $this->render('detail', array('image' => $image)); }