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
AccountSite
behaviors
ContactForm.php
LoginForm.php
ResourceDownload.php
SiteCleanup.php
SiteDelete.php
SiteNew.php
SiteRecrawl.php
Sites.php
SitesView.php
SiteUpdate.php
UrlCleanup.php
UrlDelete.php
UrlRecrawl.php
UrlReprocess.php
UrlsView.php
UrlUpdate.php
modules
runtime
tests
vendor
views
yiic.php
themes
index.php
File Members
Examples
•
All
Classes
Namespaces
Files
Functions
Variables
Pages
Sites.php
Go to the documentation of this file.
1
<?php
2
12
class
Sites
extends
CActiveRecord
13
{
20
public
static
function
model
($className = __CLASS__)
21
{
22
return
parent::model
($className);
23
}
24
28
public
function
tableName
()
29
{
30
return
'sites'
;
31
}
32
36
public
function
rules
()
37
{
38
// NOTE: you should only define rules for those attributes that
39
// will receive user inputs.
40
return
array(
41
array(
'id, di, ii, did'
,
'required'
),
42
array(
'id, di, ii, did'
,
'numerical'
,
'integerOnly'
=>
true
),
43
// The following rule is used by search().
44
// @todo Please remove those attributes that should not be searched.
45
array(
'id, di, ii, did'
,
'safe'
,
'on'
=>
'search'
),
46
);
47
}
48
52
public
function
relations
()
53
{
54
// NOTE: you may need to adjust the relation name and the related
55
// class name for the relations automatically generated below.
56
return
array();
57
}
58
62
public
function
attributeLabels
()
63
{
64
return
array(
65
'id'
=>
'ID'
,
66
'di'
=>
'Di'
,
67
'ii'
=>
'Ii'
,
68
'did'
=>
'Did'
,
69
);
70
}
71
84
public
function
search
()
85
{
86
// @todo Please modify the following code to remove attributes that should not be searched.
87
88
$criteria =
new
CDbCriteria;
89
90
$criteria->compare(
'id'
, $this->
id
);
91
$criteria->compare(
'di'
, $this->di);
92
$criteria->compare(
'ii'
, $this->ii);
93
$criteria->compare(
'did'
, $this->did);
94
95
return
new
CActiveDataProvider($this, array(
96
'criteria'
=> $criteria,
97
));
98
}
99
}
app
protected
models
Sites.php
Generated on Tue Jun 30 2015 20:12:35 for HCE Project DC service web UI by
1.8.1.2