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
install.mysql.host=127.0.0.1 | |
install.mysql.db=mage17_dev | |
install.mysql.user=root | |
install.mysql.password= | |
install.host=http://mage17.dev/ | |
install.timezone=Europe/Kiev | |
install.admin.login=admin | |
install.admin.password=qwer1234 | |
install.admin.email=vovikha@gmail.com |
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
INSERT INTO catalog_product_entity_text (`attribute_id`, `entity_id`, `entity_type_id`, `store_id`, `value`) | |
SELECT ev.`attribute_id`, ev.`entity_id`, ev.`entity_type_id`, ev.`store_id`, ev.`value` | |
FROM catalog_product_entity_varchar AS ev WHERE ev.`attribute_id` = ATTRIBUTE_ID; | |
UPDATE `eav_attribute` SET `backend_type`='text' WHERE `attribute_code`='ATTRIBUTE_CODE'; | |
DELETE FROM catalog_product_entity_varchar WHERE `attribute_id` = ATTRIBUTE_ID; |
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 Myspace_Fpcblock_Model_Observer | |
{ | |
public function prependTimeBlock($observer) | |
{ | |
/** @var $layout Mage_Core_Model_Layout */ | |
$layout = Mage::app()->getLayout(); | |
$block = $layout->createBlock( |
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
<?xml version="1.0" encoding="UTF-8"?> | |
<!-- | |
/** | |
* Magento | |
* | |
* NOTICE OF LICENSE | |
* | |
* This source file is subject to the Academic Free License (AFL 3.0) | |
* that is bundled with this package in the file LICENSE_AFL.txt. | |
* It is also available through the world-wide-web at this URL: |
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
<?xml version="1.0" encoding="UTF-8"?> | |
<project name="Application" default="build" basedir="../"> | |
<target name="build" depends="prepare,phpunit,phpmd,phpcpd,phpdoc,phpcb,phpdcd,phploc,phpcs"/> | |
<property name="applicationDir" value="${basedir}/source" /> | |
<property name="buildDir" value="${basedir}/build" /> | |
<target name="prepare"> | |
<mkdir dir="${buildDir}/logs" /> |
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
Mage::run($mageRunCode, $mageRunType); | |
//Insert code after Mage run | |
/** @var $profiler Zend_Db_Profiler */ | |
$profiler = Mage::getSingleton('core/resource')->getConnection()->getProfiler(); | |
$log = date('Y-m-d_H:i:s') . uniqid(); | |
Mage::log('Total queries: ' . count($profiler->getQueryProfiles()), null, $log); | |
Mage::log('Total sec: ' . $profiler->getTotalElapsedSecs(), null, $log); | |
foreach ($profiler->getQueryProfiles() as $query) { | |
/** @var $query Zend_Db_Profiler_Query */ | |
Mage::log($query->getElapsedSecs() . "\n" .$query->getQuery() . "\n" . print_r($query->getQueryParams(), 1), null, $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
- Code 100% Rules compliance in sonar | |
- Registered in Module Repository (according to the rules) |
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 | |
// file location dev/bootstrap.php | |
require_once dirname(__FILE__) . '/../app/Mage.php'; | |
error_reporting(E_ALL); | |
ini_set('display_errors', '1'); | |
umask(0); | |
Mage::app()->setCurrentStore(Mage_Core_Model_App::ADMIN_STORE_ID); |
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
<?xml version="1.0" encoding="UTF-8"?> | |
<project name="Build lasenza application" default="default"> | |
<property file="build.properties" /> | |
<property name="application.dir" value="${project.basedir}/.." /> | |
<property name="build.dir" value="${project.basedir}/build" /> | |
<target name="default"> | |
<input propertyName="input.db.user" message="Input DB user" defaultValue="root" /> | |
<input propertyName="input.db.host" message="Input DB host" defaultValue="localhost" /> |
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 | |
use Symfony\Component\Console\Input\ArrayInput; | |
use Symfony\Component\Console\Output\ConsoleOutput; | |
use Symfony\Bundle\FrameworkBundle\Console\Application; | |
use Behat\BehatBundle\Command\BehatCommand; | |
class BehatTest extends KernelAwareTest | |
{ | |
/** |
OlderNewer