You are here

class ogGroupPostMultipleGroups in Organic groups 7

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

A group post associated with two groups.

Hierarchy

Expanded class hierarchy of ogGroupPostMultipleGroups

File

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

View source
class ogGroupPostMultipleGroups implements ogContent {
  public function groupList($user_ids) {
    $list = array();
    $list['alpha'] = array(
      'title' => 'group-alpha',
      'uid' => $user_ids[3],
      'body' => 'group alpha',
      'og_description' => 'description group alpha.',
    );
    $list['beta'] = array(
      'title' => 'group-beta',
      'uid' => $user_ids[3],
      'body' => 'group beta',
      'og_description' => 'description group beta.',
    );
    return $list;
  }
  public function postList($user_ids, $groups) {
    $list = array();
    $gid_b = $groups['beta'];
    $gid_a = $groups['alpha'];
    $list[] = array(
      'title' => 'group-posts-ab',
      'uid' => $user_ids[3],
      'body' => 'group posts ab',
      'og_groups' => array(
        $gid_a,
        $gid_b,
      ),
    );
    return $list;
  }
  public function groupActions($user_ids, $groups, $posts) {
  }

}

Members