This repository was archived by the owner on Aug 30, 2018. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 6
Expand file tree
/
Copy pathCase.php
More file actions
45 lines (38 loc) · 1.34 KB
/
Case.php
File metadata and controls
45 lines (38 loc) · 1.34 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
<?php
/********************************************
*
* Case.php
helper function (class?) for displaying a case
@param $isE 1 if this is an expungement, 0 otherwise
@param $isR 1 if this is an redaction, 0 otherwise
@param $isSE 1 if this is a summary expungement, 0 otherwise
@return a string stating the stype of expungement.
note that an expungement will have a 1 for both expungement and redaction fields
becuase an expungement is a special type of redaction where all charges are redacted
*
* Copyright 2011-2015 Community Legal Services
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*
****************************************/
function getRedactionType($isE, $isR, $isSE)
{
if ($isSE)
return "Summary Expungement";
elseif ($isE)
return "Expungement";
elseif ($isR)
return "Redaction";
else
return "No Expungement Possible";
}
?>