Menu

## StandardLink extends Model
in package
uses HasFactory, SoftDeletes

StandardLink.php : 45

Class StandardLink

Model for managing class/standard-section links for an academic year. Links a standard (grade) with a section for a specific academic year and school.

##### Tags

mixin

### Table of Contents

#### Properties

$academic_year_id : int
$academicYear : AcademicYear
$assignment : Collection|array<string|int, Assignment>
$attendance : Collection|array<string|int, Attendance>
$class_teacher_id : int
$created_at : DateTime
$deleted_at : DateTime
$events : Collection|array<string|int, Events>
$exam : Collection|array<string|int, Exam>
$homework : Collection|array<string|int, Homework>
$id : int
$mark : Collection|array<string|int, Mark>
$no_of_students : int
$school : School
$school_id : int
$section : Section
$section_id : int
$standard : Standard
$standard_id : int
$status : int
$stream : string|null
$studentAcademic : Collection|array<string|int, StudentAcademic>
$teacher : User
$teacherlink : Collection|array<string|int, Teacherlink>
$updated_at : DateTime
$fillable : array<string|int, mixed>
  The attributes that are mass assignable.
$table : string
  The table associated with the model.
$with : mixed

#### Methods

academicYear() : BelongsTo
  Get the academic year for this standard link.
assignment() : HasMany
  Get assignments for this standard-section.
attendance() : HasMany
  Get attendance records for this standard-section.
events() : HasMany
  Get events for this standard.
exam() : HasMany
  Get exams for this standard.
fee() : HasMany
  Get fees for this standard-section.
getAll() : Collection
  Get all timetable entries for this standard-section.
getGroupSubjectAttribute() : Collection
  Get the group dedicated subject assignments for this standard-section.
getLanguage_SubjectAttribute() : Collection
  Get language subject assignments for this standard-section.
getLanguageAttribute() : Collection
  Get the language subject assignments for this standard-section.
getParingSubjectAttribute() : array<string|int, mixed>
  Get the pairing of subject assignments for this standard-section.
getStandardNameAttribute() : string
  Get the standard name formatted as Roman numerals or standard name.
getStandardSectionAttribute() : string
  Get the standard and section name as a formatted string.
getTeacherLinkDetails() : array<string|int, mixed>
  Get the teacher link details for this standard-section.
getTimeTableCountAttribute() : int
  Get total count of timetable entries for this standard-section.
homework() : HasMany
  Get homework for this standard-section.
mark() : HasMany
  Get marks for this standard.
school() : mixed
section() : BelongsTo
  Get the section for this link.
standard() : BelongsTo
  Get the standard/grade for this link.
studentAcademic() : mixed
teacher() : BelongsTo
  Get the class teacher for this standard-section.
teacherlink() : mixed
temp_timetable() : HasMany
  Get the timetable entries for this standard-section.
timetable() : HasMany
  Get timetable for this standard-section.

### Properties

#### $academic_year_id

StandardLink.php : 0
`public int $academic_year_id`

#### $academicYear read-only

StandardLink.php : 0
`public AcademicYear $academicYear`

#### $assignment read-only

StandardLink.php : 0
`public Collection|array<string|int, Assignment> $assignment`

#### $attendance read-only

StandardLink.php : 0
`public Collection|array<string|int, Attendance> $attendance`

#### $class_teacher_id

StandardLink.php : 0
`public int $class_teacher_id`

#### $created_at

StandardLink.php : 0
`public DateTime $created_at`

#### $deleted_at

StandardLink.php : 0
`public DateTime $deleted_at`

#### $events read-only

StandardLink.php : 0
`public Collection|array<string|int, Events> $events`

#### $exam read-only

StandardLink.php : 0
`public Collection|array<string|int, Exam> $exam`

#### $homework read-only

StandardLink.php : 0
`public Collection|array<string|int, Homework> $homework`

#### $id

StandardLink.php : 0
`public int $id`

#### $mark read-only

StandardLink.php : 0
`public Collection|array<string|int, Mark> $mark`

#### $no_of_students

StandardLink.php : 0
`public int $no_of_students`

#### $school read-only

StandardLink.php : 0
`public School $school`

#### $school_id

StandardLink.php : 0
`public int $school_id`

#### $section read-only

StandardLink.php : 0
`public Section $section`

#### $section_id

StandardLink.php : 0
`public int $section_id`

#### $standard read-only

StandardLink.php : 0
`public Standard $standard`

#### $standard_id

StandardLink.php : 0
`public int $standard_id`

#### $status

StandardLink.php : 0
`public int $status`

#### $stream

StandardLink.php : 0
`public string|null $stream`

