PRADO Component Framework for PHP 5
  • Home
  • About
  • Testimonials
  • Demos
  • Download
  • Documentation
  • Forum
  • Development
  • Tutorials
  • Class Docs
  • API Manual
  • Wiki

Packages

  • None
  • System
    • Caching
    • Collections
    • Data
      • ActiveRecord
        • Relations
        • Scaffold
          • InputBuilder
      • Commom
        • Sqlite
      • Common
        • Mssql
        • Mysql
        • Oracle
        • Pgsql
        • Sqlite
      • DataGateway
      • SqlMap
        • Configuration
        • Statements
    • Exceptions
    • I18N
    • IO
    • Security
    • Util
    • Web
      • Javascripts
      • Services
      • UI
        • ActiveControls
        • WebControls
    • Xml
  • Wsat
    • pages
  • Overview
  • Package
  • Class
  • Tree
  • Deprecated
  • Todo

Class TFeedService

TFeedService class

TFeedService provides to end-users feed content.

TFeedService manages a set of feeds. The service parameter, referring to the ID of the feed, specifies which feed content to be provided to end-users.

To use TFeedService, configure it in application configuration as follows,

<service id="feed" class="System.Web.Services.TFeedService">
  <feed id="ch1" class="Path.To.FeedClass1" .../>
  <feed id="ch2" class="Path.To.FeedClass2" .../>
  <feed id="ch3" class="Path.To.FeedClass3" .../>
</service>

where each <feed> element specifies a feed identified by its "id" value (case-sensitive).

PHP configuration style:

array(
  'feed' => array(
   'ch1' => array(
      'class' => 'Path.To.FeedClass1',
      'properties' => array(
         ...
       ),
  ),
)

The class attribute indicates which PHP class will provide the actual feed content. Note, the class must implement IFeedContentProvider interface. Other initial properties for the feed class may also be specified in the corresponding <feed> element.

To retrieve the feed content identified by "ch2", use the URL /path/to/index.php?feed=ch2

TComponent
Extended by TApplicationComponent
Extended by TService implements IService
Extended by TFeedService
Package: System\Web\Services
Copyright: Copyright © 2005-2014 PradoSoft
License: http://www.pradosoft.com/license/
Author: Qiang Xue <qiang.xue@gmail.com>
Author: Knut Urdalen <knut.urdalen@gmail.com>
Author: Carl G. Mathisen <carlgmathisen@gmail.com>
Since: 3.1
Located at Web/Services/TFeedService.php
Methods summary
public
# init( mixed $config )

Initializes this module. This method is required by the IModule interface.

Initializes this module. This method is required by the IModule interface.

Parameters

$config
mixed
configuration for this module, can be null

Overrides

TService::init()
protected string
# determineRequestedFeedPath( )

Returns

string
the requested feed path
public
# run( )

Runs the service. This method is invoked by application automatically.

Runs the service. This method is invoked by application automatically.

Overrides

TService::run()
Methods inherited from TService
getEnabled(), getID(), setEnabled(), setID()
Methods inherited from TApplicationComponent
getApplication(), getRequest(), getResponse(), getService(), getSession(), getUser(), publishAsset(), publishFilePath()
Methods inherited from TComponent
__call(), __construct(), __destruct(), __get(), __isset(), __set(), __sleep(), __unset(), __wakeup(), addParsedObject(), asa(), attachBehavior(), attachBehaviors(), attachClassBehavior(), attachEventHandler(), canGetProperty(), canSetProperty(), clearBehaviors(), createdOnTemplate(), detachBehavior(), detachBehaviors(), detachClassBehavior(), detachEventHandler(), disableBehavior(), disableBehaviors(), enableBehavior(), enableBehaviors(), evaluateExpression(), evaluateStatements(), fxAttachClassBehavior(), fxDetachClassBehavior(), getAutoGlobalListen(), getBehaviorsEnabled(), getClassHierarchy(), getEventHandlers(), getListeningToGlobalEvents(), getSubProperty(), hasEvent(), hasEventHandler(), hasProperty(), isa(), listen(), raiseEvent(), setSubProperty(), unlisten()
Constants inherited from TComponent
GLOBAL_RAISE_EVENT_LISTENER
Terms of Service | Contact Us
PRADO v3.2.4 API Manual API documentation generated by ApiGen 2.8.0
Copyright © 2006-2014 by the PRADO Group.
Powered by PRADO