degreeInfo
| Package | application |
|---|---|
| Inheritance | class degreeInfo |
| Source Code |
Helper class for major and track.
DegreeInfo is a class that represents a track, along with the corresponding major and catalog.
DegreeInfo is a class that represents a track, along with the corresponding major and catalog.
Public Methods
| Method | Description | Defined By |
|---|---|---|
| DegreeInfo() | Create a DegreeInfo object | degreeInfo |
| getGroups() | degreeInfo | |
| getMajor() | degreeInfo | |
| getTerm() | degreeInfo | |
| getTrack() | degreeInfo |
Method Details
DegreeInfo()
method
|
public void DegreeInfo(int $majorId, int $trackId, int $termId)
| ||
| $majorId | int | The id for the major in the CurrMajor model. |
| $trackId | int | The id for the track in the CurrTrack model. |
| $termId | int | The id for the catalog that has the track. |
Source Code: (show)
public function DegreeInfo($majorId, $trackId, $termId){
$this->major = CurrMajor::model()->findByPk($majorId);
$this->track = CurrTrack::model()->findByPk($trackId);
$this->trackId = $trackId;
$this->term= $termId;
}
Create a DegreeInfo object
DegreeInfo is a class that represents a track, along with the
corresponding major and catalog.
getGroups()
method
|
public void getGroups()
|
Source Code: (show)
public function getGroups(){
return CurrTrackByGroup::model()->with('group')->findAll(
'track_id=:trackId',
array('trackId'=> $this->trackId));
}
getMajor()
method
|
public void getMajor()
|
Source Code: (show)
public function getMajor() {
return $this->major;
}
getTerm()
method
|
public void getTerm()
|
Source Code: (show)
public function getTerm() {
return $this->term;
}
getTrack()
method
|
public void getTrack()
|
Source Code: (show)
public function getTrack() {
return $this->track;
}