HCE Project DC service web UI  0.2
Hierarchical Cluster Engine DC service web UI
 All Classes Namespaces Files Functions Variables Pages
JobsLogs.php
Go to the documentation of this file.
1 <?php
2 
13 class JobsLogs extends CActiveRecord
14 {
18  public function tableName()
19  {
20  return 'job_log';
21  }
22 
26  public function rules()
27  {
28  // NOTE: you should only define rules for those attributes that
29  // will receive user inputs.
30  return array(
31  array('job_id', 'numerical', 'integerOnly' => true),
32  array('finish_message, create_time', 'safe'),
33  // The following rule is used by search().
34  // @todo Please remove those attributes that should not be searched.
35  array('id, finish_message, create_time, job_id', 'safe', 'on' => 'search'),
36  );
37  }
38 
42  public function relations()
43  {
44  // NOTE: you may need to adjust the relation name and the related
45  // class name for the relations automatically generated below.
46  return array(
47  );
48  }
49 
53  public function attributeLabels()
54  {
55  return array(
56  'id' => 'ID',
57  'finish_message' => 'Finish Message',
58  'create_time' => 'Create Time',
59  'job_id' => 'Job',
60  );
61  }
62 
75  public function search()
76  {
77  // @todo Please modify the following code to remove attributes that should not be searched.
78 
79  $criteria = new CDbCriteria();
80 
81  $criteria->compare('id', $this->id, true);
82  $criteria->compare('finish_message', $this->finish_message, true);
83  $criteria->compare('create_time', $this->create_time, true);
84  $criteria->compare('job_id', $this->job_id);
85 
86  return new CActiveDataProvider($this, array(
87  'criteria' => $criteria,
88  ));
89  }
90 
99  public static function model($className = __CLASS__)
100  {
101  return parent::model($className);
102  }
103 }