[ Index ]

PHP Cross Reference of moodle-2.8

title

Body

[close]

/lib/zend/Zend/Validate/ -> Ip.php (summary)

Zend Framework LICENSE

Copyright: Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
License: http://framework.zend.com/license/new-bsd New BSD License
Version: $Id$
File Size: 191 lines (5 kb)
Included or required:0 times
Referenced: 0 times
Includes or requires: 0 files

Defines 1 class

Zend_Validate_Ip:: (6 methods):
  __construct()
  getOptions()
  setOptions()
  isValid()
  _validateIPv4()
  _validateIPv6()


Class: Zend_Validate_Ip  - X-Ref


__construct($options = array()   X-Ref
Sets validator options

param: array $options OPTIONAL Options to set, see the manual for all available options
return: void

getOptions()   X-Ref
Returns all set options

return: array

setOptions($options)   X-Ref
Sets the options for this validator

param: array $options
return: Zend_Validate_Ip

isValid($value)   X-Ref
Defined by Zend_Validate_Interface

Returns true if and only if $value is a valid IP address

param: mixed $value
return: boolean

_validateIPv4($value)   X-Ref
Validates an IPv4 address

param: string $value

_validateIPv6($value)   X-Ref
Validates an IPv6 address

param: string $value Value to check against
return: boolean True when $value is a valid ipv6 address



Generated: Fri Nov 28 20:29:05 2014 Cross-referenced by PHPXref 0.7.1