remove codeigniter
This commit is contained in:
@@ -9,7 +9,7 @@ use Illuminate\Database\Eloquent\Relations\BelongsTo;
|
||||
class Project extends BaseModel
|
||||
{
|
||||
/**
|
||||
* Table name (your CI table is singular "project").
|
||||
* Table name (your legacy table is singular "project").
|
||||
*/
|
||||
protected $table = 'project';
|
||||
|
||||
@@ -101,7 +101,7 @@ class Project extends BaseModel
|
||||
/**
|
||||
* Calculate average project score for a student + term (+ optional class section).
|
||||
*
|
||||
* Enhancements vs CI version:
|
||||
* Enhancements vs legacy version:
|
||||
* - Uses SQL AVG for performance
|
||||
* - Ignores NULL, empty string, and non-numeric (best-effort) values
|
||||
* - Returns float|null
|
||||
@@ -133,7 +133,7 @@ class Project extends BaseModel
|
||||
}
|
||||
|
||||
/**
|
||||
* Instance method (so you can keep a similar calling style to CI).
|
||||
* Instance method (so you can keep a similar calling style to legacy).
|
||||
*/
|
||||
public function getAverageProjectScore(
|
||||
int $studentId,
|
||||
|
||||
Reference in New Issue
Block a user