public function channelPermAssign($cid, $permid, $permvalue)
  {
    if(!is_array($permid))
    {
      $permident = (is_numeric($permid)) ? "permid" : "permsid";
    }
    else
    {
      $permident = (is_numeric(current($permid))) ? "permid" : "permsid";
    }

    $this->execute("channeladdperm", array("cid" => $cid, $permident => $permid, "permvalue" => $permvalue));
  }
public function channelPermAssign($cid, $permid, $permvalue)
  {
    if(!is_array($permid))
    {
      $permident = (is_numeric($permid)) ? "permid" : "permsid";
    }
    else
    {
      $permident = (is_numeric(current($permid))) ? "permid" : "permsid";
    }

    $this->execute("channeladdperm", array("cid" => $cid, $permident => $permid, "permvalue" => $permvalue));
  }
public function channelPermAssign ( $ cid , $ permid , $ permvalue ) { if ( ! is_array ( $ permid ) ) { $ permident = ( is_numeric ( $ permid ) ) ? "permid" : "permsid" ; } else { $ permident = ( is_numeric ( current ( $ permid ) ) ) ? "permid" : "permsid" ; } $ this -> execute ( "channeladdperm" , array ( "cid" => $ cid , $ permident => $ permid , "permvalue" => $ permvalue ) ) ; }
Adds a set of specified permissions to a channel. Multiple permissions can be added by
providing the two parameters of each permission.

@param  integer $cid
@param  integer $permid
@param  integer $permvalue
@return void
Adds a set of specified permissions to a channel . Multiple permissions can be added by providing the two parameters of each permission .