ILIAS  Release_5_0_x_branch Revision 61816
 All Data Structures Namespaces Files Functions Variables Groups Pages
ilADTBoolean Class Reference
+ Inheritance diagram for ilADTBoolean:
+ Collaboration diagram for ilADTBoolean:

Public Member Functions

 reset ()
 Init property defaults.
 setStatus ($a_value=null)
 getStatus ()
 equals (ilADT $a_adt)
 Check if given ADT equals self.
 isLarger (ilADT $a_adt)
 Check if given ADT is larger than self.
 isSmaller (ilADT $a_adt)
 Check if given ADT is smaller than self.
 isNull ()
 Is currently null.
 isValid ()
 Is currently valid.
 getCheckSum ()
 Get unique checksum.
- Public Member Functions inherited from ilADT
 __construct (ilADTDefinition $a_def)
 Constructor.
 getType ()
 Get type (from class/instance)
 getCopyOfDefinition ()
 Get copy of definition.
 isLargerOrEqual (ilADT $a_adt)
 Check if given ADT is larger or equal than self.
 isSmallerOrEqual (ilADT $a_adt)
 Check if given ADT is smaller or equal than self.
 isInbetween (ilADT $a_adt_from, ilADT $a_adt_to)
 Check if self is inbetween given ADTs (exclusive)
 isInbetweenOrEqual (ilADT $a_adt_from, ilADT $a_adt_to)
 Check if self is inbetween given ADTs (inclusive)
 getValidationErrors ()
 Get all validation error codes.
 translateErrorCode ($a_code)
 Translate error-code to human-readable message.

Protected Member Functions

 isValidDefinition (ilADTDefinition $a_def)
 Check if definition is valid for ADT.
- Protected Member Functions inherited from ilADT
 setDefinition (ilADTDefinition $a_def)
 Set definition.
 getDefinition ()
 Get definition.
 addValidationError ($a_error_code)
 Add validation error code.

Protected Attributes

 $value
- Protected Attributes inherited from ilADT
 $definition
 $validation_errors

Additional Inherited Members

- Data Fields inherited from ilADT
const ADT_VALIDATION_ERROR_NULL_NOT_ALLOWED = "adt1"
const ADT_VALIDATION_ERROR_MAX_LENGTH = "adt2"
const ADT_VALIDATION_ERROR_MAX_SIZE = "adt3"
const ADT_VALIDATION_ERROR_MIN = "adt4"
const ADT_VALIDATION_ERROR_MAX = "adt5"
const ADT_VALIDATION_DATE = "adt6"

Detailed Description

Definition at line 3 of file class.ilADTBoolean.php.

Member Function Documentation

ilADTBoolean::equals ( ilADT  $a_adt)

Check if given ADT equals self.

Parameters
ilADT$a_adt
Returns
bool

Reimplemented from ilADT.

Definition at line 42 of file class.ilADTBoolean.php.

References getStatus().

{
if($this->isComparableTo($a_adt))
{
return ($this->getStatus() === $a_adt->getStatus());
}
}

+ Here is the call graph for this function:

ilADTBoolean::getCheckSum ( )

Get unique checksum.

Returns
string

Reimplemented from ilADT.

Definition at line 79 of file class.ilADTBoolean.php.

References getStatus(), and isNull().

{
if(!$this->isNull())
{
return (string)$this->getStatus();
}
}

+ Here is the call graph for this function:

ilADTBoolean::getStatus ( )

Definition at line 34 of file class.ilADTBoolean.php.

References $value.

Referenced by equals(), getCheckSum(), and isNull().

{
return $this->value;
}

+ Here is the caller graph for this function:

ilADTBoolean::isLarger ( ilADT  $a_adt)

Check if given ADT is larger than self.

Parameters
ilADT$a_adt
Returns
bool

Reimplemented from ilADT.

Definition at line 50 of file class.ilADTBoolean.php.

{
// return null?
}
ilADTBoolean::isNull ( )

Is currently null.

Returns
bool

Reimplemented from ilADT.

Definition at line 63 of file class.ilADTBoolean.php.

References getStatus().

Referenced by getCheckSum().

{
return ($this->getStatus() === null);
}

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

ilADTBoolean::isSmaller ( ilADT  $a_adt)

Check if given ADT is smaller than self.

Parameters
ilADT$a_adt
Returns
bool

Reimplemented from ilADT.

Definition at line 55 of file class.ilADTBoolean.php.

{
// return null?
}
ilADTBoolean::isValid ( )

Is currently valid.

Returns
boolean

Reimplemented from ilADT.

Definition at line 71 of file class.ilADTBoolean.php.

{
return true;
}
ilADTBoolean::isValidDefinition ( ilADTDefinition  $a_def)
protected

Check if definition is valid for ADT.

Returns
bool;

Reimplemented from ilADT.

Definition at line 10 of file class.ilADTBoolean.php.

{
return ($a_def instanceof ilADTBooleanDefinition);
}
ilADTBoolean::reset ( )

Init property defaults.

Reimplemented from ilADT.

Definition at line 15 of file class.ilADTBoolean.php.

{
$this->value = null;
}
ilADTBoolean::setStatus (   $a_value = null)

Definition at line 25 of file class.ilADTBoolean.php.

{
if($a_value !== null)
{
$a_value = (bool)$a_value;
}
$this->value = $a_value;
}

Field Documentation

ilADTBoolean::$value
protected

Definition at line 5 of file class.ilADTBoolean.php.

Referenced by getStatus().


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