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 | |
namespace Clever\BlogBundle\Entity; | |
use Doctrine\Common\Util; | |
abstract class AbstractEntity | |
{ | |
public function __construct($data = 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
# Misc | |
/.buildpath | |
/.project | |
/nbproject | |
/catalog.xml | |
/sitemap.xml | |
/.settings | |
/.idea | |
/staging | |
/.modman |
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 | |
/** | |
* @category Bubble | |
* @package Bubble_DynamicCategory | |
* @version 1.0.1 | |
* @copyright Copyright (c) 2014 BubbleShop (http://www.bubbleshop.net) | |
*/ | |
class Bubble_DynamicCategory_Helper_Data extends Mage_Core_Helper_Abstract | |
{ | |
public function getDynamicProductIds(Varien_Object $category) |
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 (Mage::helper('catalog/product_flat')->isEnabled()) { | |
Mage::getSingleton('index/indexer') | |
->getProcessByCode(Mage_Catalog_Helper_Product_Flat::CATALOG_FLAT_PROCESS_CODE) | |
->changeStatus(Mage_Index_Model_Process::STATUS_REQUIRE_REINDEX); | |
} |
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 | |
// Reindex category urls | |
if (Mage::helper('core')->isModuleEnabled('Enterprise_Mview')) { | |
$client = Mage::getModel('enterprise_mview/client') | |
->init('enterprise_url_rewrite_category') | |
->execute('enterprise_catalog/index_action_url_rewrite_category_refresh'); | |
} |
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
nginx/ | |
!nginx/.gitkeep | |
!nginx/logs/.gitkeep | |
src/ | |
tmp/ |
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
[alias] | |
ci = commit | |
co = checkout | |
st = status | |
br = branch | |
lg = log -10 --graph --pretty=tformat:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%an %cr)%Creset' --abbrev-commit --date=relative | |
files = diff-tree --no-commit-id --name-only -r |
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 | |
$installer = $this; | |
$installer->startSetup(); | |
$installer->addAttribute('customer', 'civility', array( | |
'label' => 'Civility', | |
'visible' => true, | |
'required' => false, | |
'type' => 'int', | |
'input' => 'select', | |
'user_defined' => '1', |
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 | |
/** @var $collection Mage_Catalog_Model_Resource_Category_Collection */ | |
$collection = Mage::getModel('catalog/category', array('disable_flat' => true))->getCollection(); | |
// ... custom stuff |
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 | |
// app/code/local/Namespace/Module/Model/Indexer/Group.php | |
class Namespace_Module_Model_Indexer_Group extends Bubble_Launcher_Model_Indexer_Abstract | |
{ | |
protected function _buildIndexData() | |
{ | |
$data = array(); | |
$collection = Mage::getModel('customer/group')->getCollection(); |
OlderNewer