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
Use VHost-PHP5.4 localhost.com * 80 localhost.com |
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
FROM amacgregor/base | |
MAINTAINER Allan MacGregor <[email protected]> | |
RUN mkdir -p /srv/www/ | |
COPY config/vhosts/ /etc/apache2/sites-available | |
RUN a2ensite localhost.com.conf |
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 Mage_Adminhtml_Block_Catalog_Product_Grid extends Mage_Adminhtml_Block_Widget_Grid | |
{ | |
// echo $_product->getResource()->getAttribute('attribute name')->getFrontend()->getValue($_product) | |
public function __construct() | |
{ |
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 NotificationManager { | |
public function sendNotification(NotificationInterface $notification, $data) | |
{ | |
$notification->setData($data); | |
$notification->sendNotification(); | |
} | |
} |
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 NotificationManager { | |
public function sendNotification($type = '', $data) | |
{ | |
switch($type){ | |
case "email": | |
$notification = new EmailAdapter(); | |
break; |
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 | |
interface NotificationInterface { | |
public function setData($data); | |
public function sendNotification(); | |
} | |
class TwitterAdapter implements NotificationInterface | |
{ | |
protected $_data; |
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 | |
interface NotificationInterface { | |
public function setData($data); | |
public function sendNotification(); | |
} |
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 NotificationManager { | |
public function sendNotification($type = '', $data) | |
{ | |
switch($type){ | |
case "email": | |
$notification = new EmailService(); | |
$notification->setTo($data['to']); |
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
/** | |
* Retrieve Customer instance | |
* | |
* @return \Magento\Customer\Api\Data\CustomerInterface | |
*/ | |
public function getCustomer() | |
{ | |
if (is_null($this->_customer)) { | |
$params = $this->urlDecoder->decode($this->_getRequest()->getParam('data')); |
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 | |
/** | |
* @copyright Copyright (c) 2014 X.commerce, Inc. (http://www.magentocommerce.com) | |
*/ | |
namespace Magento\Wishlist\Helper; | |
class Rss extends \Magento\Wishlist\Helper\Data | |
{ | |
/** |