diff --git a/docs/code/classes/Urisoft-App-Core-Plugin.html b/docs/code/classes/Urisoft-App-Core-Plugin.html index 21fc901..4310097 100644 --- a/docs/code/classes/Urisoft-App-Core-Plugin.html +++ b/docs/code/classes/Urisoft-App-Core-Plugin.html @@ -553,7 +553,7 @@

Plugin.php : - 202 + 198 @@ -675,7 +675,7 @@

@@ -741,7 +741,7 @@

@@ -774,7 +774,7 @@

@@ -821,7 +821,7 @@

diff --git a/docs/code/classes/Urisoft-App-Http-AppFramework.html b/docs/code/classes/Urisoft-App-Http-AppFramework.html index 93c0163..0383385 100644 --- a/docs/code/classes/Urisoft-App-Http-AppFramework.html +++ b/docs/code/classes/Urisoft-App-Http-AppFramework.html @@ -323,7 +323,7 @@

public - __construct(string $app_path[, string $options = 'app' ][, array<string|int, mixed>|null $tenant_ids = null ]) : mixed + __construct(string $app_path[, string $options = 'app' ]) : mixed

Parameters
@@ -345,14 +345,6 @@
Parameters

The configuration options filename, e.g., app.php.

- -
- $tenant_ids - : array<string|int, mixed>|null - = null
-
-
-
@@ -393,7 +385,7 @@

@@ -428,7 +420,7 @@

@@ -461,7 +453,7 @@

diff --git a/docs/code/classes/Urisoft-App-Http-DB.html b/docs/code/classes/Urisoft-App-Http-DB.html new file mode 100644 index 0000000..f6c6368 --- /dev/null +++ b/docs/code/classes/Urisoft-App-Http-DB.html @@ -0,0 +1,812 @@ + + + + + WordPress Environment Configuration + + + + + + + + + + + + + + + + + + + + +
+

WordPress Environment Configuration

+ + + + + +
+ +
+
+ + + + +
+ + +
+

+ DB + + +
+ in package + +
+ + +

+ + + + +
+ + + + + + + + +

+ Table of Contents + +

+ +
+
+ $conn + +  : mixed +
+
+ +
+ $dbName + +  : mixed +
+
+ +
+ $host + +  : mixed +
+
+ +
+ $password + +  : mixed +
+
+ +
+ $prefix + +  : mixed +
+
+ +
+ $table + +  : mixed +
+
+ +
+ $username + +  : mixed +
+
+ +
+ __construct() + +  : mixed +
+
+ +
+ all() + +  : mixed +
+
+ +
+ find() + +  : mixed +
+
+ +
+ where() + +  : mixed +
+
+ +
+ connect() + +  : mixed +
+
+ +
+ + + + + + +
+

+ Properties + +

+
+

+ $conn + + + +

+ + + + + private + mixed + $conn + + +
+ +
+ + + +
+
+

+ $dbName + + + +

+ + + + + private + mixed + $dbName + + +
+ +
+ + + +
+
+

+ $host + + + +

+ + + + + private + mixed + $host + + +
+ +
+ + + +
+
+

+ $password + + + +

+ + + + + private + mixed + $password + + +
+ +
+ + + +
+
+

+ $prefix + + + +

+ + + + + private + mixed + $prefix + + +
+ +
+ + + +
+
+

+ $table + + + +

+ + + + + private + mixed + $table + + +
+ +
+ + + +
+
+

+ $username + + + +

+ + + + + private + mixed + $username + + +
+ +
+ + + +
+
+ +
+

+ Methods + +

+
+

+ __construct() + +

+ + + + + public + __construct(string $table_name_no_prefix, string $host, string $dbName, string $username, string $password, string $prefix) : mixed + +
+ +
Parameters
+
+
+ $table_name_no_prefix + : string +
+
+
+ +
+
+ $host + : string +
+
+
+ +
+
+ $dbName + : string +
+
+
+ +
+
+ $username + : string +
+
+
+ +
+
+ $password + : string +
+
+
+ +
+
+ $prefix + : string +
+
+
+ +
+
+ + + +
Return values
+ mixed + — + + +
+
+

+ all() + +

+ + + + + public + all() : mixed + +
+ + + + +
Return values
+ mixed + — + + +
+
+

+ find() + +

+ + + + + public + find(mixed $id) : mixed + +
+ +
Parameters
+
+
+ $id + : mixed +
+
+
+ +
+
+ + + +
Return values
+ mixed + — + + +
+
+

+ where() + +

