Nextcloud PHP API (master)

ColumnType : string
in package

Database column types supported by Nextcloud's DBs.

Tags
since
35.0.0

Table of Contents

Cases

Bigint  = 'bigint'
Binary  = 'binary'
Blob  = 'blob'
Boolean  = 'boolean'
Date  = 'date'
A datetime instance with only the date set.
DateImmutable  = 'date_immutable'
An immutable datetime instance with only the date set.
Datetime  = 'datetime'
A datetime instance with date and time support.
DatetimeImmutable  = 'datetime_immutable'
An immutable datetime instance with date and time set.
DatetimeTz  = 'datetimetz'
A datetime instance with timezone support This will be (de)serialized into a \DateTime instance, it is recommended to instead use the `DatetimeTzImmutable` instead.
DatetimeTzImmutable  = 'datetimetz_immutable'
An immutable timezone aware datetime instance with date and time set.
Decimal  = 'decimal'
Float  = 'float'
Integer  = 'integer'
Json  = 'json'
JSON fields can not properly be used in WHERE statements of Oracle and MySQL.
Smallint  = 'smallint'
String  = 'string'
Text  = 'text'
Time  = 'time'
A datetime instance with only the time set.
TimeImmutable  = 'time_immutable'
A datetime instance with only the time set.

Methods

getName()  : string

Cases

Date

A datetime instance with only the date set.

This will be (de)serialized into a \DateTime instance, it is recommended to instead use the DateImmutable instead.

Warning: When deserialized the timezone will be set to UTC.

Tags
since
35.0.0

DateImmutable

An immutable datetime instance with only the date set.

This will be (de)serialized into a \DateTimeImmutable instance, It is recommended to use this over the Date case because out Entity class works detecting changes through the setter, changes on mutable objects can not be detected.

Warning: When deserialized the timezone will be set to UTC.

Tags
since
35.0.0

Datetime

A datetime instance with date and time support.

This will be (de)serialized into a \DateTime instance, it is recommended to instead use the DatetimeImmutable instead.

Warning: When deserialized the timezone will be set to UTC.

Tags
since
35.0.0

DatetimeImmutable

An immutable datetime instance with date and time set.

This will be (de)serialized into a \DateTimeImmutable instance, It is recommended to use this over the Datetime case because out Entity class works detecting changes through the setter, changes on mutable objects can not be detected.

Warning: When deserialized the timezone will be set to UTC.

Tags
since
35.0.0

DatetimeTz

A datetime instance with timezone support This will be (de)serialized into a \DateTime instance, it is recommended to instead use the `DatetimeTzImmutable` instead.

Tags
since
35.0.0

DatetimeTzImmutable

An immutable timezone aware datetime instance with date and time set.

This will be (de)serialized into a \DateTimeImmutable instance, It is recommended to use this over the DatetimeTz case because out Entity class works detecting changes through the setter, changes on mutable objects can not be detected.

Tags
since
35.0.0

Time

A datetime instance with only the time set.

This will be (de)serialized into a \DateTime instance, it is recommended to instead use the TimeImmutable instead.

Warning: When deserialized the timezone will be set to UTC.

Tags
since
35.0.0

TimeImmutable

A datetime instance with only the time set.

This will be (de)serialized into a \DateTime instance.

It is recommended to use this over the DatetimeTz case because out Entity class works detecting changes through the setter, changes on mutable objects can not be detected.

Tags
since
35.0.0

Json

JSON fields can not properly be used in WHERE statements of Oracle and MySQL.

It is recommended to use a simple self::String field and handle JSON within PHP.

Tags
since
35.0.0

Methods

getName()

public getName() : string
Tags
since
35.0.0
Return values
string
On this page

Search results