This file contains 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 | |
use Sugarcrm\Sugarcrm\Security\HttpClient\ExternalResourceClient; | |
use Sugarcrm\Sugarcrm\Security\HttpClient\RequestException; | |
require 'vendor/autoload.php'; | |
$ch = curl_init(); | |
$url = 'https://httpbin.org/get'; |
This file contains 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
<html> | |
<head> | |
<script> | |
parent.window.location.href = 'https://www.salesforce.com'; | |
</script> | |
</head> | |
</html> |
This file contains 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 | |
declare(strict_types=1); | |
final class ItemName | |
{ | |
private $value; | |
private function __contruct() | |
{} | |
This file contains 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
#!/usr/bin/env php | |
<?php | |
error_reporting(E_ALL); | |
ini_set('display_errors',1); | |
$token = '<your github token>'; | |
$username = '<your github username>'; | |
function query($condition) |
This file contains 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 | |
function format_sugar_query(SugarQuery $query) | |
{ | |
return format_builder( | |
$query->compile() | |
); | |
} | |
function format_builder(\Doctrine\DBAL\Query\QueryBuilder $builder) |