API Documentation

Service/DeveloperGarden/IpLocation/IpAddress.php

Includes Classes 
category
Zend
copyright
Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
license
http://framework.zend.com/license/new-bsd New BSD License
package
Zend_Service
subpackage
DeveloperGarden
version
$Id: IpAddress.php 20166 2010-01-09 19:00:17Z bkarwin $
Classes
Zend_Service_DeveloperGarden_IpLocation_IpAddress

Description

Zend Framework

LICENSE

This source file is subject to the new BSD license that is bundled with this package in the file LICENSE.txt. It is also available through the world-wide-web at this URL: http://framework.zend.com/license/new-bsd If you did not receive a copy of the license and are unable to obtain it through the world-wide-web, please send an email to license@zend.com so we can send you a copy immediately.

Zend_Service_DeveloperGarden_IpLocation_IpAddress

author
Marco Kaiser
category
Zend
copyright
Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
license
http://framework.zend.com/license/new-bsd New BSD License
package
Zend_Service
subpackage
DeveloperGarden
Properties
$_version
$_versionSupported
$_address
Methods
__construct
setIp
getIp
setVersion
getVersion

Description

Properties

$_address

 $_address = 'null'

Details

visibility
private
default
null
final
false
static
false

$_version

integer $_version = '4'

the ip version ip v4 = 4 ip v6 = 6

Details

$_version
integer
visibility
private
default
4
final
false
static
false

$_versionSupported

array $_versionSupported = 'array'

currently supported versions

Details

$_versionSupported
array
visibility
private
default
array
final
false
static
false

Methods

__construct

__construct( string $ip, integer $version = 4 ) : Zend_Service_Developergarde_IpLocation_IpAddress

create ipaddress object

Arguments
$ip
string
$version
integer
Output
Zend_Service_Developergarde_IpLocation_IpAddress
Details
visibility
public
final
false
static
false

getIp

getIp( ) : string

returns the current address

Output
string
Details
visibility
public
final
false
static
false

getVersion

getVersion( ) : integer

returns the ip version

Output
integer
Details
visibility
public
final
false
static
false

setIp

setIp( string $ip ) : Zend_Service_DeveloperGarden_IpLocation_IpAddress

sets new ip address

Arguments
$ip
string
Details
visibility
public
final
false
static
false
throws

setVersion

setVersion( integer $version ) : Zend_Service_DeveloperGarden_IpLocation_IpAddress

sets new ip version

Arguments
$version
integer
Details
visibility
public
final
false
static
false
throws
Documentation was generated by DocBlox.