public function insertCommentEntry($comment, $uri = null)
    {
        if ($uri instanceof Zend_Gdata_Photos_PhotoEntry) {
            $uri = $uri->getLink(self::FEED_LINK_PATH)->href;
        }
        if ($uri === null) {
            require_once 'Zend/Gdata/App/InvalidArgumentException.php';
            throw new Zend_Gdata_App_InvalidArgumentException(
                    'URI must not be null');
        }
        $newEntry = $this->insertEntry($comment, $uri, 'Zend_Gdata_Photos_CommentEntry');
        return $newEntry;
    }
public function insertCommentEntry($comment, $uri = null)
    {
        if ($uri instanceof Zend_Gdata_Photos_PhotoEntry) {
            $uri = $uri->getLink(self::FEED_LINK_PATH)->href;
        }
        if ($uri === null) {
            require_once 'Zend/Gdata/App/InvalidArgumentException.php';
            throw new Zend_Gdata_App_InvalidArgumentException(
                    'URI must not be null');
        }
        $newEntry = $this->insertEntry($comment, $uri, 'Zend_Gdata_Photos_CommentEntry');
        return $newEntry;
    }
public function insertCommentEntry ( $ comment , $ uri = null ) { if ( $ uri instanceof Zend_Gdata_Photos_PhotoEntry ) { $ uri = $ uri -> getLink ( self :: FEED_LINK_PATH ) -> href ; } if ( $ uri === null ) { require_once 'Zend/Gdata/App/InvalidArgumentException.php' ; throw new Zend_Gdata_App_InvalidArgumentException ( 'URI must not be null' ) ; } $ newEntry = $ this -> insertEntry ( $ comment , $ uri , 'Zend_Gdata_Photos_CommentEntry' ) ; return $ newEntry ; }
Create a new comment from a CommentEntry.

@param Zend_Gdata_Photos_CommentEntry $comment The comment entry to
insert.
@param string $url The URI where the comment should be uploaded to.
Alternatively, a PhotoEntry can be provided and
the comment will be added to that photo.
@return Zend_Gdata_Photos_CommentEntry The inserted comment entry
as returned by the server.
@throws Zend_Gdata_App_Exception
@throws Zend_Gdata_App_HttpException
Create a new comment from a CommentEntry .