Bitrix API

Procedure extends BaseObject

Class BaseObject Base class for all schema objects such as tables, columns, indexes, etc.

Table of Contents

Properties

$body  : mixed
$name  : mixed
$parent  : BaseObject|null
$type  : mixed

Methods

__construct()  : mixed
compareName()  : int
Compares name of the table with given.
create()  : Procedure
Creates stored procedure object from tokens.
getCompareName()  : string
Returns "normalized" name of the table.
getCreateDdl()  : array<string|int, mixed>|string
Return DDL for procedure creation.
getDropDdl()  : array<string|int, mixed>|string
Return DDL for procedure destruction.
getLowercasedName()  : string
Returns "lowercased" name of the object.
getModifyDdl()  : array<string|int, mixed>|string
Return DDL for procedure modification.
getUnquotedName()  : array<string|int, mixed>|string
Returns "unquoted" name of the object.
setBody()  : BaseObject
Sets source code for object.
setParent()  : BaseObject
Sets parent for object.

Properties

Methods

__construct()

public __construct([string $name = '' ][, string $type = '' ]) : mixed
Parameters
$name : string = ''

Name of stored procedure.

$type : string = ''

Type of stored procedure.

compareName()

Compares name of the table with given.

public final compareName(string $name) : int

If name has no quotes when comparison is case insensitive.

Parameters
$name : string

Table name to compare.

Tags
see
strcmp
Return values
int

create()

Creates stored procedure object from tokens.

public static create(Tokenizer $tokenizer) : Procedure

Current position should point to the type of the stored procedure (PROCEDURE, FUNCTION or TYPE).

Name may consist of two parts divided by '.'.

Parameters
$tokenizer : Tokenizer

Tokens collection.

Return values
Procedure

getCompareName()

Returns "normalized" name of the table.

public final static getCompareName(string $name) : string

If name is not quoted then it made uppercase.

Parameters
$name : string

Table name.

Return values
string

getCreateDdl()

Return DDL for procedure creation.

public getCreateDdl([string $dbType = '' ]) : array<string|int, mixed>|string
Parameters
$dbType : string = ''

Database type (MYSQL, ORACLE or MSSQL).

Return values
array<string|int, mixed>|string

getDropDdl()

Return DDL for procedure destruction.

public getDropDdl([string $dbType = '' ]) : array<string|int, mixed>|string
Parameters
$dbType : string = ''

Database type (MYSQL, ORACLE or MSSQL).

Return values
array<string|int, mixed>|string

getLowercasedName()

Returns "lowercased" name of the object.

public final getLowercasedName() : string

If name is not quoted then it made lowercase.

Return values
string

getModifyDdl()

Return DDL for procedure modification.

public getModifyDdl(BaseObject $target[, string $dbType = '' ]) : array<string|int, mixed>|string
Parameters
$target : BaseObject

Target object.

$dbType : string = ''

Database type (MYSQL, ORACLE or MSSQL).

Return values
array<string|int, mixed>|string

getUnquotedName()

Returns "unquoted" name of the object.

public final getUnquotedName([array<string|int, mixed>|string $name = null ]) : array<string|int, mixed>|string
Parameters
$name : array<string|int, mixed>|string = null

Name or array of names to unquote.

Return values
array<string|int, mixed>|string

        
On this page

Search results