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

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

    return $this->execute("permget", array($permident => $permid))->toAssocArray("permsid");
  }
public function selfPermCheck ( $ permid ) { if ( ! is_array ( $ permid ) ) { $ permident = ( is_numeric ( $ permid ) ) ? "permid" : "permsid" ; } else { $ permident = ( is_numeric ( current ( $ permid ) ) ) ? "permid" : "permsid" ; } return $ this -> execute ( "permget" , array ( $ permident => $ permid ) ) -> toAssocArray ( "permsid" ) ; }
Returns an array containing the value of a specified permission for your own client.

@param  integer $permid
@return array
Returns an array containing the value of a specified permission for your own client .