Overview

Packages

  • currencysymbol
  • MAbout
  • Mage
    • Admin
    • Adminhtml
    • AdminNotification
    • Api
    • Api2
    • Authorizenet
    • Backup
    • Bundle
    • Captcha
    • Catalog
    • CatalogIndex
    • CatalogInventory
    • CatalogRule
    • CatalogSearch
    • Centinel
    • Checkout
    • Cms
    • Compiler
    • Connect
    • Contacts
    • Core
    • Cron
    • CurrencySymbol
    • Customer
    • Dataflow
    • Directory
    • DirtectPost
    • Downloadable
    • Eav
    • GiftMessage
    • GoogleAnalytics
    • GoogleBase
    • GoogleCheckout
    • ImportExport
    • Index
    • Install
    • Log
    • Media
    • Newsletter
    • Oauth
    • Page
    • PageCache
    • Paygate
    • Payment
    • Paypal
    • PaypalUk
    • Persistent
    • Poll
    • ProductAlert
    • Rating
    • Reports
    • Review
    • Rss
    • Rule
    • Sales
    • SalesRule
    • Sedfriend
    • Sendfriend
    • Shipping
    • Sitemap
    • Tag
    • Tax
    • Usa
    • Weee
    • Widget
    • Wishlist
    • XmlConnect
  • None
  • Phoenix
    • Moneybookers
  • PHP
  • Zend
    • Date
    • Mime
    • XmlRpc

Classes

  • Mage_Poll_Block_ActivePoll
  • Mage_Poll_Block_Poll
  • Mage_Poll_Helper_Data
  • Mage_Poll_Model_Mysql4_Poll
  • Mage_Poll_Model_Mysql4_Poll_Answer
  • Mage_Poll_Model_Mysql4_Poll_Answer_Collection
  • Mage_Poll_Model_Mysql4_Poll_Collection
  • Mage_Poll_Model_Mysql4_Poll_Vote
  • Mage_Poll_Model_Poll
  • Mage_Poll_Model_Poll_Answer
  • Mage_Poll_Model_Poll_Vote
  • Mage_Poll_Model_Resource_Poll
  • Mage_Poll_Model_Resource_Poll_Answer
  • Mage_Poll_Model_Resource_Poll_Answer_Collection
  • Mage_Poll_Model_Resource_Poll_Collection
  • Mage_Poll_Model_Resource_Poll_Vote
  • Mage_Poll_VoteController
  • Overview
  • Package
  • Class
  • Tree

Class Mage_Poll_Block_ActivePoll

Poll block

Varien_Object
Extended by Mage_Core_Block_Abstract
Extended by Mage_Core_Block_Template
Extended by Mage_Poll_Block_ActivePoll
Package: Mage\Poll
Copyright: Copyright (c) 2012 Magento Inc. (http://www.magentocommerce.com)
License: Open Software License (OSL 3.0)
Author: Magento Core Team <core@magentocommerce.com>
File: Poll.php
Located at code/core/Mage/Poll/Block/ActivePoll.php
Methods summary
public
# __construct( )
public Mage_Poll_Block_ActivePoll
# setPollId( integer $pollId )

Set current Poll Id

Set current Poll Id

Parameters

$pollId
integer
$pollId

Returns

Mage_Poll_Block_ActivePoll
public integer|null
# getPollId( )

Get current Poll Id

Get current Poll Id

Returns

integer|null
public array|null
# getVotedPollsIds( )

Retrieve already voted Poll Ids

Retrieve already voted Poll Ids

Returns

array|null
public array
# getActivePollsIds( )

Get Ids of all active Polls

Get Ids of all active Polls

Returns

array
public integer
# getPollToShow( )

Get Poll Id to show

Get Poll Id to show

Returns

integer
public array|boolean
# getPollData( integer $pollId )

Get Poll related data

Get Poll related data

Parameters

$pollId
integer
$pollId

Returns

array|boolean
public Mage_Poll_Block_ActivePoll
# setPollTemplate( string $template, string $type )

Add poll template

Add poll template

Parameters

$template
string
$template
$type
string
$type

Returns

Mage_Poll_Block_ActivePoll
protected string
# _toHtml( )

Render block HTML

Render block HTML

Returns

string

Overrides

Mage_Core_Block_Template::_toHtml()
public array
# getCacheKeyInfo( )

Get cache key informative items that must be preserved in cache placeholders for block to be rerendered by placeholder

Get cache key informative items that must be preserved in cache placeholders for block to be rerendered by placeholder

Returns

array

Overrides

Mage_Core_Block_Template::getCacheKeyInfo()
Methods inherited from Mage_Core_Block_Template
_construct(), _getAllowSymlinks(), assign(), fetchView(), getArea(), getBaseUrl(), getDirectOutput(), getJsUrl(), getObjectData(), getShowTemplateHints(), getTemplate(), getTemplateFile(), renderView(), setScriptPath(), setTemplate()
Methods inherited from Mage_Core_Block_Abstract
__(), _afterCacheUrl(), _afterToHtml(), _beforeCacheUrl(), _beforeChildToHtml(), _beforeToHtml(), _getChildHtml(), _getSidPlaceholder(), _getUrlModel(), _getUrlModelClass(), _loadCache(), _prepareLayout(), _saveCache(), addToChildGroup(), addToParentGroup(), append(), countChildren(), escapeHtml(), escapeUrl(), formatDate(), formatTime(), getAction(), getAnonSuffix(), getBlockAlias(), getBlockHtml(), getCacheKey(), getCacheLifetime(), getCacheTags(), getChild(), getChildChildHtml(), getChildData(), getChildGroup(), getChildHtml(), getHelper(), getIsAnonymous(), getLayout(), getMessagesBlock(), getModuleName(), getNameInLayout(), getParentBlock(), getRequest(), getSkinUrl(), getSortedChildBlocks(), getSortedChildren(), getUrl(), getUrlBase64(), getUrlEncoded(), helper(), insert(), jsQuoteEscape(), setAnonSuffix(), setAttribute(), setBlockAlias(), setChild(), setFrameTags(), setIsAnonymous(), setLayout(), setMessagesBlock(), setNameInLayout(), setParentBlock(), sortChildren(), stripTags(), toHtml(), unsetCallChild(), unsetChild(), unsetChildren()
Constants inherited from Mage_Core_Block_Template
XML_PATH_DEBUG_TEMPLATE_HINTS, XML_PATH_DEBUG_TEMPLATE_HINTS_BLOCKS, XML_PATH_TEMPLATE_ALLOW_SYMLINK
Constants inherited from Mage_Core_Block_Abstract
CACHE_GROUP
Properties summary
protected array $_templates
#

Poll templates

Poll templates

protected integer $_pollId null
#

Current Poll Id

Current Poll Id

protected array|null $_votedIds null
#

Already voted by current visitor Poll Ids array

Already voted by current visitor Poll Ids array

protected Mage_Poll_Model_Poll $_pollModel
#

Poll model

Poll model

Properties inherited from Mage_Core_Block_Template
$_allowSymlinks, $_baseUrl, $_jsUrl, $_showTemplateHints, $_showTemplateHintsBlocks, $_template, $_viewDir, $_viewVars
Properties inherited from Mage_Core_Block_Abstract
$_alias, $_anonSuffix, $_childGroups, $_children, $_childrenHtmlCache, $_frameCloseTag, $_frameOpenTag, $_isAnonymous, $_layout, $_messagesBlock, $_nameInLayout, $_parent, $_parentBlock, $_request, $_sortInstructions, $_sortedChildren, $_urlModel
Magento 1.7.0.2 API documentation generated by ApiGen 2.8.0