ILIAS  trunk Revision v13.0_alpha-62-g3b72d83f2e5
ILIAS\Questions\Persistence\Factory Class Reference
+ Collaboration diagram for ILIAS\Questions\Persistence\Factory:

Public Member Functions

 insert (array $columns, array $values)
 
 replace (array $columns, array $values)
 
 update (array $columns, array $values, array $where)
 
 delete (array $where)
 
 table (TableNameBuilder $table_names_builder, TableTypes $table, string $sub_table_identifier='')
 
 column (Table $table, string $identifier)
 
 select (array $columns)
 
 join (Column $left, Column $right, JoinType $type=JoinType::Inner)
 
 where (Column $left, Value $right, Operator $comparison=Operator::Equal, Junctor $junctor=Junctor::Conjunction, bool $negate=false)
 
 order (Column $column, OrderDirection $direction=OrderDirection::Asc)
 
 value (string $type, null|string|int|float|array $value)
 

Detailed Description

Definition at line 23 of file Factory.php.

Member Function Documentation

◆ column()

ILIAS\Questions\Persistence\Factory::column ( Table  $table,
string  $identifier 
)

Definition at line 77 of file Factory.php.

80 : Column {
81 return new Column($table, $identifier);
82 }

◆ delete()

ILIAS\Questions\Persistence\Factory::delete ( array  $where)
Parameters
array<

ILIAS\Questions\Persistence\Where> $where

Definition at line 63 of file Factory.php.

65 : Delete {
66 return new Delete($where);
67 }

References ILIAS\Questions\Persistence\Delete.

◆ insert()

ILIAS\Questions\Persistence\Factory::insert ( array  $columns,
array  $values 
)
Parameters
array<

ILIAS\Questions\Persistence\Column> $columns

Parameters
array<

ILIAS\Questions\Persistence\Value> $values

Definition at line 29 of file Factory.php.

32 : Insert {
33 return new Insert($columns, $values);
34 }

◆ join()

ILIAS\Questions\Persistence\Factory::join ( Column  $left,
Column  $right,
JoinType  $type = JoinType::Inner 
)

Definition at line 93 of file Factory.php.

97 : Join {
98 return new Join($left, $right, $type);
99 }

◆ order()

ILIAS\Questions\Persistence\Factory::order ( Column  $column,
OrderDirection  $direction = OrderDirection::Asc 
)

Definition at line 111 of file Factory.php.

114 : Order {
115 return new Order($column, $direction);
116 }

◆ replace()

ILIAS\Questions\Persistence\Factory::replace ( array  $columns,
array  $values 
)
Parameters
array<

ILIAS\Questions\Persistence\Column> $columns

Parameters
array<

ILIAS\Questions\Persistence\Value> $values

Definition at line 40 of file Factory.php.

43 : Replace {
44 return new Replace($columns, $values);
45 }

◆ select()

ILIAS\Questions\Persistence\Factory::select ( array  $columns)
Parameters
array<

ILIAS\Questions\Persistence\Column> $columns

Definition at line 87 of file Factory.php.

89 : Select {
90 return new Select($columns);
91 }

◆ table()

ILIAS\Questions\Persistence\Factory::table ( TableNameBuilder  $table_names_builder,
TableTypes  $table,
string  $sub_table_identifier = '' 
)

Definition at line 69 of file Factory.php.

73 : Table {
74 return new Table($table_names_builder, $table, $sub_table_identifier);
75 }

◆ update()

ILIAS\Questions\Persistence\Factory::update ( array  $columns,
array  $values,
array  $where 
)
Parameters
array<

ILIAS\Questions\Persistence\Column> $columns

Parameters
array<

ILIAS\Questions\Persistence\Value> $values

Parameters
array<

ILIAS\Questions\Persistence\Where> $where

Definition at line 52 of file Factory.php.

56 : Update {
57 return new Update($columns, $values, $where);
58 }

◆ value()

ILIAS\Questions\Persistence\Factory::value ( string  $type,
null|string|int|float|array  $value 
)

Definition at line 118 of file Factory.php.

121 : Value {
122 return new Value($type, $value);
123 }

◆ where()

ILIAS\Questions\Persistence\Factory::where ( Column  $left,
Value  $right,
Operator  $comparison = Operator::Equal,
Junctor  $junctor = Junctor::Conjunction,
bool  $negate = false 
)

Definition at line 101 of file Factory.php.

107 : Where {
108 return new Where($left, $right, $comparison, $junctor, $negate);
109 }

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