This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?php | |
| namespace Xsolve\SalesforceClient\Client; | |
| use GuzzleHttp\Psr7\Request; | |
| use Http\Client\Exception\HttpException; | |
| use Http\Client\HttpClient; | |
| use Psr\Http\Message\ResponseInterface; | |
| use Xsolve\SalesforceClient\Enum\ContentType; | |
| use Xsolve\SalesforceClient\Generator\TokenGeneratorInterface; | |
| use Xsolve\SalesforceClient\Request\RequestInterface; | |
| use Xsolve\SalesforceClient\Security\Token\TokenInterface; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?php | |
| namespace EShop\ImageResizer\Controller\Adminhtml\Cache; | |
| use Magento\Backend\App\Action\Context; | |
| use Magento\Backend\Controller\Adminhtml\Cache as MagentoAdminCache; | |
| use Magento\Framework\App\Cache\Frontend\Pool; | |
| use Magento\Framework\App\Cache\StateInterface; | |
| use Magento\Framework\App\Cache\TypeListInterface; | |
| use Magento\Framework\Exception\LocalizedException; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?php | |
| $countryCollection = Mage::getModel('directory/country_api')->items(); | |
| function getCountryId($country_name){ | |
| global $countryCollection; | |
| $country_name = trim($country_name); | |
| foreach ($countryCollection as $country) { | |
| if (strtolower($country['name']) == strtolower($country_name)){ | |
| return $country['country_id']; | |
| }elseif (strtolower($country['country_id']) == strtolower($country_name)) { | |
| return $country['country_id']; |
NewerOlder