HCE Project DC service web UI
0.2
Hierarchical Cluster Engine DC service web UI
Main Page
Related Pages
Namespaces
Classes
Files
Examples
File List
File Members
HCE Project DC service web UI
Bootstrap Colorpicker 2.0
Overview
CKEditor 4 Changelog
Software License Agreement
ChangeLog
Installing instructions
widgets
yii2-debug
Todo List
Deprecated List
Namespaces
Classes
Files
File List
app
protected
commands
components
config
controllers
extensions
helpers
models
modules
account
job
commands
components
controllers
models
vendors
crontab
AbstractField.php
CronExpression.php
DayOfMonthField.php
DayOfWeekField.php
FieldFactory.php
FieldInterface.php
HoursField.php
MinutesField.php
MonthField.php
YearField.php
views
JobModule.php
rights
user
runtime
tests
vendor
views
yiic.php
themes
index.php
File Members
Examples
•
All
Classes
Namespaces
Files
Functions
Variables
Pages
FieldFactory.php
Go to the documentation of this file.
1
<?php
2
10
class
FieldFactory
11
{
15
private
$fields
= array();
16
26
public
function
getField
($position)
27
{
28
if
(!isset($this->fields[$position])) {
29
switch
($position) {
30
case
0:
31
$this->fields[$position] =
new
MinutesField
();
32
break
;
33
case
1:
34
$this->fields[$position] =
new
HoursField
();
35
break
;
36
case
2:
37
$this->fields[$position] =
new
DayOfMonthField
();
38
break
;
39
case
3:
40
$this->fields[$position] =
new
MonthField
();
41
break
;
42
case
4:
43
$this->fields[$position] =
new
DayOfWeekField
();
44
break
;
45
case
5:
46
$this->fields[$position] =
new
YearField
();
47
break
;
48
default
:
49
throw
new
InvalidArgumentException(
50
$position.
' is not a valid position'
51
);
52
}
53
}
54
55
return
$this->fields[$position];
56
}
57
}
app
protected
modules
job
vendors
crontab
FieldFactory.php
Generated on Tue Jun 30 2015 20:12:35 for HCE Project DC service web UI by
1.8.1.2