Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- class My_Extension_Model_Catalog_Product extends Mage_Core_Catalog_Product {
- public function getSomeValue() {
- if (!$x = $this->getX() || !$y = $this->getY()) {
- return null;
- }
- return ($x * $y);
- }
- }
Add Comment
Please, Sign In to add comment