PHP Classes
elePHPant
Icontem

File: src/Response/Plugin/JQuery/Call/Method.php

Recommend this page to a friend!
  Classes of Thierry Feuzeu  >  Jaxon  >  src/Response/Plugin/JQuery/Call/Method.php  >  Download  
File: src/Response/Plugin/JQuery/Call/Method.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: 2 months ago
Size: 590 bytes
 

 

Contents

Class file image Download
<?php

namespace Jaxon\Response\Plugin\JQuery\Call;

use
Jaxon\Request\Factory\JsCall;

class
Method extends JsCall
{
   
/**
     * The constructor.
     *
     * @param string $sMethod The jQuery function
     * @param array $aArguments The arguments of the jQuery function
     */
   
public function __construct($sMethod, $aArguments)
    {
       
parent::__construct($sMethod);
       
// Always use single quotes
       
$this->useSingleQuotes();
       
// Add the arguments to the parameter list
       
$this->addParameters($aArguments);
    }
}