PHP 클래스 dbIndex, pkp-lib

This class stores information about a database index. As charactaristics of the index are loaded from the external source, methods and properties of this class are used to build up the index description in ADOdb's datadict format.
파일 보기 프로젝트 열기: pkp/pkp-lib

공개 프로퍼티들

프로퍼티 타입 설명
$columns Indexed fields: Table columns included in this index
$drop Mark index for destruction
$name Index name
$opts Index options: Index-level options

공개 메소드들

메소드 설명
_tag_cdata ( &$parser, $cdata ) XML Callback to process CDATA elements
_tag_close ( &$parser, $tag ) XML Callback to process end elements
_tag_open ( &$parser, $tag, $attributes ) XML Callback to process start elements
addField ( string $name ) : string Adds a field to the index
addIndexOpt ( string $opt ) : string Adds options to the index
create ( object &$xmls ) : array Generates the SQL that will create the index in the database
dbIndex ( object &$parent, array $attributes = NULL ) Initializes the new dbIndex object.
drop ( ) Marks an index for destruction

메소드 상세

_tag_cdata() 공개 메소드

Processes XML cdata.
public _tag_cdata ( &$parser, $cdata )

_tag_close() 공개 메소드

XML Callback to process end elements
public _tag_close ( &$parser, $tag )

_tag_open() 공개 메소드

Processes XML opening tags. Elements currently processed are: DROP, CLUSTERED, BITMAP, UNIQUE, FULLTEXT & HASH.
public _tag_open ( &$parser, $tag, $attributes )

addField() 공개 메소드

Adds a field to the index
public addField ( string $name ) : string
$name string Field name
리턴 string Field list

addIndexOpt() 공개 메소드

Adds options to the index
public addIndexOpt ( string $opt ) : string
$opt string Comma-separated list of index options.
리턴 string Option list

create() 공개 메소드

Generates the SQL that will create the index in the database
public create ( object &$xmls ) : array
$xmls object adoSchema object
리턴 array Array containing index creation SQL

dbIndex() 공개 메소드

Initializes the new dbIndex object.
public dbIndex ( object &$parent, array $attributes = NULL )
$parent object Parent object
$attributes array Attributes

drop() 공개 메소드

Marks an index for destruction
public drop ( )

프로퍼티 상세

$columns 공개적으로 프로퍼티

Indexed fields: Table columns included in this index
public $columns

$drop 공개적으로 프로퍼티

Mark index for destruction
public $drop

$name 공개적으로 프로퍼티

Index name
public $name

$opts 공개적으로 프로퍼티

Index options: Index-level options
public $opts