[ Index ]

PHP Cross Reference of moodle-2.8

title

Body

[close]

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

Defines 12 functions

  __construct()
  getAdapter()
  setAdapter()
  getExclude()
  setExclude()
  getField()
  setField()
  getTable()
  setTable()
  getSchema()
  setSchema()
  _query()

Functions
Functions that are not part of a class:

__construct($options)   X-Ref
Provides basic configuration for use with Zend_Validate_Db Validators
Setting $exclude allows a single record to be excluded from matching.
Exclude can either be a String containing a where clause, or an array with `field` and `value` keys
to define the where clause added to the sql.
A database adapter may optionally be supplied to avoid using the registered default adapter.

The following option keys are supported:
'table'   => The database table to validate against
'schema'  => The schema keys
'field'   => The field to check for a match
'exclude' => An optional where clause or field/value pair to exclude from the query
'adapter' => An optional database adapter to use

param: array|Zend_Config $options Options to use for this validator

getAdapter()   X-Ref
Returns the set adapter

return: Zend_Db_Adapter

setAdapter($adapter)   X-Ref
Sets a new database adapter

param: Zend_Db_Adapter_Abstract $adapter
return: Zend_Validate_Db_Abstract

getExclude()   X-Ref
Returns the set exclude clause

return: string|array

setExclude($exclude)   X-Ref
Sets a new exclude clause

param: string|array $exclude
return: Zend_Validate_Db_Abstract

getField()   X-Ref
Returns the set field

return: string|array

setField($field)   X-Ref
Sets a new field

param: string $field
return: Zend_Validate_Db_Abstract

getTable()   X-Ref
Returns the set table

return: string

setTable($table)   X-Ref
Sets a new table

param: string $table
return: Zend_Validate_Db_Abstract

getSchema()   X-Ref
Returns the set schema

return: string

setSchema($schema)   X-Ref
Sets a new schema

param: string $schema
return: Zend_Validate_Db_Abstract

_query($value)   X-Ref
Run query and returns matches, or null if no matches are found.

param: String $value
return: Array when matches are found.



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