View gist:816866
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
<input ... width="6" maxlength="20" /> |
View gist:825939
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
if ($bean->fetched_row['my_field'] !== $bean->my_field) { | |
// Do custom logic | |
} |
View gist:825943
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
if (empty($bean->fetched_row['id']) { | |
// Do custom logic for only a newly created record | |
} |
View gist:832050
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 | |
require_once('modules/SugarFeed/feedLogicBase.php'); | |
class LeadFeed extends FeedLogicBase | |
{ | |
public $module = 'Leads'; | |
public function pushFeed($bean, $event, $arguments) | |
{ |
View gist:832077
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 | |
require_once('modules/SugarFeed/feedLogicBase.php'); | |
class NoteFeed extends FeedLogicBase | |
{ | |
public $module = 'notes'; | |
public function pushFeed($bean, $event, $arguments) | |
{ |
View gist:838717
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
$xml .= " <$schemaPrefix:import namespace=\"" . $ns . "\" schemaLocation=\"http://schemas.xmlsoap.org/soap/encoding/\"/>\n"; |
View gist:838719
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
$xml .= " <$schemaPrefix:import namespace=\"" . $ns . "\" schemaLocation=\"" . $ns . "\"/>\n"; |
View gist:841201
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 | |
$account = new Account(); | |
$account->retrieve($_REQUEST['record']); | |
$contacts = $account->get_linked_beans('contacts','Contact'); | |
foreach ( $contacts as $contact ) { | |
echo "{$contact->name}\n" | |
} |
View gist:842954
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 | |
require_once('include/SugarPHPMailer.php'); | |
$emailObj = new Email(); | |
$defaults = $emailObj->getSystemDefaultEmail(); | |
$mail = new SugarPHPMailer(); | |
$mail->setMailerForSystem(); | |
$mail->From = $defaults['email']; |
View gist:843960
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 | |
$installdefs = array( | |
'pre_execute'=>array( | |
0 => '<basepath>/pre_install_actions.php', | |
), | |
'post_execute'=>array( | |
0 => '<basepath>/post_install_actions.php', | |
), | |
); |
OlderNewer