Overview

Packages

  • application
    • commands
    • components
      • actions
      • filters
      • leftWidget
      • permissions
      • sortableWidget
      • util
      • webupdater
      • x2flow
        • actions
        • triggers
      • X2GridView
      • X2Settings
    • controllers
    • models
      • embedded
    • modules
      • accounts
        • controllers
        • models
      • actions
        • controllers
        • models
      • calendar
        • controllers
        • models
      • charts
        • models
      • contacts
        • controllers
        • models
      • docs
        • components
        • controllers
        • models
      • groups
        • controllers
        • models
      • marketing
        • components
        • controllers
        • models
      • media
        • controllers
        • models
      • mobile
        • components
      • opportunities
        • controllers
        • models
      • products
        • controllers
        • models
      • quotes
        • controllers
        • models
      • services
        • controllers
        • models
      • template
        • models
      • users
        • controllers
        • models
      • workflow
        • controllers
        • models
      • x2Leads
        • controllers
        • models
  • None
  • system
    • base
    • caching
    • console
    • db
      • ar
      • schema
    • validators
    • web
      • actions
      • auth
      • helpers
      • widgets
        • captcha
        • pagers
  • zii
    • widgets
      • grid

Classes

  • ActionsWidget
  • CallsWidget
  • ChartWidget
  • CommentsWidget
  • EmailsWidget
  • EventsWidget
  • InlineRelationshipsWidget
  • InlineTagsWidget
  • LoggedTimeWidget
  • PublisherWidget
  • QuotesWidget
  • SortableWidget
  • TransactionalViewWidget
  • TwitterFeedWidget
  • WebActivityWidget
  • WorkflowStageDetailsWidget
  • Overview
  • Package
  • Class
  • Tree

Class TwitterFeedWidget

Class for displaying contact twitter feeds

CComponent
Extended by CBaseController
Extended by CWidget
Extended by X2Widget
Extended by SortableWidget
Extended by TwitterFeedWidget
Package: application\components\sortableWidget
Located at x2engine/protected/components/sortableWidget/recordViewWidgets/TwitterFeedWidget.php
Methods summary
public static
# getJSONPropertiesStructure( )

Returns

array the property _JSONPropertiesStructure

Overrides

SortableWidget::getJSONPropertiesStructure()
public
# getModelTwitterAliases( )
public
# renderTwitterLogo( )
public
# renderScreenNameSelector( )
public
# getPackages( )

overrides parent method. Adds JS file necessary to run the setup script.

overrides parent method. Adds JS file necessary to run the setup script.

Overrides

SortableWidget::getPackages()
public array
# getViewFileParams( )

Magic getter. Returns an array of parameters which should be passed to the view file associated with this
widget.

Magic getter. Returns an array of parameters which should be passed to the view file associated with this widget.

Returns

array
The value stored in $_viewFileParams

Overrides

SortableWidget::getViewFileParams()
public string
# getLastTweetId( )

Returns

string
id of last tweet in data provider
public string
# getCacheKey( )

Returns

string
tweet cache key
public
# run( )

Render the widget container view

Render the widget container view

Overrides

SortableWidget::run()
public
# getTwitterCredentials( )
public
# renderTimestamp( array $tweet )

Formats date accoring to Twitter display guidelines

Formats date accoring to Twitter display guidelines

public
# replaceTextEntities( array & $tweet )

Replace Twitter entities in tweet text with formatted versions

Replace Twitter entities in tweet text with formatted versions

public
# remainingRequests( string $resourceName, null|integer $value = null )

Parameters

$resourceName
string
$resourceName name of the api-fetched resource (e.g. /statuses/user_timeline)
$value
null|integer
$value If not null, will be used to update the remaining requests count
public
# requestTweets( mixed $append = false )
public
# getTweetDataProvider( )
public
# getTimeline( )
protected
# getJSSortableWidgetParams( )

Overrides

