[ Index ]

PHP Cross Reference of moodle-2.8

title

Body

[close]

/lib/zend/Zend/Validate/ -> CreditCard.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: 317 lines (10 kb)
Included or required:0 times
Referenced: 0 times
Includes or requires: 0 files

Defines 1 class

Zend_Validate_CreditCard:: (7 methods):
  __construct()
  getType()
  setType()
  addType()
  getService()
  setService()
  isValid()


Class: Zend_Validate_CreditCard  - X-Ref


__construct($options = array()   X-Ref
Constructor

param: string|array $type OPTIONAL Type of CCI to allow

getType()   X-Ref
Returns a list of accepted CCIs

return: array

setType($type)   X-Ref
Sets CCIs which are accepted by validation

param: string|array $type Type to allow for validation
return: Zend_Validate_CreditCard Provides a fluid interface

addType($type)   X-Ref
Adds a CCI to be accepted by validation

param: string|array $type Type to allow for validation
return: Zend_Validate_CreditCard Provides a fluid interface

getService()   X-Ref
Returns the actual set service

return: callback

setService($service)   X-Ref
Sets a new callback for service validation

param: unknown_type $service

isValid($value)   X-Ref
Defined by Zend_Validate_Interface

Returns true if and only if $value follows the Luhn algorithm (mod-10 checksum)

param: string $value
return: boolean



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