public function __construct(array $requestArgs) { parent::__construct($requestArgs); //The formId that we're dealing with is the only expected argument. if (isset($requestArgs[0])) { $this->_formId = (string) $requestArgs[0]; } }
public function __construct(array $requestArgs) { parent::__construct($requestArgs); /** * The sijax response function expects only one parameter. * It should be an array containing different parameters. * We MUST send the `fieldId` parameter back. * We'll send the whole incoming array back though. */ if (isset($requestArgs[0])) { $this->_response = $requestArgs[0]; } $this->addSuggestions(array()); }