PHP Classes

File: src/Features/Request/Factory.php

Recommend this page to a friend!
  Classes of Thierry Feuzeu   Jaxon   src/Features/Request/Factory.php   Download  
File: src/Features/Request/Factory.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: 4 years ago
Size: 743 bytes
 

Contents

Class file image Download
<?php

/**
 * Factory.php - Trait for Jaxon Request Factory
 *
 * Make functions of the Jaxon Request Factory class available to Jaxon classes.
 *
 * @package jaxon-core
 * @author Thierry Feuzeu <thierry.feuzeu@gmail.com>
 * @copyright 2016 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\Features\Request;

trait
Factory
{
   
/**
     * Return the javascript call to an Jaxon object method
     *
     * @return \Jaxon\Request\Request
     */
   
public function call()
    {
       
// Make the request
       
return call_user_func_array([rq(get_class($this)), 'call'], func_get_args());
    }
}