PHP Classes

File: autoload.php

Recommend this page to a friend!
  Classes of ASCOOS CMS   Ascoos Framework   autoload.php   Download  
File: autoload.php
Role: Auxiliary script
Content type: text/plain
Description: Ascoos Autoload Framework
Class: Ascoos Framework
Framework of general purposes classes
Author: By
Last change: - `$conf` : Ascoos Framework Configuration Data

**Paths**
- `$AFW_PATH` or `$afw_path` : Ascoos Framework Path
- `$AFW_KERNEL_PATH` or `$afw_kernel_path` : Ascoos Framework Kernel Path
- `$AFW_KERNEL_IMPLEMENTATION_PATH` : Ascoos Framework Kernel Implementation Path
- `$AFW_KERNEL_HANDLERS_PATH` : Ascoos Framework Kernel Handlers Path
- `$AFW_EXTRAS_PATH` : Ascoos Framework Extras Classes Path
- `$AFW_CONFIG_PATH` : Ascoos Framework Configuration Path
- `$AFW_LIBS_PATH` : Ascoos Framework Libraries Path
- `$AFW_LOGS_PATH` : Ascoos Framework Logs Path
- `$AFW_CACHE_PATH` : Ascoos Framework Cache Path
Date: 3 days ago
Size: 4,557 bytes
 

Contents

Class file image Download
<?php
/**
 * __ _ ___ ___ ___ ___ ___ ____ _ __ ___ ___
 * / _` |/ / / __/ _ \ / _ \ / / / __/| '_ ` _ \ / /
 * | (_| |\ \| (_| (_) | (_) |\ \ | (__ | | | | | |\ \
 * \__,_|/__/ \___\___/ \___/ /__/ \___\|_| |_| |_|/__/
 *
 *
 ************************************************************************************
 * @ASCOOS-NAME : ASCOOS CMS 25' *
 * @ASCOOS-VERSION : 25.0.0 *
 * @ASCOOS-CATEGORY : Framework (Frontend and Administrator Side) *
 * @ASCOOS-CREATOR : Drogidis Christos *
 * @ASCOOS-SITE : www.ascoos.com *
 * @ASCOOS-LICENSE : [Commercial] http://docs.ascoos.com/lics/ascoos/AGL.html *
 * @ASCOOS-COPYRIGHT : Copyright (c) 2007 - 2025, AlexSoft Software. *
 ************************************************************************************
 *
 * @package : ASCOOS FRAMEWORK 25'
 * @subpackage : ASCOOS FRAMEWORK Core Autoload Files
 * @source : afw/autoload.php
 * @fileNo : 1
 * @version : 25.0.0
 * @build : 11498
 * @created : 2024-07-01 20:00:00 UTC+2
 * @updated : 2025-04-01 02:12:07 UTC+2
 * @author : Drogidis Christos
 * @authorSite : www.alexsoft.gr
 * @license : AGL-F
 *
 * @since PHP 8.2.0
 */
declare(strict_types=1);
defined ("ALEXSOFT_RUN_CMS") OR define ("ALEXSOFT_RUN_CMS", True);
defined('ASCOOS_RUN') OR define('ASCOOS_RUN', True);
defined('ASCOOS_FRAMEWORK_RUN') OR define('ASCOOS_FRAMEWORK_RUN', True);

/* PATHS */
$AFW_PATH = str_replace('\\', '/', __DIR__); // Ascoos Framework Path
$AFW_KERNEL_PATH = $AFW_PATH . "/kernel"; // Ascoos Framework Kernel Path
$AFW_KERNEL_IMPLEMENTATION_PATH = $AFW_KERNEL_PATH . "/implementation"; // Ascoos Framework Kernel Implementation Path
$AFW_KERNEL_HANDLERS_PATH = $AFW_KERNEL_PATH . "/handlers"; // Ascoos Framework Kernel Handlers Path
$AFW_EXTRAS_PATH = $AFW_PATH . "/extras"; // Ascoos Framework Extras Classes Path
$AFW_CONFIG_PATH = $AFW_PATH . "/config"; // Ascoos Framework Configuration Path
$AFW_LIBS_PATH = $AFW_PATH . "/libs"; // Ascoos Framework Libraries Path
$AFW_LOGS_PATH = $AFW_PATH . "/tmp/logs"; // Ascoos Framework Logs Path
$AFW_CACHE_PATH = $AFW_PATH . "/tmp/cache"; // Ascoos Framework Cache Path

$afw_path = $AFW_PATH;
$afw_kernel_path = $AFW_KERNEL_PATH;

// ?????????? ??? ?????????? ??????????? ??????????? ????????.
if (file_exists($AFW_LIBS_PATH . '/phpbcl8/phpbcl8_autoload.php')) require_once $AFW_LIBS_PATH . "/phpbcl8/phpbcl8_autoload.php";

// Load Configuration Array
$conf = require_once $AFW_CONFIG_PATH . "/conf.php";

require_once
$AFW_KERNEL_IMPLEMENTATION_PATH . "/Methods.php";
require_once
$AFW_KERNEL_PATH . "/coreKernel.php";

require_once
$AFW_KERNEL_PATH . "/coreConsts.php";

/* UTF8 Handles*/
if (file_exists($AFW_PATH . "/kernel/coreUTF8.php")) {
    require_once
$AFW_PATH . "/kernel/coreUTF8.php"; // Main Core UTF-8 Handles
    //use ASCOOS\FRAMEWORK\Kernel\Utf8\TUTF8;
   
$utf8 =& ASCOOS\FRAMEWORK\Kernel\Utf8\TUTF8::getInstance();
}

/** Strings Handles */
if (file_exists($AFW_KERNEL_PATH . "/coreStrings.php")) {
    require_once
$AFW_KERNEL_PATH . "/coreStrings.php";
// use ASCOOS\FRAMEWORK\Kernel\Strings\TString;
   
$objString =& ASCOOS\FRAMEWORK\Kernel\Strings\TString::getInstance();
}


require_once
$AFW_PATH . "/autoloader.php";
use
ASCOOS\FRAMEWORK\Autoloader\TAutoloader;

// ???????????? ??????????? ??? ?????? TAutoloader
$autoloader = new TAutoloader();

// ????????????????? ?? ?????? *.php ??? ??? ?????? kernel/implementation
$autoloader->includeImplementationFiles();

// ????????????????? ?? ?????? core*.php ??? ??? ?????? kernel
$autoloader->includeCoreFiles();

// ????????????????? ?? ?????? autoload.php ??? ???? ??????????? ??? ???????????
$autoloader->includeLibraries();
?>