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 | |
trait Memoize | |
{ | |
/** | |
* @var array [method][parameters] | |
*/ | |
private $memoizedResults = []; | |
protected function memoizedCall($methodName, $args) | |
{ |
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 | |
/** | |
* Generate modman file from Magento Connect 2.0 package.xml | |
* | |
* Usage: | |
* | |
* php package2modman.php path/to/package.xml > path/to/modman | |
* | |
*/ | |
require_once(__DIR__ . "/../www/app/Mage.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 | |
// PoC for collection pipeleines with improved memory footprint | |
// requires php 5.5 >= 5.5.24 | |
// or php 5.6 >= 5.6.8 | |
// or php 7 | |
// | |
// see: https://bugs.php.net/bug.php?id=69221 | |
class Collection extends \IteratorIterator { |
OlderNewer