-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathexperiment.php
More file actions
73 lines (56 loc) · 1.08 KB
/
experiment.php
File metadata and controls
73 lines (56 loc) · 1.08 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
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
<?php
// find the file its included from
class Experiment
{
public static $current_file;
public static $part_name;
// ==============================
/*
####
to be called from the file where the experiment code snippets
####
$current_file = absolute pathe to the filename
$part_name =
if there are many places in the same file,
multiple code snippets on the same file that needs
to be changed, this name is used to uniquely identify that part
*/
public static function testCode(
$current_file,
$part_name
)
{
self::$current_file = $current_file;
self::$part_name = $part_name;
}
// ==============================
public function createTest(
$experiment_name,
$file_being_changed,
$percentage,
$date_start,
$code_snippet
)
{
}
// ==============================
public function startTest(
$experiment_name
)
{
}
// ==============================
public function stopTest(
$experiment_name
)
{
}
public static function processDashboard()
{
if( $_SERVER['REQUEST_METHOD'] != 'POST')
{
return;
}
}
}
?>