@@ 2565-2572 (lines=8) @@ | ||
2562 | * @param array $record Record information, as it returned by {@link record_find}. |
|
2563 | * @return bool TRUE if record's age is already critical, FALSE otherwise. |
|
2564 | */ |
|
2565 | function is_record_critical ($record) |
|
2566 | { |
|
2567 | debug_write_log(DEBUG_TRACE, '[is_recorde_critical]'); |
|
2568 | ||
2569 | return (is_null($record['closure_time']) && |
|
2570 | !is_null($record['critical_age']) && |
|
2571 | $record['creation_time'] + $record['critical_age'] * SECS_IN_DAY < time()); |
|
2572 | } |
|
2573 | ||
2574 | /** |
|
2575 | * Checks whether a specified record is frozen. |
|
@@ 2580-2587 (lines=8) @@ | ||
2577 | * @param array $record Record information, as it returned by {@link record_find}. |
|
2578 | * @return bool TRUE if record is already frozen, FALSE otherwise. |
|
2579 | */ |
|
2580 | function is_record_frozen ($record) |
|
2581 | { |
|
2582 | debug_write_log(DEBUG_TRACE, '[is_record_frozen]'); |
|
2583 | ||
2584 | return (!is_null($record['closure_time']) && |
|
2585 | !is_null($record['frozen_time']) && |
|
2586 | $record['closure_time'] + $record['frozen_time'] * SECS_IN_DAY < time()); |
|
2587 | } |
|
2588 | ||
2589 | /** |
|
2590 | * Checks whether a specified record is postponed. |