#### $studentAcademic read-only

StandardLink.php : 0
`public Collection|array<string|int, StudentAcademic> $studentAcademic`

#### $teacher read-only

StandardLink.php : 0
`public User $teacher`

#### $teacherlink read-only

StandardLink.php : 0
`public Collection|array<string|int, Teacherlink> $teacherlink`

#### $updated_at

StandardLink.php : 0
`public DateTime $updated_at`

#### $fillable

StandardLink.php : 63

The attributes that are mass assignable.

`protected array<string|int, mixed> $fillable = ['school_id', 'academic_year_id', 'class_teacher_id', 'standard_id', 'section_id', 'no_of_students', 'stream', 'status']`

#### $table

StandardLink.php : 56

The table associated with the model.

`protected string $table = 'standards_link'`

#### $with

StandardLink.php : 67
`protected mixed $with = ['standard', 'section']`

### Methods

#### academicYear()

StandardLink.php : 79

Get the academic year for this standard link.

`public academicYear() : BelongsTo`

##### Return values

BelongsTo

#### assignment()

StandardLink.php : 246

Get assignments for this standard-section.

`public assignment() : HasMany`

##### Return values

HasMany

#### attendance()

StandardLink.php : 226

Get attendance records for this standard-section.

`public attendance() : HasMany`

##### Return values

HasMany

#### events()

StandardLink.php : 186

Get events for this standard.

`public events() : HasMany`

##### Return values

HasMany

#### exam()

StandardLink.php : 196

Get exams for this standard.

`public exam() : HasMany`

##### Return values

HasMany

#### fee()

StandardLink.php : 256

Get fees for this standard-section.

`public fee() : HasMany`

##### Return values

HasMany

#### getAll()

StandardLink.php : 425

Get all timetable entries for this standard-section.

`public getAll() : Collection`

##### Return values

Collection

#### getGroupSubjectAttribute()

StandardLink.php : 364

Get the group dedicated subject assignments for this standard-section.

`public getGroupSubjectAttribute() : Collection`

##### Return values

Collection

#### getLanguage_SubjectAttribute()

StandardLink.php : 134

Get language subject assignments for this standard-section.

`public getLanguage_SubjectAttribute() : Collection`

##### Return values

Collection

#### getLanguageAttribute()

StandardLink.php : 348

Get the language subject assignments for this standard-section.

`public getLanguageAttribute() : Collection`

##### Return values

Collection

#### getParingSubjectAttribute()

StandardLink.php : 379

Get the pairing of subject assignments for this standard-section.

`public getParingSubjectAttribute() : array<string|int, mixed>`

##### Return values

array<string|int, mixed>

#### getStandardNameAttribute()

StandardLink.php : 318

Get the standard name formatted as Roman numerals or standard name.

`public getStandardNameAttribute() : string`

##### Return values

string

#### getStandardSectionAttribute()

StandardLink.php : 289

Get the standard and section name as a formatted string.

`public getStandardSectionAttribute() : string`

##### Return values

string

#### getTeacherLinkDetails()

StandardLink.php : 266

Get the teacher link details for this standard-section.

`public getTeacherLinkDetails() : array<string|int, mixed>`

##### Return values

array<string|int, mixed>

#### getTimeTableCountAttribute()

StandardLink.php : 144

Get total count of timetable entries for this standard-section.

`public getTimeTableCountAttribute() : int`

##### Return values

int

#### homework()

StandardLink.php : 216

Get homework for this standard-section.

`public homework() : HasMany`

##### Return values

HasMany

#### mark()

StandardLink.php : 206

Get marks for this standard.

`public mark() : HasMany`

##### Return values

HasMany

#### school()

StandardLink.php : 69
`public school() : mixed`

#### section()

StandardLink.php : 109

Get the section for this link.

`public section() : BelongsTo`

##### Return values

BelongsTo

#### standard()

StandardLink.php : 99

Get the standard/grade for this link.

`public standard() : BelongsTo`

##### Return values

BelongsTo

#### studentAcademic()

StandardLink.php : 114
`public studentAcademic() : mixed`

#### teacher()

StandardLink.php : 89

Get the class teacher for this standard-section.

`public teacher() : BelongsTo`

##### Return values

BelongsTo

#### teacherlink()

StandardLink.php : 176
`public teacherlink() : mixed`

#### temp_timetable()

StandardLink.php : 124

Get the timetable entries for this standard-section.

`public temp_timetable() : HasMany`

##### Return values

HasMany

#### timetable()

StandardLink.php : 236

Get timetable for this standard-section.

`public timetable() : HasMany`

##### Return values

HasMany

## Search results