Skip to content

Class diagrams

scribu edited this page Apr 10, 2013 · 4 revisions

Core Classes

core classes

Connection types:

  • P2P_Connection_Type_Factory knows how to create, store and retrieve P2P_Connection_Type instances.
  • P2P_Connection_Type contains all the information about a particular connection type.
  • P2P_Directed_Connection_Type = P2P_Connection_Type + direction.
  • P2P_Side_* classes contain various bits of knowledge about a particular type of object (post, user etc).

Items:

  • P2P_Item_* classes wrap regular WordPress objects and give them a consistent interface.
  • P2P_List contains a list of P2P_Item instances.

Querying:

  • P2P_Query_* classes hook into the appropriate WordPress querying class (WP_Query or WP_User_Query).
  • P2P_Query knows how to convert query vars into SQL strings.
  • P2P_URL_Query makes some query vars public (i.e. usable via URL).

Misc:

  • P2P_Widget creates the widget.
  • P2P_Shortcodes creates the shortcodes.

Admin Classes

admin classes

The diagrams were created with Lucidchart.