mirror of
https://github.com/Combodo/iTop.git
synced 2026-02-13 15:34:12 +01:00
24 lines
593 B
PHP
24 lines
593 B
PHP
<?php
|
|
|
|
/**
|
|
* Base class for all kind of DB attributes, with the exception of external keys
|
|
*
|
|
* @package iTopORM
|
|
*/
|
|
class AttributeDBField extends AttributeDBFieldVoid
|
|
{
|
|
public static function ListExpectedParams()
|
|
{
|
|
return array_merge(parent::ListExpectedParams(), array("default_value", "is_null_allowed"));
|
|
}
|
|
|
|
public function GetDefaultValue(DBObject $oHostObject = null)
|
|
{
|
|
return $this->MakeRealValue($this->Get("default_value"), $oHostObject);
|
|
}
|
|
|
|
public function IsNullAllowed()
|
|
{
|
|
return $this->Get("is_null_allowed");
|
|
}
|
|
} |