Habari\Comments::by_ip PHP Method

by_ip() public static method

selects all comments from a given IP address
public static by_ip ( string $ip = '' ) : array
$ip string an IP address
return array an array of Comment objects written from the given IP
    public static function by_ip($ip = '')
    {
        if (!$ip) {
            return false;
        }
        return self::get(array("ip" => $ip));
    }