Skip to content

classes_essentials_model_columnschema.class

Daniel Spors edited this page Dec 19, 2023 · 2 revisions

Classes in file essentials/model/columnschema.class.php

class ColumnSchema

Schema of a database column Will be created from the DB and used to automatically detect columns and their types.

HasDefault

Checks if this column has a default value.

Definition: public function HasDefault()

Returns: bool

IsNullAllowed

Checks if NULL is allowed for this column.

Definition: public function IsNullAllowed()

Returns: bool

IsPrimary

Checks if this column belongs to the primary key In fact just return $this->Key == "PRIMARY";

Definition: public function IsPrimary()

Returns: bool true or false

Clone this wiki locally