コード例 #1
0
 /**
  * @magentoDataFixture Mage/Customer/_files/customer.php
  */
 public function testAddAuthLinkLogOut()
 {
     Mage::getSingleton('Mage_Customer_Model_Session')->login('*****@*****.**', 'password');
     $this->_block->addAuthLink('links', 1);
     $links = $this->_links->getLinks();
     $this->assertEquals('Log Out', $links[1]->getLabel());
 }
コード例 #2
0
ファイル: Links.php プロジェクト: buttasg/cowgirlk
 protected function _renderBlock()
 {
     $template = $this->_placeholder->getAttribute('template');
     $links = new Mage_Page_Block_Template_Links();
     $links->setTemplate($template);
     $links->addLink(Mage::helper('awmobile')->__('Search'), '#', Mage::helper('awmobile')->__('Search'), false, array(), 45, '', 'class="button grey search" onclick="showSearchForm(1); return false;"');
     $links->addLink($this->getCartButtonText(), '#', $this->getCartButtonText(), false, array(), 50, 'id="gotocart-button-container"', 'class="button red right" onclick="goToCart(); return false;"');
     $links->setLayout(Mage::app()->getLayout());
     return $links->toHtml();
 }
コード例 #3
0
 public function addLinkBlock($blockName)
 {
     return parent::addLinkBlock($blockName);
 }
コード例 #4
0
ファイル: Login.php プロジェクト: jokusafet/MagentoSource
 public function __construct()
 {
     parent::__construct();
     $this->_facebook = new Facebook_Facebook(array('appId' => Mage::helper('facebooklogin')->getAppID(), 'secret' => Mage::helper('facebooklogin')->getAppSecret()));
 }