FazBrowse GitHub Viewer
|
Trending
|
URL:
|
Home
Tools:
[Download Repo ZIP]
[View Raw Code]
[Original HTTPS Page]
Module-Note/models/Course.php at master · BHafsa/Module-Note · GitHub
BHafsa
/
Module-Note
Public
Notifications
You must be signed in to change notification settings
Fork
1
Star
1
Code
Issues
0
Pull requests
0
Actions
Projects
Security and quality
0
Insights
Additional navigation options
Code
Issues
Pull requests
Actions
Projects
Security and quality
Insights
Expand file tree
Breadcrumbs
Module-Note
/
models
/
Course.php
Copy path
More file actions
More file actions
Latest commit
History
History
History
60 lines (55 loc) · 1.31 KB
Breadcrumbs
Module-Note
/
models
/
Course.php
Copy path
File metadata and controls
60 lines (55 loc) · 1.31 KB
Raw
Copy raw file
Download raw file
Open symbols panel
Edit and raw actions
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
<?php
namespace
humhub
\
modules
\
note
\
models
;
use
Yii
;
/**
* This is the model class for table "course".
*
* @property integer $course_id
* @property string $designation
* @property integer $coefficient
* @property integer $credit
* @property integer $bonus
* @property integer $educational_unit_id
*/
class
Course
extends
\
yii
\
db
\ActiveRecord
{
/**
* @inheritdoc
*/
public
static
function
tableName
()
{
return
'
course
'
;
}
/**
* @inheritdoc
*/
public
function
rules
()
{
return
[
[[
'
coefficient
'
],
'
required
'
],
[[
'
coefficient
'
,
'
credit
'
,
'
bonus
'
,
'
educational_unit_id
'
],
'
integer
'
],
[[
'
designation
'
],
'
string
'
,
'
max
'
=>
30
],
];
}
/**
* @inheritdoc
*/
public
function
attributeLabels
()
{
return
[
'
course_id
'
=>
'
Course ID
'
,
'
designation
'
=>
'
Designation
'
,
'
coefficient
'
=>
'
Coefficient
'
,
'
credit
'
=>
'
Credit
'
,
'
bonus
'
=>
'
Bonus
'
,
'
educational_unit_id
'
=>
'
Educational Unit ID
'
,
];
}
/**
* @return \yii\db\ActiveQuery
*/
public
function
getEducationalUnit
()
{
return
$
this
->
hasOne
(EducationalUnit::
className
(), [
'
educational_unit_id
'
=>
'
educational_unit_id
'
]);
}
}
Back
|
FazBrowse Home
|
New Git URL