Field::setEmpty()

Version 3.8

Clear value in field

Clear the value in field. Return TRUE if value was changed.

Return value

Bool

Full documentation

Clear start time.

$Workhour->start_time->setEmpty();

Show text if start time is cleared (ie. it had a valid value)

if ( $Order->start_time->setEmpty() ){
    // Start time has been cleared.
}