CakePHP
  • Documentation
    • Book
    • API
    • Videos
    • Reporting Security Issues
    • Privacy Policy
    • Logos & Trademarks
  • Business Solutions
  • Swag
  • Road Trip
  • Team
  • Community
    • Community
    • Get Involved
    • Issues (GitHub)
    • Bakery
    • Featured Resources
    • Training
    • Meetups
    • My CakePHP
    • CakeFest
    • Newsletter
    • Linkedin
    • YouTube
    • Facebook
    • Twitter
    • Mastodon
    • Help & Support
    • Forum
    • Stack Overflow
    • Slack
    • Paid Support
CakePHP

C CakePHP 1.2 API

  • Overview
  • Tree
  • Deprecated
  • Version:
    • 1.2
      • 4.2
      • 4.1
      • 4.0
      • 3.9
      • 3.8
      • 3.7
      • 3.6
      • 3.5
      • 3.4
      • 3.3
      • 3.2
      • 3.1
      • 3.0
      • 2.10
      • 2.9
      • 2.8
      • 2.7
      • 2.6
      • 2.5
      • 2.4
      • 2.3
      • 2.2
      • 2.1
      • 2.0
      • 1.3
      • 1.2

Classes

  • AclBase
  • AclBehavior
  • AclComponent
  • AclNode
  • AclShell
  • Aco
  • AcoAction
  • AjaxHelper
  • ApcEngine
  • ApiShell
  • App
  • AppController
  • AppHelper
  • AppModel
  • Aro
  • AuthComponent
  • BakeShell
  • BehaviorCollection
  • Cache
  • CacheEngine
  • CacheHelper
  • CakeErrorController
  • CakeLog
  • CakeSchema
  • CakeSession
  • CakeSocket
  • ClassRegistry
  • Component
  • Configure
  • ConnectionManager
  • ConsoleShell
  • ContainableBehavior
  • Controller
  • ControllerTask
  • CookieComponent
  • DataSource
  • DbAcl
  • DbAclSchema
  • DbConfigTask
  • DboAdodb
  • DboDb2
  • DboFirebird
  • DboMssql
  • DboMysql
  • DboMysqlBase
  • DboMysqli
  • DboOdbc
  • DboOracle
  • DboPostgres
  • DboSource
  • DboSqlite
  • DboSybase
  • Debugger
  • EmailComponent
  • ErrorHandler
  • ExtractTask
  • File
  • FileEngine
  • Flay
  • Folder
  • FormHelper
  • Helper
  • HtmlHelper
  • HttpSocket
  • I18n
  • I18nModel
  • i18nSchema
  • I18nShell
  • Inflector
  • IniAcl
  • JavascriptHelper
  • JsHelper
  • JsHelperObject
  • L10n
  • MagicDb
  • MagicFileResource
  • MediaView
  • MemcacheEngine
  • Model
  • ModelBehavior
  • ModelTask
  • Multibyte
  • NumberHelper
  • Object
  • Overloadable
  • Overloadable2
  • PagesController
  • PaginatorHelper
  • Permission
  • PluginTask
  • ProjectTask
  • RequestHandlerComponent
  • Router
  • RssHelper
  • Sanitize
  • Scaffold
  • ScaffoldView
  • SchemaShell
  • Security
  • SecurityComponent
  • SessionComponent
  • SessionHelper
  • SessionsSchema
  • Set
  • Shell
  • String
  • TestSuiteShell
  • TestTask
  • TextHelper
  • ThemeView
  • TimeHelper
  • TranslateBehavior
  • TreeBehavior
  • Validation
  • View
  • ViewTask
  • XcacheEngine
  • Xml
  • XmlElement
  • XmlHelper
  • XmlManager
  • XmlNode
  • XmlTextNode

Functions

  • __enclose
  • make_clean_css
  • mb_encode_mimeheader
  • mb_stripos
  • mb_stristr
  • mb_strlen
  • mb_strpos
  • mb_strrchr
  • mb_strrichr
  • mb_strripos
  • mb_strrpos
  • mb_strstr
  • mb_strtolower
  • mb_strtoupper
  • mb_substr
  • mb_substr_count
  • write_css_cache

Class RssHelper

XML Helper class for easy output of XML structures.

XmlHelper encloses all methods needed while working with XML documents.