SortableWidget::getJSSortableWidgetParams()
Methods inherited from SortableWidget
addError(), addPackage(), createSortableWidget(), deleteSortableWidget(), getCreatableWidgetOptions(), getCss(), getJSInstanceName(), getJSONProperties(), getJSONProperty(), getMinimized(), getParentType(), getPathAlias(), getSettingsMenuContent(), getSettingsMenuContentDialogs(), getSettingsMenuContentEntries(), getSetupScript(), getSharedCss(), getSharedCssFileNames(), getSharedViewFile(), getTranslations(), getWidgetContents(), getWidgetKey(), getWidgetLabel(), getWidgetProperties(), getWidgetProperty(), getWidgetSubtypeOptions(), getWidgetSubtypes(), hasError(), init(), instantiateWidget(), parseWidgetLayoutKey(), registerCss(), registerSharedCss(), renderCloseButton(), renderErrors(), renderMinimizeButton(), renderSettingsMenu(), renderWidget(), renderWidgetContents(), renderWidgetLabel(), setJSONProperties(), setMinimized(), setPackages(), setSharedViewFile(), setSortOrder(), setWidgetProperties(), setWidgetProperty(), subtypeIsValid()
Methods inherited from X2Widget
__construct(), ajaxRender(), behaviors(), getModule(), renderFile(), setModule()
Methods inherited from CWidget
actions(), getController(), getId(), getOwner(), getViewFile(), getViewPath(), render(), setId()
Methods inherited from CBaseController
beginCache(), beginClip(), beginContent(), beginWidget(), createWidget(), endCache(), endClip(), endContent(), endWidget(), renderInternal(), widget()
Methods inherited from CComponent
__call(), __get(), __isset(), __set(), __unset(), asa(), attachBehavior(), attachBehaviors(), attachEventHandler(), canGetProperty(), canSetProperty(), detachBehavior(), detachBehaviors(), detachEventHandler(), disableBehavior(), disableBehaviors(), enableBehavior(), enableBehaviors(), evaluateExpression(), getEventHandlers(), hasEvent(), hasEventHandler(), hasProperty(), raiseEvent()
Constants inherited from SortableWidget
PROFILE_WIDGET_PATH_ALIAS, RECORD_VIEW_WIDGET_PATH_ALIAS
Properties summary
public string $viewFile '_twitterFeedWidget'
#

The name of the view file containing the widget contents

The name of the view file containing the widget contents

public mixed $model
#
public string $sortableWidgetJSClass 'TwitterFeedWidget'
#

JS class which is used to manage the front-end behavior of this widget. This is
the class which gets instantiated by the setup script.

JS class which is used to manage the front-end behavior of this widget. This is the class which gets instantiated by the setup script.

public string $template '<div class="submenu-title-bar widget-title-bar">{twitterLogo}{widgetLabel}{screenNameSelector}{closeButton}{minimizeButton}</div>{widgetContents}'
#

A mixture of html and attributes inside curly braces. This gets used by renderWidget to render widget elements specified in child classes. As with X2GridView, each attribute inside curly braces should have a corresponding method called render<attribute_name>.

A mixture of html and attributes inside curly braces. This gets used by renderWidget to render widget elements specified in child classes. As with X2GridView, each attribute inside curly braces should have a corresponding method called render<attribute_name>.

Properties inherited from SortableWidget
$_JSSortableWidgetParams, $_css, $_packages, $_settingsFormFields, $_setupScript, $_sharedCss, $_sharedCssFileNames, $_sharedViewFile, $_translations, $_viewFileParams, $canBeCreated, $canBeDeleted, $containerClass, $createByDefault, $defaultTitle, $info, $isAjaxRequest, $profile, $relabelingEnabled, $widgetManager, $widgetType, $widgetUID
Properties inherited from X2Widget
$_module
Properties inherited from CWidget
$actionPrefix, $skin
Magic properties inherited from X2Widget
$module
Magic properties inherited from CWidget
$controller, $id, $owner, $viewPath
X2CRM Documentation API documentation generated by ApiGen 2.8.0