Menu

## AutoPostProcess

AutoPostProcess.php : 27

##### Tags

class

  trait Trait for RegisterUser Processes

### Table of Contents

#### Methods

CreateBirthday() : mixed
  Create birthday event and post for a user.
CreateExam() : mixed|null
  Create an exam post announcement.
CreateWorkAnniversary() : mixed
  Create work anniversary event and announcement post.

### Methods

#### CreateBirthday()

AutoPostProcess.php : 40

Create birthday event and post for a user.

`public CreateBirthday(object $data, int $school_id, string $birth_date, string $date, string|null $argument, string $image) : mixed`

##### Parameters

$data : object

  User data with profiles and academic info

$school_id : int

  School identifier

$birth_date : string

  Birthday date

$date : string

  Current date/time for posting

$argument : string|null

  Optional scheduled post date

$image : string

  Attachment path for the post

##### Return values

mixed —

Event object created via Calendar helper

#### CreateExam()

AutoPostProcess.php : 280

Create an exam post announcement.

`public CreateExam(object $data, string $date, string $image) : mixed|null`

##### Parameters

$data : object

  Exam context including exam, standardlink, and subject

$date : string

  Post creation date

$image : string

  Attachment path for the post

##### Return values

mixed|null —

Variable $exam is referenced but not defined (returns null)

#### CreateWorkAnniversary()

AutoPostProcess.php : 175

Create work anniversary event and announcement post.

`public CreateWorkAnniversary(object $data, string $image, string $description, string $anniversary_date, string $date) : mixed`

##### Parameters

$data : object

  User data with teacher profile

$image : string

  Attachment path for the post

$description : string

  Description to use in the event/post

$anniversary_date : string

  Anniversary date

$date : string

  Current date/time for posting

##### Return values

mixed —

Event object created via Calendar helper

## Search results