Home » Documentation » What is PeoplePods? » SDK Documentation » Flags

Flags

Flags are per-user pieces of information that can be added to Person Objects, Content Objects, and Group Objects.

Flags establish links between people, and between people and pieces of content. Favorites, watch lists, and friends are all implementations of flags that are provided by PeoplePods, but you can create your own custom flags too!

Flags might be used to create new relationships between users, such as additional friend lists or block lists.

Flags can also be used to create new relationships to content, such as adding a rating, or reporting something as "offensive."

To learn about adding and querying flags, see $Obj-addFlag(), $Obj-removeFlag(), $Obj-hasFlag(), and $Obj->toggleFlag().

If you want to add a value to a person or piece of content that will be the same for every user, use meta fields.

  • Discuss This Document

No comments have been posted yet.

Download Download the latest version of PeoplePods!

0.9 Latest Version:
Release Notes

Join the PeoplePods developer network and get direct access to documentation, additional plugins, and our forums!

  Already Registered? Login

Recent Posts from Our Blog

Version 0.9 is here!

The latest version of PeoplePods is now available for download! This version features a drastically revamped theme which is now valid HTML5, a completely rewritten JSON-powered API, many...

Ben Brown on how running a community is like throwing a giant, never-ending party

An interview I did with OpenSource.com is now online!  Read it here. In it, I discuss how running an online community is like throwing a giant, never-ending party, how open source techniques...