Launchpad
Launchpad
Launchpad
  • Introduction
  • General
    • Installation
    • Creating a subscriber
    • Contributing
  • Tutorials
    • Beginner documentation
      • Beginner handbook
        • Creating subscribers
        • Wiring subscribers
        • Installing local environment
        • Adding front-end
        • Building the plugin
      • Plugin life circle
        • Activation
        • Deactivation
        • Uninstall
    • Starting with the framework
    • Migrating to Launchpad
    • Notions
      • Framework concepts
        • Inversion of control
        • Subscribers
        • Dispatcher
      • Good practices
        • Hooks
          • Preventing magic constants
          • Decouple features
          • Sanitize filters output
      • Testing
        • Organize tests
  • CLI
    • Commands
    • Creating a command
  • Testing
    • Unit test
    • Fixtures
    • Integration test
  • Container
    • Architecture
    • Parameters
    • Providers
    • Auto wiring
    • Manual wiring
    • Activation/Deactivation
    • Inflectors
  • Modules
    • Definition
    • Listing
      • Action Scheduler
      • BerlinDB
      • Bus
      • Options
      • Renderer
      • Logger
      • Uninstaller
      • Filesystem
      • Front-end
      • Hook extractor
    • Creating a module
Powered by GitBook
On this page
  • Description
  • Install
  • Structure
  1. Modules
  2. Listing

Options

Description

This module provides options facades.

For that we have 3 types of options:

  • Options: Regular options.

  • Transients: Temporary options.

  • Settings: Plugin settings all saved in the same place.

Install

To install the library run the following command: composer require wp-launchpad/framework-options-take-off

Structure

Options are build around inflectors which add automatically facades to the objects aware about them.

For the Options you should implement the interface LaunchpadFrameworkOptions\Interfaces\OptionsAwareInterface and the trait LaunchpadFrameworkOptions\Traits\OptionsAwareTrait. For the Transients you should implement the interface LaunchpadFrameworkOptions\Interfaces\TransientsAwareInterface and the trait LaunchpadFrameworkOptions\Traits\TransientsAwareTrait. For the Settings you should implement the interface LaunchpadFrameworkOptions\Interfaces\SettingsAwareInterface and the trait LaunchpadFrameworkOptions\Traits\SettingsAwareTrait.

PreviousBusNextRenderer

Last updated 1 year ago