You are here

public function BirthdaysBirthday::isEmpty in Birthdays 7

Whether the value is empty or not.

Return value

TRUE if the value is empty.

2 calls to BirthdaysBirthday::isEmpty()
BirthdaysBirthday::toString in ./birthdays_birthday.inc
Converts the value to a string.
BirthdaysBirthday::toUnixtime in ./birthdays_birthday.inc
Coverts the value to a unix timestamp, 0:00:00 at the given date. Note that this depends on the timezone.

File

./birthdays_birthday.inc, line 224
The BirthdaysBirthday class.

Class

BirthdaysBirthday
Converts between different data representations and do calculations on a birthday.

Code

public function isEmpty() {
  return !$this->value['year'] && !$this->value['month'] && !$this->value['day'];
}