PHP Classes
elePHPant
Icontem

File: src/Traits/Autoload.php

Recommend this page to a friend!
  Classes of Thierry Feuzeu  >  Jaxon  >  src/Traits/Autoload.php  >  Download  
File: src/Traits/Autoload.php
Role: Class source
Content type: text/plain
Description: Class source
Class: Jaxon
Call PHP classes from JavaScript using AJAX
Author: By
Last change:
Date: 11 months ago
Size: 1,198 bytes
 

Contents

Class file image Download
<?php

/**
 * Autoload.php - Upload Trait
 *
 * The Jaxon class uses a modular plug-in system to facilitate the processing
 * of special Ajax requests made by a PHP page.
 * It generates Javascript that the page must include in order to make requests.
 * It handles the output of response commands (see <Jaxon\Response\Response>).
 * Many flags and settings can be adjusted to effect the behavior of the Jaxon class
 * as well as the client-side javascript.
 *
 * @package jaxon-core
 * @author Thierry Feuzeu <thierry.feuzeu@gmail.com>
 * @copyright 2017 Thierry Feuzeu <thierry.feuzeu@gmail.com>
 * @license https://opensource.org/licenses/BSD-3-Clause BSD 3-Clause License
 * @link https://github.com/jaxon-php/jaxon-core
 */

namespace Jaxon\Traits;

use
Jaxon\Utils\Container;

trait Autoload
{
   
/**
     * Set Jaxon to use the Composer autoloader
     *
     * @return void
     */
   
public function useComposerAutoloader()
    {
       
$this->getPluginManager()->useComposerAutoloader();
    }

   
/**
     * Disable Jaxon classes autoloading
     *
     * @return void
     */
   
public function disableAutoload()
    {
       
$this->getPluginManager()->disableAutoload();
    }
}