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 | |
$mod_strings['LBL_TEXT_FIELD_EXAMPLE'] = 'Text Field Example'; | |
$mod_strings['LBL_DROPDOWN_FIELD_EXAMPLE'] = 'DropDown Field Example'; | |
$mod_strings['LBL_CHECKBOX_FIELD_EXAMPLE'] = 'Checkbox Field Example'; | |
$mod_strings['LBL_MULTISELECT_FIELD_EXAMPLE'] = 'Multi-Select Field Example'; | |
$mod_strings['LBL_DATE_FIELD_EXAMPLE'] = 'Date Field Example'; | |
$mod_strings['LBL_DATETIME_FIELD_EXAMPLE'] = 'DateTime Field Example'; | |
$mod_strings['LBL_ENCRYPT_FIELD_EXAMPLE'] = 'Encrypt Field Example'; |
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 | |
//require utils | |
require_once("include/utils.php"); | |
$check_path = "modules/Accounts/logic_hooks.php"; | |
//if the $check_path exists in custom, $path will be returned as "custom/{$check_path}", otherwise $check_path will be returned | |
$path = get_custom_file_if_exists("modules/Accounts/logic_hooks.php"); |
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 | |
$url = "http://{site_url}/service/v4/soap.php?wsdl"; | |
$username = "admin"; | |
$password = "password"; | |
//require NuSOAP | |
require_once("./nusoap/lib/nusoap.php"); | |
//retrieve WSDL |
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 | |
if (!defined('sugarEntry') || !sugarEntry) die('Not A Valid Entry Point'); | |
class Accounts_Save | |
{ | |
function updateAccountName(&$bean, $event, $arguments) | |
{ | |
$bean->name = "My New Account Name (" . time() . ")"; | |
} |
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 | |
$url = "http://{site_url}/service/v4/soap.php?wsdl"; | |
$username = "admin"; | |
$password = "password"; | |
//require NuSOAP | |
require_once("./nusoap/lib/nusoap.php"); | |
//retrieve WSDL |
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 | |
$url = "http://{site_url}/service/v4/rest.php"; | |
$username = "admin"; | |
$password = "password"; | |
//function to make cURL request | |
function call($method, $parameters, $url) | |
{ | |
ob_start(); |
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 | |
//require NuSOAP | |
require_once("./lib/nusoap.php"); | |
//retrieve WSDL | |
$client = new nusoap_client("http://{site_url}/service/v4/soap.php?wsdl", 'wsdl'); |
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 | |
$url = "http://{site_url}/service/v4/rest.php"; | |
$username = "admin"; | |
$password = "password"; | |
//function to make cURL request | |
function call($method, $parameters, $url) | |
{ | |
ob_start(); |
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 | |
$url = "http://{site_url}/service/v4/soap.php?wsdl"; | |
$username = "admin"; | |
$password = "password"; | |
//require NuSOAP | |
require_once("./nusoap/lib/nusoap.php"); | |
//retrieve WSDL |