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 | |
public function exportSanitize($value, $vardef, $focus, $row=array()) { | |
return $this->formatField($value, $vardef); | |
} |
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 | |
$configurator = new Configurator(); | |
if (!isset($configurator->config['test_key1'])) { | |
$configurator->config['test_key1'] = 'test_value1'; | |
} | |
$configurator->handleOverride(); |
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 | |
//set up options array | |
$options = array( | |
"location" => 'https://site14/sugar6/soap.php', | |
"uri" => 'http://www.sugarcrm.com/sugarcrm', | |
"trace" => 1 | |
); | |
//user authentication array | |
$user_auth = array( |
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 | |
// specify the REST web service to interact with | |
$url = 'https://localhost/~jmertic/sugar7/ent/sugarcrm/rest/v10'; | |
// And admin username/password | |
$username = 'will'; | |
$password = 'will'; | |
// And the report_id you wish to export |
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 | |
// specify the REST web service to interact with | |
$url = '<<your sugar instance URL>>/service/v4_1/rest.php'; | |
// And admin username/password | |
$username = '<<username>>'; | |
$password = '<<password>>'; | |
// And the report_id you wish to export |
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
/* Instantiate and authenticate */ | |
$sugar = new \Spinegar\Sugar7Wrapper\Rest(); | |
$sugar->setUrl('https://sugar/rest/v10/') | |
->setUsername('restUser') | |
->setPassword('password') | |
->connect(); | |
/* Retrieve all records in the Cases module */ | |
$sugar->search('Cases'); |
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 | |
// specify the REST web service to interact with | |
$url = 'http://sugarinstance/rest/v10'; | |
// And admin username/password | |
$admin_username = '<<admin username>>'; | |
$admin_password = '<<admin password>>'; | |
// And account id you want to get the related docs for |
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 | |
// specify the REST web service to interact with | |
$url = 'http://sugarinstance/rest/v10'; | |
// And admin username/password | |
$admin_username = '<<admin username>>'; | |
$admin_password = '<<admin password>>'; | |
// And username you whom you want to find out thier timezone |
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 | |
/** | |
* This function helps generate the name and full_name member field | |
* variables from the salutation, title, first_name and last_name fields. | |
* It takes into account the locale format settings as well as ACL settings | |
* if supported. | |
*/ | |
public function _create_proper_name_field() | |
{ | |
global $locale, $app_list_strings; |
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 | |
function usage() | |
{ | |
print("usage: -i /path/to/instance -p /path/to/expanded/module -z /path/to/zipfile\n"); | |
exit(1); | |
} | |
$opts = getopt('i:p:z:'); |