Bonfire.Boundaries.Scaffold.Instance (Bonfire v1.0.1-social-alpha.9)

View Source

Provides functions to create default boundary fixtures for the instance.

Summary

Functions

Prepares and returns the fixtures for ACLs, circles, verbs, named entities, and grants.

Prepares fixtures and inserts them into the database.

Inserts or updates the ACLs in the database.

Inserts or updates circles in the database.

Inserts or updates the verbs in the database.

Functions

activity_pub_circle()

admin_circle()

custom_acl()

fixtures()

Prepares and returns the fixtures for ACLs, circles, verbs, named entities, and grants.

global_circles()

insert()

Prepares fixtures and inserts them into the database.

instance_acl()

mod_circle()

public_global_circles()

suggested_profiles_circle()

upsert_acls()

Inserts or updates the ACLs in the database.

Useful for migrations when adding new built-in ACLs. This will:

  • Insert the ACL records (ignoring if they already exist)

upsert_circles()

Inserts or updates circles in the database.

Useful for migrations when adding new built-in circles. This will:

  • Insert the circle records (ignoring if they already exist)
  • Add names for the circles
  • Set up caretakers (admin circle as caretaker)

upsert_verbs()

Inserts or updates the verbs in the database.