AppHelper
Extended by XmlHelper
Extended by RssHelper
Package: cake\cake\libs\view\helpers
Copyright: Copyright 2005-2012, Cake Software Foundation, Inc. (http://cakefoundation.org)
License: The MIT License
Location: view/helpers/rss.php

Properties summary

  • $action public
    string
    Current action.
  • $base public
    string
    Base URL
  • $data public
    array
    POSTed model data
  • $field public
    string
    Name of the current field
  • $helpers public
    array
    Helpers used by RSS Helper
  • $here public
    string
    URL to current action.
  • $model public
    string
    Name of the current model
  • $params public
    array
    Parameter array.
  • $version public
    string
    Default spec version of generated RSS

Inherited Properties

  • Xml, XmlElement, encoding

Method Summary

  • channel() public
    Returns an RSS element
  • document() public
    Returns an RSS document wrapped in tags
  • item() public
    Converts an array into an element and its contents
  • items() public

    Transforms an array of data using an optional callback, and maps it to a set of tags

  • time() public
    Converts a time in any format to an RSS time

Method Detail

channel() public ¶

channel( array $attrib = array() , mixed $elements = array() , mixed $content = null )

Returns an RSS element

Parameters
array $attrib optional array()
tag attributes
mixed $elements optional array()
Named array elements which are converted to tags
mixed $content optional null
Content ('s belonging to this channel
Returns
string
An RSS

document() public ¶

document( array $attrib = array() , $content = null )

Returns an RSS document wrapped in tags

Parameters
array $attrib optional array()
tag attributes
$content optional null
Returns
string
An RSS document

item() public ¶

item( array $att = array() , array $elements = array() )

Converts an array into an element and its contents

Parameters
array $att optional array()
$attrib The attributes of the element
array $elements optional array()
The list of elements contained in this
Returns
string
An RSS element

items() public ¶

items( array $items , mixed $callback = null )

Transforms an array of data using an optional callback, and maps it to a set of tags

Parameters
array $items
The list of items to be mapped
mixed $callback optional null

A string function name, or array containing an object and a string method name

Returns
string
A set of RSS elements

time() public ¶

time( mixed $time )

Converts a time in any format to an RSS time

Parameters
mixed $time
Returns
string
An RSS-formatted timestamp
See
TimeHelper::toRSS

Methods inherited from XmlHelper

__construct() public ¶

__construct( )

Constructor

addNs() public deprecated ¶

addNs( string $name , string $url = null )

Adds a namespace to any documents generated

Deprecated
Parameters
string $name
The namespace name
string $url optional null
The namespace URI; can be empty if in the default namespace map
Returns
boolean

False if no URL is specified, and the namespace does not exist default namespace map, otherwise true


See
Xml::addNs()

closeElem() public ¶

closeElem( )

Create closing tag for current element

Returns
string

elem() public ¶

elem( string $name , array $attrib = array() , mixed $content = null , boolean $endTag = true )

Generates an XML element

Parameters
string $name
The name of the XML element
array $attrib optional array()
The attributes of the XML element
mixed $content optional null
XML element content
boolean $endTag optional true
Whether the end tag of the element should be printed
Returns
string
XML

header() public ¶

header( array $attrib = array() )

Returns an XML document header

Parameters
array $attrib optional array()
Header tag attributes
Returns
string
XML header

removeNs() public deprecated ¶

removeNs( string $name )

Removes a namespace added in addNs()

Deprecated
Parameters
string $name
The namespace name or URI
See
Xml::removeNs()

serialize() public ¶

serialize( mixed $data , array $options = array() )

Serializes a model resultset into XML

Parameters
mixed $data
The content to be converted to XML
array $options optional array()

The data formatting options. For a list of valid options, see XmlNode::__construct().

Returns
string
A copy of $data in XML format
See
XmlNode

Properties detail

$action ¶

public string

Current action.

null

$base ¶

public string

Base URL

null

$data ¶

public array

POSTed model data

null

$field ¶

public string

Name of the current field

null

$helpers ¶

public array

Helpers used by RSS Helper

array('Time')

$here ¶

public string

URL to current action.

null

$model ¶

public string

Name of the current model

null

$params ¶

public array

Parameter array.

array()

$version ¶

public string

Default spec version of generated RSS

'2.0'
OpenHub
Rackspace
Rackspace
  • Business Solutions
  • Showcase
  • Documentation
  • Book
  • API
  • Videos
  • Reporting Security Issues
  • Privacy Policy
  • Logos & Trademarks
  • Community
  • Get Involved
  • Issues (GitHub)
  • Bakery
  • Featured Resources
  • Training
  • Meetups
  • My CakePHP
  • CakeFest
  • Newsletter
  • Linkedin
  • YouTube
  • Facebook
  • Twitter
  • Mastodon
  • Help & Support
  • Forum
  • Stack Overflow
  • Slack
  • Paid Support

Generated using CakePHP API Docs