Menu

## AddStandard extends Command
in package
uses AcademicProcess

AddStandard.php : 9

### Table of Contents

#### Properties

$description : string
  The console command description.
$signature : string
  The name and signature of the console command.

#### Methods

__construct() : void
  Create a new command instance.
addStandard() : Standard
  Bulk create default standards for a school based on level selection.
createAttendance() : Attendance
  Record attendance for students and trigger notifications for absentees.
createSection() : Section
  Create a section for a school.
createStaffAttendance() : Attendance
  Record attendance for staff members and notify absent staff.
createStandard() : Standard
  Insert a single standard in relation to a reference standard order.
createStandardLink() : StandardLink
  Create a standard link and related teacher assignments.
createSubject() : Subject
  Create a subject within an academic year and link to standard/section.
editStandardLink() : StandardLink
  Update a standard link and refresh assigned teachers/subjects.
handle() : mixed
  Execute the console command.

### Properties

#### $description

AddStandard.php : 25

The console command description.

`protected string $description = 'Add Standard'`

#### $signature

AddStandard.php : 18

The name and signature of the console command.

`protected string $signature = 'gego:addstandard {--default}'`

### Methods

#### __construct()

AddStandard.php : 32

Create a new command instance.

`public __construct() : void`

#### addStandard()

AcademicProcess.php : 37

Bulk create default standards for a school based on level selection.

`public addStandard(int $school_id, object $data) : Standard`

##### Parameters

$school_id : int

  School identifier

$data : object

  Request payload containing standards scope

##### Return values

Standard —

Last created standard model

#### createAttendance()

AcademicProcess.php : 359

Record attendance for students and trigger notifications for absentees.

`public createAttendance(int $school_id, int $academic_year_id, int $admin, object $data) : Attendance`

##### Parameters

$school_id : int

  School identifier

$academic_year_id : int

  Academic year identifier

$admin : int

  Admin user ID recording attendance

$data : object

  Request payload with absent/present lists and session info

##### Return values

Attendance —

Last saved attendance record

#### createSection()

AcademicProcess.php : 127

Create a section for a school.

`public createSection(int $school_id, object $data) : Section`

##### Parameters

$school_id : int

  School identifier

$data : object

  Request payload containing section name

##### Return values

Section —

Newly created section

#### createStaffAttendance()

AcademicProcess.php : 447

Record attendance for staff members and notify absent staff.

`public createStaffAttendance(int $school_id, int $academic_year_id, int $admin, object $data) : Attendance`

##### Parameters

$school_id : int

  School identifier

$academic_year_id : int

  Academic year identifier

$admin : int

  Admin user ID recording attendance

$data : object

  Request payload with absent/present staff data

##### Return values

Attendance —

Last saved attendance record

#### createStandard()

AcademicProcess.php : 90

Insert a single standard in relation to a reference standard order.

`public createStandard(int $school_id, object $data) : Standard`

##### Parameters

$school_id : int

  School identifier

$data : object

  Request payload containing standard name, reference id, and position

##### Return values

Standard —

Newly created standard

#### createStandardLink()

AcademicProcess.php : 188

Create a standard link and related teacher assignments.

`public createStandardLink(int $school_id, int $academic_year_id, object $data) : StandardLink`

##### Parameters

$school_id : int

  School identifier

$academic_year_id : int

  Academic year identifier

$data : object

  Request payload including class teacher, subjects, and counts

##### Return values

StandardLink —

Newly created standard link

#### createSubject()

AcademicProcess.php : 155

Create a subject within an academic year and link to standard/section.

`public createSubject(int $school_id, int $academic_year_id, object $data) : Subject`

##### Parameters

$school_id : int

  School identifier

$academic_year_id : int

  Academic year identifier

$data : object

  Request payload containing subject details

##### Return values

Subject —

Newly created subject

#### editStandardLink()

AcademicProcess.php : 256

Update a standard link and refresh assigned teachers/subjects.

`public editStandardLink(int $school_id, int $academic_year_id, int $standardLink_id, object $data) : StandardLink`

##### Parameters

$school_id : int

  School identifier

$academic_year_id : int

  Academic year identifier

$standardLink_id : int

  Standard link identifier

$data : object

  Request payload including teacher/subject updates

##### Return values

StandardLink —

Updated standard link

#### handle()

AddStandard.php : 42

Execute the console command.

`public handle() : mixed`

## Search results