code: public function channelClientPermList($cid, $cldbid, $permsid = false)
      {
          return $this->execute(
              "channelclientpermlist",
              array("cid" => $cid, "cldbid" => $cldbid, $permsid ? "-permsid" : null)
          )->toAssocArray($permsid ? "permsid" : "permid");
      }
docs: Returns a list of permissions defined for a client in a specific channel.
  
  @param  integer $cid
  @param  integer $cldbid
  @param  boolean $permsid
  @return array