for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
/**
* Pending some changes introduced to the core shop module, this will supply
* some standard, easily overridable ajax features.
*
* @author Mark Guinn <[email protected]>
* @date 07.21.2014
* @package shop_search
*/
class ShopSearchAjax extends Extension
You can fix this by adding a namespace to your class:
namespace YourVendor; class YourClass { }
When choosing a vendor namespace, try to pick something that is not too generic to avoid conflicts with other libraries.
{
* @param SS_HTTPRequest $request
* @param SS_HTTPResponse $response
* @param ArrayData $results
* @param array $data
public function updateSearchResultsResponse(&$request, &$response, $results, $data)
$data
This check looks from parameters that have been defined for a function or method, but which are not used in the method body.
if ($request->isAjax() && $this->owner->hasExtension('AjaxControllerExtension')) {
if (!$response) {
$response = $this->owner->getAjaxResponse();
}
$response->addRenderContext('RESULTS', $results);
$response->pushRegion('SearchResults', $results);
$response->pushRegion('SearchHeader', $results);
$response->triggerEvent('searchresults');
You can fix this by adding a namespace to your class:
When choosing a vendor namespace, try to pick something that is not too generic to avoid conflicts with other libraries.