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

    return $this->execute("permfind", array($permident => $permid))->toArray();
  }
public function permissionFind($permid)
  {
    if(!is_array($permid))
    {
      $permident = (is_numeric($permid)) ? "permid" : "permsid";
    }
    else
    {
      $permident = (is_numeric(current($permid))) ? "permid" : "permsid";
    }

    return $this->execute("permfind", array($permident => $permid))->toArray();
  }
public function permissionFind ( $ permid ) { if ( ! is_array ( $ permid ) ) { $ permident = ( is_numeric ( $ permid ) ) ? "permid" : "permsid" ; } else { $ permident = ( is_numeric ( current ( $ permid ) ) ) ? "permid" : "permsid" ; } return $ this -> execute ( "permfind" , array ( $ permident => $ permid ) ) -> toArray ( ) ; }
Returns the IDs of all clients, channels or groups using the permission with the
specified ID.

@param  integer $permid
@return array
Returns the IDs of all clients channels or groups using the permission with the specified ID .