All Classes

Browse 26 classes & traits in this project. There are 8 source classes, 14 test classes, and 4 traits.

Note: As of Dec 23, 2023, only classes & traits are listed. interfaces & enums are not supported.

Source Classes (not tests)

  • Defaults: Provides default configuration constants

  • BigOrm: Extend this class to represent a single row from your database. Provides many convenience features like saving, hooks, and coercing values between the database version & application version

  • LibraryCli: Extend this class to provide a CLI for your BigDb library.

  • OrmTester: Base class for testing:

    • Create, set props directly, and save
    • Create Orm, set props from db, modify, save
    • Delete a saved article
    • Create, set props from form, and save
    • Fail when setting from form with invalid Data
    • Fail when setting from form without appropriate access level.
    • Phad form can be loaded & printed
    • Phad view can be loaded & printed
    • Cannot be read if access is forbidden (such as articles that are private)
    • Search-related entries are created/deleted/etc
    • Cannot be created when invalid state exists (i.e. can't CREATE author page for a user who already has one, but CAN modify existing author entry)
    • Data validation via phad form (crud should inadvertently test this, but we should also make this an explicit test)
  • BigDbServer: A utility class for working with multiple BigDb databases.

  • BigFormOrm: Extend this class (instead of BigOrm) to handle user-supplied form data. This extends from BigOrm & provides additional convenience methods & a hook for setting ORM data from form.

  • BigDbCli: BigDb's own CLI, for setting up BigDb libraries.

  • BigDb: Extend this class to create an interface for your BigDb library. Provides many convenience methods for various features. Uses 4 traits.

Traits

  • GetOrms: Provides methods for loading rows from DB & instantiating them as ORMs.
  • Migrations: Provides methods for running migrations.
  • SqlVerbs: Provides common verbs like insert, update, select, and delete. Returns array rows, not orms.
  • SqlFiles: Provides support for loading .sql files & executing queries within, via LilDb's LilSql class.

Test Classes