_relatedBlocks[] = $blockId; return $this; } /** * Return identifiers of related blocks * * @return array */ public function getRelatedBlocks() { return $this->_relatedBlocks; } /** * Check whether authentication is required and prepare some template data * * @return string */ protected function _toHtml() { $method = Mage::getSingleton('checkout/session')->getQuote()->getPayment()->getMethodInstance(); if ($method->getIsCentinelValidationEnabled()) { $centinel = $method->getCentinelValidator(); if ($centinel && $centinel->shouldAuthenticate()) { $this->setAuthenticationStart(true); $this->setFrameUrl($centinel->getAuthenticationStartUrl()); return parent::_toHtml(); } } return parent::_toHtml(); } }