@@ 998-1004 (lines=7) @@ | ||
995 | * @param int $id ID of project which records should be counted. |
|
996 | * @return CRecordset Recordset with list of counts. |
|
997 | */ |
|
998 | function record_opened ($id) |
|
999 | { |
|
1000 | debug_write_log(DEBUG_TRACE, '[record_opened]'); |
|
1001 | debug_write_log(DEBUG_DUMP, '[record_opened] $id = ' . $id); |
|
1002 | ||
1003 | return dal_query('records/opened.sql', $id, date('Z'), (DATABASE_DRIVER == DRIVER_ORACLE9 ? 'ceil' : 'ceiling')); |
|
1004 | } |
|
1005 | ||
1006 | /** |
|
1007 | * Returns {@link CRecordset DAL recordset} which contains number of closed records per week for specified project. |
|
@@ 1017-1023 (lines=7) @@ | ||
1014 | * @param int $id ID of project which records should be counted. |
|
1015 | * @return CRecordset Recordset with list of counts. |
|
1016 | */ |
|
1017 | function record_closed ($id) |
|
1018 | { |
|
1019 | debug_write_log(DEBUG_TRACE, '[record_closed]'); |
|
1020 | debug_write_log(DEBUG_DUMP, '[record_closed] $id = ' . $id); |
|
1021 | ||
1022 | return dal_query('records/closed.sql', $id, date('Z'), (DATABASE_DRIVER == DRIVER_ORACLE9 ? 'ceil' : 'ceiling')); |
|
1023 | } |
|
1024 | ||
1025 | /** |
|
1026 | * Validates record information (including all custom fields) before creation, modification, or changing state. |