+ + + + + public + where(mixed $column, mixed $value) : mixed + +
+ +
Parameters
+
+
+ $column + : mixed +
+
+
+ +
+
+ $value + : mixed +
+
+
+ +
+
+ + + +
Return values
+ mixed + — + + +
+
+

+ connect() + +

+ + + + + private + connect() : mixed + +
+ + + + +
Return values
+ mixed + — + + +
+
+ + + + +
+
+
+
+

Search results

+ +
+
+
    +
    +
    +
    +
    +
    + + +
    + + + + + + + + diff --git a/docs/code/classes/Urisoft-App-Setup.html b/docs/code/classes/Urisoft-App-Setup.html index 5e42a06..4bef24f 100644 --- a/docs/code/classes/Urisoft-App-Setup.html +++ b/docs/code/classes/Urisoft-App-Setup.html @@ -117,7 +117,7 @@

    @@ -150,13 +150,6 @@

    - $app_http_host - -  : string -
    -
    Set the http host.
    - -
    $dotenv  : mixed @@ -268,13 +261,6 @@

    Debug Settings.
    -
    - define_multi_tenant() - -  : void -
    -
    -
    env_debug() @@ -422,13 +408,6 @@

    Retrieves the default file names for environment configuration.
    -
    - http() - -  : AppHostManager -
    -
    -
    is_multitenant_app() @@ -482,39 +461,6 @@

    -property -protected " -> -

    - $app_http_host - - - -

    - - -

    Set the http host.

    - - - protected - string - $app_http_host - - - - - - - -

    $dotenv @@ -525,7 +471,7 @@

    @@ -559,7 +505,7 @@

    @@ -592,7 +538,7 @@

    @@ -625,7 +571,7 @@

    @@ -658,7 +604,7 @@

    @@ -691,7 +637,7 @@

    @@ -724,7 +670,7 @@

    @@ -757,7 +703,7 @@

    @@ -791,7 +737,7 @@

    @@ -825,7 +771,7 @@

    @@ -862,7 +808,7 @@

    @@ -870,7 +816,7 @@

    public - __construct(string $path[, array<string|int, mixed> $supported_names_or_tenants = [] ][, bool $short_circuit = true ]) : mixed + __construct(string $path[, array<string|int, mixed> $supported_names = [] ][, bool $short_circuit = true ]) : mixed

    Parameters
    @@ -885,7 +831,7 @@
    Parameters
    - $supported_names_or_tenants + $supported_names : array<string|int, mixed> = []
    @@ -991,7 +937,7 @@

    @@ -1078,7 +1024,7 @@

    @@ -1107,39 +1053,6 @@

    Return values
    — -
    -
    -

    - define_multi_tenant() - -

    - - - - - public - define_multi_tenant() : void - -
    - - - - -
    Return values
    - void - — - -
    @@ -1400,7 +1313,7 @@

    @@ -1433,7 +1346,7 @@

    @@ -1481,7 +1394,7 @@

    @@ -1590,7 +1503,7 @@

    @@ -1672,7 +1585,7 @@

    @@ -1705,7 +1618,7 @@

    @@ -1831,7 +1744,7 @@

    @@ -1864,7 +1777,7 @@

    @@ -1897,7 +1810,7 @@

    @@ -1950,39 +1863,6 @@

    Return values
    -
    -
    @@ -2030,7 +1910,7 @@

    @@ -2096,7 +1976,7 @@

    @@ -2141,7 +2021,7 @@

    diff --git a/docs/code/files/src-app-http-db.html b/docs/code/files/src-app-http-db.html new file mode 100644 index 0000000..4ca025d --- /dev/null +++ b/docs/code/files/src-app-http-db.html @@ -0,0 +1,151 @@ + + + + + WordPress Environment Configuration + + + + + + + + + + + + + + + + + + + + +
    +

    WordPress Environment Configuration

    + + + + + +
    + +
    +
    + + + + +
    +
      +
    + +
    +

    DB.php

    + + +
    + + + + + + +

    + Interfaces, Classes, Traits and Enums + +

    + +
    + +
    DB
    +
    + + +
    + + + + + + + + +
    +
    +
    +
    +

    Search results

    + +
    +
    +
      +
      +
      +
      +
      +
      + + +
      + + + + + + + + diff --git a/docs/code/files/src-app-setup.html b/docs/code/files/src-app-setup.html index 004e002..99e9d62 100644 --- a/docs/code/files/src-app-setup.html +++ b/docs/code/files/src-app-setup.html @@ -116,95 +116,10 @@

      -

      - Table of Contents - -

      - -
      -
      - APP_HTTP_HOST - -  = $this->app_http_host -
      -
      - -
      - IS_MULTITENANT - -  = false -
      -
      - -
      -
      -

      - Constants - -

      -
      -

      - APP_HTTP_HOST - -

      - - - - - - public - mixed - APP_HTTP_HOST - = $this->app_http_host - - - -
      - -
      - - - -
      -
      -

      - IS_MULTITENANT - -

      - - - - - - public - mixed - IS_MULTITENANT - = false - - - -
      - -
      - - - -
      -
      diff --git a/docs/code/files/src-inc-helpers.html b/docs/code/files/src-inc-helpers.html index 068777d..7ae8173 100644 --- a/docs/code/files/src-inc-helpers.html +++ b/docs/code/files/src-inc-helpers.html @@ -110,6 +110,27 @@

      +
      + APP_HTTP_HOST + +  = $hostd[0]->domain +
      +
      + +
      + APP_TENANT_ID + +  = $hostd[0]->uuid +
      +
      + +
      + IS_MULTITENANT + +  = true +
      +
      +
      asset() @@ -150,7 +171,7 @@

       : BaseKernel

      -
      Start up and set the AppFramework Kernel.
      +
      Initializes and sets up the AppFramework Kernel.
      wpc_app_config_core() @@ -201,6 +222,13 @@

      Basic Sanitize and prepare for a string input for safe usage in the application.
      +
      + env_tenant_id() + +  : string|null +
      +
      +
      wp_terminate() @@ -208,11 +236,111 @@

      Custom function to terminate script execution, display a message, and set an HTTP status code.
      +
      + sclean_sensitive_env() + +  : void +
      +
      Cleans up sensitive environment variables.
      +
      +
      +

      + Constants + +

      +
      +

      + APP_HTTP_HOST + +

      + + + + + + public + mixed + APP_HTTP_HOST + = $hostd[0]->domain + + + +
      + +
      + + + +
      +
      +

      + APP_TENANT_ID + +

      + + + + + + public + mixed + APP_TENANT_ID + = $hostd[0]->uuid + + + +
      + +
      + + + +
      +
      +

      + IS_MULTITENANT + +

      + + + + + + public + mixed + IS_MULTITENANT + = true + + + +
      + +
      + + + +
      +

      @@ -227,7 +355,7 @@

      @@ -277,7 +405,7 @@

      @@ -315,7 +443,7 @@

      @@ -385,7 +513,7 @@

      @@ -427,7 +555,7 @@

      @@ -459,17 +587,19 @@

      -

      Start up and set the AppFramework Kernel.

      +

      Initializes and sets up the AppFramework Kernel.

      - wpc_app(string $app_path[, string $options = 'app' ][, array<string|int, mixed>|null $tenant_ids = null ]) : BaseKernel + wpc_app(string $app_path[, string $options = 'app' ]) : BaseKernel + +

      Optionally supports a multi-tenant configuration based on environment variables.

      +
      -

      Parameters
      @@ -477,7 +607,7 @@
      Parameters
      : string
      -

      The base app path. like DIR

      +

      The base application directory path (e.g., DIR).

      @@ -486,17 +616,9 @@
      Parameters
      : string = 'app'
      -

      The options filename, default 'app'

      +

      The configuration filename, defaults to 'app'.

      -
      -
      - $tenant_ids - : array<string|int, mixed>|null - = null
      -
      -
      -
      @@ -505,7 +627,9 @@
      Parameters
      Return values
      BaseKernel — - +

      The initialized application kernel.

      +
      +
      @@ -516,7 +640,7 @@

      @@ -544,7 +668,7 @@

      @@ -587,7 +711,7 @@

      @@ -630,7 +754,7 @@

      @@ -710,7 +834,7 @@

      @@ -786,7 +910,7 @@

      helpers.php : - 268 + 308 @@ -814,7 +938,7 @@

      @@ -851,6 +975,34 @@

      Return values
      + +
      +

      + env_tenant_id() + +

      + + + + + + env_tenant_id() : string|null + +
      + + + + +
      Return values
      + string|null + — + +

      @@ -860,7 +1012,7 @@

      @@ -900,6 +1052,49 @@

      Return values
      — +
      +
      +

      + sclean_sensitive_env() + +

      + + +

      Cleans up sensitive environment variables.

      + + + + sclean_sensitive_env(array<string|int, mixed> $sensitives) : void + +

      This function removes specified environment variables from the $_ENV superglobal +and the environment to help secure sensitive information.

      +
      + +
      Parameters
      +
      +
      + $sensitives + : array<string|int, mixed> +
      +
      +

      An array of environment variable names to be cleaned up.

      +
      + +
      +
      + + + +
      Return values
      + void + — + +
      diff --git a/docs/code/index.html b/docs/code/index.html index 4440f32..6f89d69 100644 --- a/docs/code/index.html +++ b/docs/code/index.html @@ -120,14 +120,21 @@

      APP_HTTP_HOST -  = $this->app_http_host +  = $hostd[0]->domain +
      +
      + +
      + APP_TENANT_ID + +  = $hostd[0]->uuid
      IS_MULTITENANT -  = false +  = true
      @@ -171,7 +178,7 @@

       : BaseKernel -
      Start up and set the AppFramework Kernel.
      +
      Initializes and sets up the AppFramework Kernel.
      wpc_app_config_core() @@ -222,6 +229,13 @@

      Basic Sanitize and prepare for a string input for safe usage in the application.
      +
      + env_tenant_id() + +  : string|null +
      +
      +
      wp_terminate() @@ -229,6 +243,13 @@

      Custom function to terminate script execution, display a message, and set an HTTP status code.
      +
      + sclean_sensitive_env() + +  : void +
      +
      Cleans up sensitive environment variables.
      + @@ -244,9 +265,9 @@

      @@ -255,7 +276,36 @@

      public mixed APP_HTTP_HOST - = $this->app_http_host + = $hostd[0]->domain + + + +
      + +
      + + + + +
      +

      + APP_TENANT_ID + +

      + + + + + + public + mixed + APP_TENANT_ID + = $hostd[0]->uuid @@ -273,9 +323,9 @@

      @@ -284,7 +334,7 @@

      public mixed IS_MULTITENANT - = false + = true @@ -310,7 +360,7 @@

      @@ -360,7 +410,7 @@

      @@ -398,7 +448,7 @@

      @@ -468,7 +518,7 @@

      @@ -510,7 +560,7 @@

      @@ -542,17 +592,19 @@

      -

      Start up and set the AppFramework Kernel.

      +

      Initializes and sets up the AppFramework Kernel.

      - wpc_app(string $app_path[, string $options = 'app' ][, array<string|int, mixed>|null $tenant_ids = null ]) : BaseKernel + wpc_app(string $app_path[, string $options = 'app' ]) : BaseKernel + +

      Optionally supports a multi-tenant configuration based on environment variables.

      +
      -

      Parameters
      @@ -560,7 +612,7 @@
      Parameters
      : string
      -

      The base app path. like DIR

      +

      The base application directory path (e.g., DIR).

      @@ -569,17 +621,9 @@
      Parameters
      : string = 'app'
      -

      The options filename, default 'app'

      +

      The configuration filename, defaults to 'app'.

      -
      -
      - $tenant_ids - : array<string|int, mixed>|null - = null
      -
      -
      -
      @@ -588,7 +632,9 @@
      Parameters
      Return values
      BaseKernel — - +

      The initialized application kernel.

      +
      +
      @@ -599,7 +645,7 @@

      @@ -627,7 +673,7 @@

      @@ -670,7 +716,7 @@

      @@ -713,7 +759,7 @@

      @@ -793,7 +839,7 @@

      @@ -869,7 +915,7 @@

      helpers.php : - 268 + 308 @@ -897,7 +943,7 @@

      @@ -934,6 +980,34 @@

      Return values
      +
      +
      +

      + env_tenant_id() + +

      + + + + + + env_tenant_id() : string|null + +
      + + + + +
      Return values
      + string|null + — + +

      @@ -943,7 +1017,7 @@

      @@ -983,6 +1057,49 @@

      Return values
      — +
      +
      +

      + sclean_sensitive_env() + +

      + + +

      Cleans up sensitive environment variables.

      + + + + sclean_sensitive_env(array<string|int, mixed> $sensitives) : void + +

      This function removes specified environment variables from the $_ENV superglobal +and the environment to help secure sensitive information.

      +
      + +
      Parameters
      +
      +
      + $sensitives + : array<string|int, mixed> +
      +
      +

      An array of environment variable names to be cleaned up.

      +
      + +
      +
      + + + +
      Return values
      + void + — + +
      diff --git a/docs/code/indices/files.html b/docs/code/indices/files.html index dd72e77..203a90a 100644 --- a/docs/code/indices/files.html +++ b/docs/code/indices/files.html @@ -115,7 +115,11 @@

      C

    • ConstantBuilderTrait.php
    • ConstantTrait.php
    • -

      E

      +

      D

      + +

      E