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 file is upgrade safe | |
// location: custom/modules/Contacts/views/view.detail.php | |
require_once('modules/Contacts/views/view.detail.php'); | |
class CustomContactsViewDetail extends ContactsViewDetail { | |
/** | |
* @see SugarView::display() |
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 file is non-upgrade safe | |
// location: custom/modules/Contacts/views/view.detail.php | |
require_once('include/MVC/View/views/view.detail.php'); | |
class ContactsViewDetail extends ViewDetail { | |
/** | |
* @see SugarView::display() |
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 | |
/** | |
* Custom Controller for LeadRouting Module to provide access | |
*/ | |
class Customsgr_LeadRoutingController extends SugarController | |
{ | |
/** | |
* Overwrite the preProcess() method to determin if access can be granted to this module | |
* | |
* @return null; |
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 | |
class CustomOpportunitiesViewDetail extends OpportunitesViewDetail { | |
/** | |
* Overwrite the code to display the subpanels | |
*/ | |
protected function _displaySubPanels() | |
{} |
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 | |
// if there is a default ViewDetail Class for that module | |
require_once('modules/Opportunities/views/view.detail.php'); | |
class CustomOpportunitiesViewDetail extends OpportunitiesViewDetail | |
{} | |
// if there is not a default ViewDetail Class | |
require_once('include/MVC/View/views/view.detail.php'); |
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 | |
/** | |
* Make the primary address postalcode required when the status is "qualified" | |
* and the region_c equals to "Europe", "Middle East", "Africa" | |
* | |
*/ | |
$dependencies['Leads']['primary_address_postalcode'] = array( | |
'hooks' => array("edit"), // this is when you want it to fire, since it's only on edit view we just have edit | |
'trigger' => 'true', // to fire when fields change | |
'triggerFields' => array('status', 'region_c'), // which fields to fire on when they change |
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 | |
$subMock = $this->getMock("\\Sugar\\Data\\Subscription", array('isAddonValid')); | |
$subMock->expects($this->once()) | |
->method('isAddonValid') | |
->with($this->equalTo('mobileservertest1')) | |
->will($this->returnValue(true)); | |
$subMock->expects($this->once()) | |
->method('isAddonValid') | |
->with($this->equalTo('mobileclienttest1')) |
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
Backup::Model.new(:storage_backup, 'Storage Backup') do | |
sync_with S3 do |s3| | |
s3.access_key_id = "access_key" | |
s3.secret_access_key = "secret_access_key" | |
s3.bucket = "bd_backup" | |
s3.path = "/macstorage" | |
s3.mirror = true | |
s3.additional_options = ['--exclude=".Spotlight-V100|.DS_Store|.fseventsd|.TemporaryItems|Movies|iMovie"'] |
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
> git checkout master | |
> git subtree merge --prefix=library/Zend/Log --squash subtrees/zend_log |
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
> git subtree split --prefix=library/Zend/Log --annotate="[zend_log] " --rejoin -b subtrees/zend_log |