public function clientPermAssign($cldbid, $permid, $permvalue, $permskip = FALSE)
  {
    if(!is_array($permid))
    {
      $permident = (is_numeric($permid)) ? "permid" : "permsid";
    }
    else
    {
      $permident = (is_numeric(current($permid))) ? "permid" : "permsid";
    }

    $this->execute("clientaddperm", array("cldbid" => $cldbid, $permident => $permid, "permvalue" => $permvalue, "permskip" => $permskip));
  }
public function clientPermAssign($cldbid, $permid, $permvalue, $permskip = FALSE)
  {
    if(!is_array($permid))
    {
      $permident = (is_numeric($permid)) ? "permid" : "permsid";
    }
    else
    {
      $permident = (is_numeric(current($permid))) ? "permid" : "permsid";
    }

    $this->execute("clientaddperm", array("cldbid" => $cldbid, $permident => $permid, "permvalue" => $permvalue, "permskip" => $permskip));
  }
public function clientPermAssign ( $ cldbid , $ permid , $ permvalue , $ permskip = FALSE ) { if ( ! is_array ( $ permid ) ) { $ permident = ( is_numeric ( $ permid ) ) ? "permid" : "permsid" ; } else { $ permident = ( is_numeric ( current ( $ permid ) ) ) ? "permid" : "permsid" ; } $ this -> execute ( "clientaddperm" , array ( "cldbid" => $ cldbid , $ permident => $ permid , "permvalue" => $ permvalue , "permskip" => $ permskip ) ) ; }
Adds a set of specified permissions to a client. Multiple permissions can be added by providing
the three parameters of each permission.

@param  integer $cldbid
@param  integer $permid
@param  integer $permvalue
@param  integer $permskip
@return void
Adds a set of specified permissions to a client . Multiple permissions can be added by providing the three parameters of each permission .