You are here

class ogGroupThreePosts in Organic groups 7

Same name and namespace in other branches
  1. 7.2 scripts/generate-og-d6-content.php \ogGroupThreePosts

A group with three posts.

Hierarchy

Expanded class hierarchy of ogGroupThreePosts

File

scripts/generate-og-d6-content.php, line 139

View source
class ogGroupThreePosts implements ogContent {
  public function groupList($user_ids) {
    $list = array();
    $list[] = array(
      'title' => 'group-with-3-posts',
      'uid' => $user_ids[3],
      'body' => 'group with 3 posts',
      'og_description' => 'description group with 3 posts.',
    );
    return $list;
  }
  public function postList($user_ids, $groups) {
    $gid = $groups[0];
    $list = array();
    foreach (array(
      1,
      2,
      3,
    ) as $itr) {
      $list[] = array(
        'title' => 'group-posts-' . $itr,
        'uid' => $user_ids[3],
        'body' => 'group posts ' . $itr,
        'og_groups' => array(
          $gid,
        ),
      );
    }
    return $list;
  }
  public function groupActions($user_ids, $groups, $posts) {
  }

}

Members