ILIAS  trunk Revision v11.0_alpha-3011-gc6b235a2e85
ILIAS\components\Database\Integrity\Field Class Reference
+ Collaboration diagram for ILIAS\components\Database\Integrity\Field:

Public Member Functions

 __construct (private string $table_name, private string $field_name, ?string $alias=null)
 
 tableName ()
 
 fieldName ()
 
 rawFieldName ()
 
 rawTableName ()
 

Private Attributes

const _AS = 'as'
 
const COMBINE_TABLE_AND_FIELD = '.'
 
string $original_table_name
 
string $converted_table_name
 

Detailed Description

Definition at line 23 of file Field.php.

Constructor & Destructor Documentation

◆ __construct()

ILIAS\components\Database\Integrity\Field::__construct ( private string  $table_name,
private string  $field_name,
?string  $alias = null 
)

Definition at line 36 of file Field.php.

37 {
38 $this->converted_table_name = $table_name;
39 $this->original_table_name = $table_name;
40
41 if (null !== $alias) {
42 $this->converted_table_name = $table_name . ' ' . self::_AS . ' ' . $alias;
43 $this->table_name = $alias;
44 $this->original_table_name = $table_name;
45 }
46 }

Member Function Documentation

◆ fieldName()

ILIAS\components\Database\Integrity\Field::fieldName ( )

Definition at line 53 of file Field.php.

53 : string
54 {
55 return $this->table_name . self::COMBINE_TABLE_AND_FIELD . $this->field_name;
56 }

◆ rawFieldName()

ILIAS\components\Database\Integrity\Field::rawFieldName ( )

Definition at line 58 of file Field.php.

58 : string
59 {
60 return $this->field_name;
61 }

◆ rawTableName()

ILIAS\components\Database\Integrity\Field::rawTableName ( )

Definition at line 63 of file Field.php.

63 : string
64 {
66 }

References ILIAS\components\Database\Integrity\Field\$original_table_name.

◆ tableName()

ILIAS\components\Database\Integrity\Field::tableName ( )

Definition at line 48 of file Field.php.

48 : string
49 {
51 }

References ILIAS\components\Database\Integrity\Field\$converted_table_name.

Field Documentation

◆ $converted_table_name

string ILIAS\components\Database\Integrity\Field::$converted_table_name
private

Definition at line 34 of file Field.php.

Referenced by ILIAS\components\Database\Integrity\Field\tableName().

◆ $original_table_name

string ILIAS\components\Database\Integrity\Field::$original_table_name
private

Definition at line 33 of file Field.php.

Referenced by ILIAS\components\Database\Integrity\Field\rawTableName().

◆ _AS

const ILIAS\components\Database\Integrity\Field::_AS = 'as'
private

Definition at line 28 of file Field.php.

◆ COMBINE_TABLE_AND_FIELD

const ILIAS\components\Database\Integrity\Field::COMBINE_TABLE_AND_FIELD = '.'
private

Definition at line 32 of file Field.php.


The documentation for this class was generated from the following file: