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
> git checkout subtrees/zend_log | |
> ls | |
Exception Factory.php Filter.php Formatter.php Writer | |
Exception.php Filter Formatter Logger.php Writer.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
> git checkout master | |
> git subtree add --prefix=library/Zend/Log --squash subtrees/zend_log | |
Added dir 'library/Zend/Log' |
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
> git checkout projects/zf2 | |
> git fetch zf2 | |
> git rebase zf2/master |
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
> git subtree split --prefix=library/Zend/Log --annotate="[zend_log] " --rejoin -b subtrees/zend_log |
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
> git checkout master | |
> git subtree merge --prefix=library/Zend/Log --squash subtrees/zend_log |
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
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 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 | |
$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 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 | |
/** | |
* 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 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 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 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 | |
class CustomOpportunitiesViewDetail extends OpportunitesViewDetail { | |
/** | |
* Overwrite the code to display the subpanels | |
*/ | |
protected function _displaySubPanels() | |
{} |