I hereby claim:
- I am sandermangel on github.
- I am sandermangel (https://keybase.io/sandermangel) on keybase.
- I have a public key whose fingerprint is 4862 4611 E7F7 7585 0740 15D9 8680 011E 9A87 C05A
To claim this, I am signing this object:
$image = Mage::getResourceModel('catalog/product')->getAttributeRawValue([product_id], 'thumbnail', [store_id]); | |
$product = new Mage_Catalog_Model_Product; | |
$imageUrl = (string)Mage::helper('catalog/image')->init($product, 'thumbnail', $image)->resize(100, 100); |
Verifying that +sandermangel is my blockchain ID. https://onename.com/sandermangel |
I hereby claim:
To claim this, I am signing this object:
<?xml version="1.0" encoding="UTF-8"?> | |
<ruleset name="PHP MD rules" | |
xmlns="http://pmd.sf.net/ruleset/1.0.0" | |
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" | |
xsi:schemaLocation="http://pmd.sf.net/ruleset/1.0.0 http://pmd.sf.net/ruleset_xml_schema.xsd" | |
xsi:noNamespaceSchemaLocation="http://pmd.sf.net/ruleset_xml_schema.xsd"> | |
<description/> | |
<rule ref="rulesets/codesize.xml"/> | |
<rule ref="rulesets/design.xml"> |
<?xml version="1.0" encoding="UTF-8"?> | |
<ruleset name="Magento 1 MD rules" | |
xmlns="http://pmd.sf.net/ruleset/1.0.0" | |
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" | |
xsi:schemaLocation="http://pmd.sf.net/ruleset/1.0.0 http://pmd.sf.net/ruleset_xml_schema.xsd" | |
xsi:noNamespaceSchemaLocation="http://pmd.sf.net/ruleset_xml_schema.xsd"> | |
<description/> | |
<rule ref="rulesets/codesize.xml/CyclomaticComplexity"> | |
<properties> |
parameters: | |
bin_dir: ./vendor/bin | |
git_dir: . | |
stop_on_failure: false | |
hide_circumvention_tip: true | |
ascii: | |
failed: ~ | |
succeeded: ~ | |
tasks: | |
phpmd: |
<?php | |
/** | |
* Updated price.phtml without WEEE | |
* | |
* NOTICE OF LICENSE | |
* | |
* This source file is subject to the MIT License | |
* It is available through the world-wide-web at this URL: | |
* http://opensource.org/licenses/mit-license.php | |
* |
$collection = Mage::getModel('catalog/product')->getCollection() | |
->addAttributeToSelect('name'); | |
foreach ($collectio as $product) | |
{ | |
$product->setName("Here goes the name"); | |
$product->getResource()->saveAttribute($product, 'name'); | |
} |