code: public function channelGroupPermList($cgid, $permsid = false)
      {
          return $this->execute(
              "channelgrouppermlist",
              array("cgid" => $cgid, $permsid ? "-permsid" : null)
          )->toAssocArray($permsid ? "permsid" : "permid");
      }
docs: Returns a list of permissions assigned to the channel group specified.
  
  @param  integer $cgid
  @param  boolean $permsid
  @return array