id; } /** * Getter function for port number * * @return integer */ public function get_Port() { return $this->port; } /** * Getter function for port name * * @return string */ public function get_IANA_Name() { return $this->iana_name; } /** * Setter function for port name * * @return string */ public function set_IANA_Name($str_New_Name) { $this->iana_name = $str_New_Name; } /** * Geeter function for port banner * * @return string */ public function get_Banner() { return $this->banner; } /** * Setter function for port notes * * @param * $str_New_Banner */ public function set_Banner($str_New_Banner) { $this->banner = $str_New_Banner; } /** * Getter function for port notes * * @return string */ public function get_Notes() { return $this->notes; } /** * Setter function for port notes * * @param string $str_New_Notes */ public function set_Notes($str_New_Notes) { $this->notes = $str_New_Notes; } /** * Setter function that will append new notes instead of overwriting * * @param string $str_New_Notes */ public function append_Notes($str_New_Notes) { $this->notes .= $str_New_Notes; } } /** * Represents a TCP port/service * * @author Ryan Prather * */ class tcp_ports extends port { /** * Constructor * * @param integer $int_ID * @param integer $int_Port * @param string $str_IANA_Name * @param string $str_Banner * @param string $str_Notes */ public function __construct($int_ID, $int_Port, $str_IANA_Name, $str_Banner, $str_Notes) { $this->id = $int_ID; $this->port = $int_Port; $this->iana_name = $str_IANA_Name; $this->banner = $str_Banner; $this->notes = $str_Notes; } /** * Getter function for preformated table row * * @return string */ public function get_Table_Data($intface_IP, $intface_ID, $Odd_Row) { $ret = "