Home » Documentation » What is PeoplePods? » SDK Documentation » Object Definitions » Content Object » $Content->addComment()

$Content->addComment()

Add a new comment to this piece of content.

The new comment will be owned by $POD->currentUser().

$content->addComment('This content sucks!!');

Of note, add comment causes $Content->comments() to reload itself automatically, so the new comment will be present in the stack immediately.

Comments can be assigned an arbitrary "type" field, though custom stack queries will have to be built to utilitize this field...

$content->addComment('This is great!','review');
$content->addComment('What is going on?','question');

(To remove a comment, use $Comment->delete())

  • Discuss This Document

No comments have been posted yet.

Download Download the latest version of PeoplePods!

0.667 Latest Version:
Release Notes

A free membership is required to download PeoplePods.

  Already Registered? Login

Recent Posts from Our Blog

Developer Preview Launch!

I am very excited to announce the launch of PeoplePods version 0.666, THE DEVELOPER PREVIEW! After tons of hacking, I have tweaked the last line of code, and I am finally ready for a wider audience...