Class AtomHelper

Description

AtomHelperクラスはAtomの作成を手助けするヘルパーです。

Located in /atom.php (line 19)

XmlHelper
   |
   --AtomHelper
Variable Summary
array $_entry
array $_feed
Method Summary
string author ([mixed $content = array()], [array $attributes = array()])
string category ([array $attributes = array()])
string content ([string $content = null], [array $attributes = array()])
string contributor ([mixed $content = array()], [array $attributes = array()])
string currentUrl ()
string date ([integer $timestamp = null])
string email (string $content, [array $attributes = array()])
string endTag (string $name)
string entry ([string $content = null], [array $attributes = array()])
string feed ([string $content = null], [array $attributes = array()])
string generator (string $content, [array $attributes = array()])
string getEntry ([boolean $clean = true])
string getFeed ([boolean $clean = true])
string icon (mixed $url, [array $attributes = array()])
string id ([mixed $id = array()], [array $attributes = array()])
string link ([mixed $url = null], [array $attributes = array()])
string logo (mixed $url, [array $attributes = array()])
string name (string $content, [array $attributes = array()])
string personConstruct (mixed $name, [mixed $content = array()], [array $attributes = array()])
string published ([mixed $timestamp = null], [array $attributes = array()])
string rights (string $content, [array $attributes = array()])
string serialize (array $data)
void setEntry ()
void setFeed ()
string startTag (string $name, [array $attributes = array()])
string stylesheet ([string $url = null], [array $attributes = array()])
string subtitle (string $content, [array $attributes = array()])
string summary (string $content, [array $attributes = array()])
string tag ([string $name = null], [string $content = null], [array $attributes = array()], [string $namespace = false])
string textConstruct (string $name, string $content, [array $attributes = array()])
string title (string $content, [array $attributes = array()])
string updated ([mixed $timestamp = null], [array $attributes = array()])
string uri (mixed $url, [array $attributes = array()])
string url ([mixed $url = null], [boolean $full = false])
string _attributes ([ $attributes = array()], array $attribute)
void __call ( $name,  $arguments)
Variables
array $_entry = array() (line 28)

entry要素以下を一時的に溜めておくメンバー変数

array $_feed = array() (line 37)

feed要素以下を一時的に溜めておくメンバー変数

Methods
author (line 70)

author要素を生成します。(ja)

Generate author element.(en)

  1.  $atom->author(array(
  2.      'name' => 'Mark Pilgrim',
  3.      'uri' => 'http://example.org/',
  4.      'email' => 'f8dy@example.com'
  5.  ));
  6.  
  7.  $atom->author('
  8.      <name>Mark Pilgrim</name>
  9.      <uri>http://example.org/</uri>
  10.      <email>f8dy@example.com</email>
  11.  ');
  12.  
  13.  # 出力すると以下のようになります。
  14.  # <author>
  15.  #     <name>Mark Pilgrim</name>
  16.  #     <uri>http://example.org/</uri>
  17.  #     <email>f8dy@example.com</email>
  18.  # </author>

  • return: author要素(ja) author element(en)
  • access: public
string author ([mixed $content = array()], [array $attributes = array()])
  • mixed $content: author要素の内容。配列または文字列(ja) author element content. array or string(en)
  • array $attributes: author要素の属性(ja) The attributes of the author element(en)
category (line 85)

category要素を生成します。(ja)

Generate category element.(en)

  • return: category要素(ja) category element(en)
  • access: public
string category ([array $attributes = array()])
  • array $attributes: category要素の属性(ja) The attributes of the category element(en)
content (line 121)

content要素を生成します。(ja)

Generate content element.(en)

  1.  $atom->content(
  2.      '<p><i>[Update: The Atom draft is finished.]</i></p>',
  3.      array('type' => 'xhtml''xml:lang' => 'en''xml:base' => 'http://diveintomark.org/')
  4.  );
  5.  
  6.  # 出力すると以下のようになります。
  7.  # <content type="xhtml" xml:lang="en" xml:base="http://diveintomark.org/">
  8.  #    <div xmlns="http://www.w3.org/1999/xhtml">
  9.  #        <p><i>[Update: The Atom draft is finished.]</i></p>
  10.  #    </div>
  11.  # </content>

  • return: content要素(ja) content element(en)
  • access: public
string content ([string $content = null], [array $attributes = array()])
  • string $content: content要素の内容(ja) content element content(en)
  • array $attributes: content要素の属性(ja) The attributes of the content element(en)
contributor (line 176)

contributor要素を生成します。(ja)

Generate contributor element.(en)

  1.  $atom->contributor(array(
  2.      'name' => 'Sam Ruby'
  3.  ));
  4.  
  5.  $atom->contributor('
  6.      <name>Sam Ruby</name>
  7.  ');
  8.  
  9.  # 出力すると以下のようになります。
  10.  # <contributor>
  11.  #     <name>Sam Ruby</name>
  12.  # </contributor>

  • return: contributor要素(ja) contributor element(en)
  • access: public
string contributor ([mixed $content = array()], [array $attributes = array()])
  • mixed $content: contributor要素の内容(ja) contributor element content(en) 配列または文字列
  • array $attributes: contributor要素の属性(ja) The attributes of the contributor element(en)
currentUrl (line 194)

現在のURLを返します。(ja)

Returns the current URL.(en)

  1.  $atom->currentUrl();

  • return: 現在のURL(ja) current URL(en)
  • access: public
string currentUrl ()
date (line 218)

タイムスタンプをAtomの日付形式に変換します。

  1.  $atom->date(1071340202);
  2.  
  3.  # 出力すると以下のようになります。
  4.  # 2003-12-13T18:30:02+00:00

  • return: date-time形式(ja) date-time format(en)
  • access: public
string date ([integer $timestamp = null])
  • integer $timestamp: タイムスタンプ(ja) Timestamp(en)
email (line 247)

email要素を生成します。(ja)

Generate email element.(en)

  1.  $atom->email('f8dy@example.com');
  2.  
  3.  # 出力すると以下のようになります。
  4.  # <email>f8dy@example.com</email>

  • return: email要素(ja) email element(en)
  • access: public
string email (string $content, [array $attributes = array()])
  • string $content: email要素の内容(ja) email element content(en)
  • array $attributes: email要素の属性(ja) The attributes of the email element(en)
endTag (line 272)

終了タグを生成します。(ja)

Generate end tag.(en)

  1.  $atom->endTag('entry');
  2.  
  3.  $atom->endTag('feed');
  4.  
  5.  # 出力すると以下のようになります。
  6.  # </entry>
  7.  #
  8.  # </feed>

  • return: 終了タグ(ja) End tag(en)
  • access: public
string endTag (string $name)
  • string $name: 要素の名前(ja) The name of the end tag(en)
entry (line 295)

entry要素を生成します。(ja)

Generate entry element.(en)

  1.  $atom->entry('<title>Example</title>...');
  2.  
  3.  // atom::setEntryで溜めたものを吐き出します。
  4.  $atom->entry();

  • return: entry要素(ja) entry element(en)
  • access: public
string entry ([string $content = null], [array $attributes = array()])
  • string $content: entry要素の内容(ja) entry element content(en)
  • array $attributes: entry要素の属性(ja) The attributes of the entry element(en)
feed (line 320)

feed要素を生成します。(ja)

Generate feed element.(en)

  1.  $atom->feed('<title>Example</title>...');
  2.  
  3.  // atom::setFeedで溜めたものを吐き出します。
  4.  $atom->feed();

  • return: feed要素(ja) feed element(en)
  • access: public
string feed ([string $content = null], [array $attributes = array()])
  • string $content: feed要素の内容(ja) feed element content(en)
  • array $attributes: feed要素の属性(ja) The attributes of the feed element(en)
generator (line 355)

generator要素を生成します。(ja)

Generate generator element.(en)

  1.  $atom->generator('Example Toolkit'array('uri' => 'http://www.example.com/''version' => '1.0'));
  2.  
  3.  # 出力すると以下のようになります。
  4.  # <generator uri="http://www.example.com/" version="1.0">Example Toolkit</generator>

  • return: generator要素(ja) generator element(en)
  • access: public
string generator (string $content, [array $attributes = array()])
  • string $content: generator要素の内容(ja) generator element content(en)
  • array $attributes: generator要素の属性(ja) The attributes of the generator element(en)
getEntry (line 379)

このヘルパー内に溜められているentry要素以下を吐き出します。

  1.  $atom->getEntry();

string getEntry ([boolean $clean = true])
  • boolean $clean: 溜められているものを削除するか
getFeed (line 395)

このヘルパー内に溜められているfeed要素以下を吐き出します。

  1.  $atom->getFeed();

string getFeed ([boolean $clean = true])
  • boolean $clean: 溜められているものを削除するか
icon (line 416)

icon要素を生成します。(ja)

Generate icon element.(en)

  1.  $atom->icon('/favicon.ico');
  2.  
  3.  # 出力すると以下のようになります。
  4.  # <icon>http://example.com/favicon.ico</icon>

  • return: icon要素(ja) icon element(en)
  • access: public
string icon (mixed $url, [array $attributes = array()])
  • mixed $url: アイコンへのURL(ja) Icon URL(en)
  • array $attributes: icon要素の属性(ja) The attributes of the icon element(en)
id (line 445)

id要素を生成します。(ja)

Generate id element.(en)

  1.  $atom->id('tag:example.org,2003:3'array('#urn' => true));
  2.  
  3.  # 出力すると以下のようになります。
  4.  # <id>tag:example.org,2003:3</id>

  • return: id要素(ja) id element(en)
  • access: public
string id ([mixed $id = array()], [array $attributes = array()])
  • mixed $id: 識別子(ja) Identifier(en)
  • array $attributes: id要素の属性(ja) The attributes of the id element(en)
link (line 485)

link要素を生成します。(ja)

Generate link element.(en)

  1.  $atom->link(array('controller' => 'posts''action' => 'index'));
  2.  
  3.  $atom->link(nullarray('rel' => 'self'));
  4.  
  5.  $atom->link(
  6.      'http://example.org/audio/ph34r_my_podcast.mp3',
  7.      array('rel' => 'enclosure''type' => 'audio/mpeg''length' => 1337)
  8.  );
  9.  
  10.  # 出力すると以下のようになります。
  11.  # <link rel="alternate" href="http://example.com/posts" />
  12.  #
  13.  # <link rel="self" href="http://example.com/" />
  14.  #
  15.  # <link rel="enclosure" type="audio/mpeg" length="1337" href="http://example.org/audio/ph34r_my_podcast.mp3" />

  • return: link要素(ja) link element(en)
  • access: public
string link ([mixed $url = null], [array $attributes = array()])
  • mixed $url: URL リンク先へのURL
  • array $attributes: link要素の属性(ja) The attributes of the link element(en)
logo (line 528)

logo要素を生成します。(ja)

Generate logo element.(en)

  1.  $atom->logo('/img/logo.png');
  2.  
  3.  # 出力すると以下のようになります。
  4.  # <logo>http://example.com/img/logo.png</logo>

  • return: logo要素(ja) logo element(en)
  • access: public
string logo (mixed $url, [array $attributes = array()])
  • mixed $url: ロゴのURL(ja) Logo URL(en)
  • array $attributes: logo要素の属性(ja) The attributes of the logo element(en)
name (line 557)

name要素を生成します。(ja)

Generate name element.(en)

  1.  $atom->name('Mark Pilgrim');
  2.  
  3.  # 出力すると以下のようになります。
  4.  # <name>Mark Pilgrim</name>

  • return: name要素(ja) name element(en)
  • access: public
string name (string $content, [array $attributes = array()])
  • string $content: name要素の内容(ja) name element content(en)
  • array $attributes: name要素の属性(ja) The attributes of the name element(en)
personConstruct (line 582)

atomPersonConstructとして処理し任意の要素を生成します。(ja)

  1.  $atom->personConstruct('author',array(
  2.      'name' => 'Sam Ruby'
  3.  ));
  4.  
  5.  # 出力すると以下のようになります。
  6.  # <author>
  7.  #     <name>Sam Ruby</name>
  8.  # </author>

  • return: XMLの要素(ja) XML elements(en)
  • access: public
string personConstruct (mixed $name, [mixed $content = array()], [array $attributes = array()])
  • mixed $name: 要素の名前(ja) The name of the element(en)
  • mixed $content: 要素の内容 配列または文字列(ja) element content. array or string(en)
  • array $attributes: 要素の属性(ja) The attributes of the element(en)
published (line 617)

published要素を生成します。(ja)

Generate published element.(en)

  1.  $atom->published(1071318569);
  2.  
  3.  $atom->published('2003-12-13T08:29:29-04:00');
  4.  
  5.  # 出力すると以下のようになります。
  6.  # <published>2003-12-13T08:29:29-04:00</published>

  • return: published要素(ja) published element(en)
  • access: public
string published ([mixed $timestamp = null], [array $attributes = array()])
  • mixed $timestamp: published要素の内容。タイムスタンプまたはAtomの日付形式(ja) published element content. timestamp or Atom date format(en)
  • array $attributes: published要素の属性(ja) The attributes of the published element(en)
rights (line 638)

rights要素を生成します。(ja)

Generate rights element.(en)

  1.  $atom->rights('Copyright (c) 2003, Mark Pilgrim');
  2.  
  3.  # 出力すると以下のようになります。
  4.  # <rights type="text">Copyright (c) 2003, Mark Pilgrim</rights>

  • return: rights要素(ja) rights element(en)
  • access: public
string rights (string $content, [array $attributes = array()])
  • string $content: rights要素の内容(ja) rights element content(en)
  • array $attributes: rights要素の属性(ja) The attributes of the rights element(en)
serialize (line 726)

多次元配列をXMLに変形します。(ja)

The multidimensional array is transformed into XML.(en)

  1.  $atom->serialize(array(
  2.      array('header'),
  3.      array('stylesheet''/xsl/atom.xsl'array('charset' => 'UTF-8''type' => 'text/xsl')),
  4.      array('feed'array(
  5.          array('title''dive into mark'),
  6.          array('subtitle''A <em>lot</em> of effort went into making this effortless'array('type' => 'html')),
  7.          array('updated''2003-12-13T18:30:02Z'),
  8.          array('id''tag:example.org,2003:3'array('#urn' => true)),
  9.          array('link''/'array('type' => 'text/html')),
  10.          array('link'nullarray('rel' => 'self''type' => 'application/atom+xml')),
  11.          array('rights''Copyright (c) 2003, Mark Pilgrim'),
  12.          array('generator''Example Toolkit'array('uri' => 'http://www.example.com/''version' => '1.0')),
  13.          array('dc:description''A lot of effort went into making this effortless'),
  14.          '<dc:format>application/atom+xml</dc:format>',
  15.          '<dc:date>2003-12-13T18:30:02Z</dc:date>',
  16.          array('entry'array(
  17.              array('title''Atom draft-07 snapshot'),
  18.              array('link''http://example.org/2003/12/13/atom03'array('type' => 'text/html')),
  19.              array('link''http://example.org/audio/ph34r_my_podcast.mp3'array('rel' => 'enclosure''type' => 'audio/mpeg''length' => '1337')),
  20.              array('id''tag:example.org,2003:3.2397'array('#urn' => true)),
  21.              array('updated''2005-07-31T12:29:29Z'),
  22.              array('published'1071318569),
  23.              array('author'array('name' => 'John Doe''uri' => 'http://example.org/''email' => 'f8dy@example.com')),
  24.              array('contributor'array('name' => 'Sam Ruby')),
  25.              array('contributor'array('name' => 'Joe Gregorio')),
  26.              array('content''<p><i>[Update: The Atom draft is finished.]</i></p>'array('type' => 'xhtml''xml:lang' => 'en''xml:base' => 'http://diveintomark.org/'))
  27.          ))
  28.      ),
  29.          array('xmlns:dc' => 'http://purl.org/dc/elements/1.1/')
  30.      )
  31.  ));
  32.  
  33.  # 出力すると以下のようになります。
  34.  # <?xml version="1.0" encoding="UTF-8" ?>
  35.  # <?xml-stylesheet charset="UTF-8" type="text/xsl" href="http://example.com/xsl/atom.xsl" ?>
  36.  # <feed xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns="http://www.w3.org/2005/Atom" xml:lang="en" xml:base="http://example.com/atom">
  37.  #     <title type="text">dive into mark</title>
  38.  #     <subtitle type="html">A &lt;em&gt;lot&lt;/em&gt; of effort went into making this effortless</subtitle>
  39.  #     <updated>2003-12-13T18:30:02Z</updated>
  40.  #     <id>tag:example.org,2003:3</id>
  41.  #     <link type="text/html" rel="alternate" href="http://example.com/" />
  42.  #     <link rel="self" type="application/atom+xml" href="http://example.com/atom" />
  43.  #     <rights type="text">Copyright (c) 2003, Mark Pilgrim</rights>
  44.  #     <generator uri="http://www.example.com/" version="1.0">Example Toolkit</generator>
  45.  #     <dc:description>A lot of effort went into making this effortless</dc:description>
  46.  #     <dc:format>application/atom+xml</dc:format>
  47.  #     <dc:date>2003-12-13T18:30:02Z</dc:date>
  48.  #     <entry>
  49.  #         <title type="text">Atom draft-07 snapshot</title>
  50.  #         <link type="text/html" rel="alternate" href="http://example.org/2003/12/13/atom03" />
  51.  #         <link rel="enclosure" type="audio/mpeg" length="1337" href="http://example.org/audio/ph34r_my_podcast.mp3" />
  52.  #         <id>tag:example.org,2003:3.2397</id>
  53.  #         <updated>2005-07-31T12:29:29Z</updated>
  54.  #         <published>2003-12-13T12:29:29+00:00</published>
  55.  #         <author>
  56.  #             <name>John Doe</name>
  57.  #             <uri>http://example.org/</uri>
  58.  #             <email>f8dy@example.com</email>
  59.  #         </author>
  60.  #         <contributor>
  61.  #             <name>Sam Ruby</name>
  62.  #         </contributor>
  63.  #         <contributor>
  64.  #             <name>Joe Gregorio</name>
  65.  #         </contributor>
  66.  #         <content type="xhtml" xml:lang="en" xml:base="http://diveintomark.org/">
  67.  #             <div xmlns="http://www.w3.org/1999/xhtml">
  68.  #                 <p><i>[Update: The Atom draft is finished.]</i></p>
  69.  #             </div>
  70.  #         </content>
  71.  #     </entry>
  72.  # </feed>

  • return: XMLの要素(ja) XML elements(en)
  • access: public
string serialize (array $data)
  • array $data: 多次元配列(ja) Multidimensional array(en)
setEntry (line 768)

ヘルパー内にentry要素以下の要素を溜めます。

  1.  $atom->setEntry('title''Example Page');
  2.  
  3.  $atom->setEntry('link'array('controller' => 'posts''action' => 'index'));
  4.  
  5.  //以下のような書き方も可能です。
  6.  $atom->setEntryTitle('Example Page');
  7.  
  8.  $atom->setEntryLink(array('controller' => 'posts''action' => 'index'));

void setEntry ()
setFeed (line 792)

ヘルパー内にfeed要素以下の要素を溜めます。

  1.  $atom->setFeed('title''Example Feed');
  2.  
  3.  $atom->setFeed('link'array('controller' => 'posts''action' => 'index'));
  4.  
  5.  //以下のような書き方も可能です。
  6.  $atom->setFeedTitle('Example Feed');
  7.  
  8.  $atom->setFeedLink(array('controller' => 'posts''action' => 'index'));

void setFeed ()
startTag (line 819)

開始タグを生成します。(ja)

Generate start tag.(en)

  1.  $atom->startTag('feed');
  2.  
  3.  $atom->startTag('entry');
  4.  
  5.  # 出力すると以下のようになります。
  6.  # <feed>
  7.  #
  8.  # <entry>

  • return: 開始タグ(ja) start tag(en)
  • access: public
string startTag (string $name, [array $attributes = array()])
  • string $name: 要素の名前(ja) The name of the start tag(en)
  • array $attributes: 開始タグの属性(ja) The attributes of the start tag(en)
stylesheet (line 850)

xml-stylesheetを生成します。(ja)

Generate xml-stylesheet.(en)

  1.  $atom->stylesheet('/xsl/atom.xsl'array('charset' => 'UTF-8''type' => 'text/xsl'));
  2.  
  3.  # 出力すると以下のようになります。
  4.  # <?xml-stylesheet charset="UTF-8" type="text/xsl" href="http://example.com/xsl/atom.xsl" ?>

  • return: xml-stylesheet
  • access: public
string stylesheet ([string $url = null], [array $attributes = array()])
  • string $url: スタイルシートへのURL(ja) Stylesheet URL(en)
  • array $attributes: xml-stylesheetの属性(ja) The attributes of the xml-stylesheet(en)
subtitle (line 877)

subtitle要素を生成します。(ja)

Generate subtitle element.(en)

  1.  $atom->subtitle('A <em>lot</em> of effort'array('type' => 'html'));]
  2.  
  3.  # 出力すると以下のようになります。
  4.  # <subtitle type="html">A &lt;em&gt;lot&lt;/em&gt; of effort</subtitle>

  • return: subtitle要素(ja) subtitle element(en)
  • access: public
string subtitle (string $content, [array $attributes = array()])
  • string $content: subtitle要素の内容(ja) subtitle element content(en)
  • array $attributes: subtitle要素の属性(ja) The attributes of the subtitle element(en)
summary (line 898)

summary要素を生成します。(ja)

Generate summary element.(en)

  1.  $atom->summary('Some text.');
  2.  
  3.  # 出力すると以下のようになります。
  4.  # <summary type="text">Some text.</summary>

  • return: summary要素(ja) summary element(en)
  • access: public
string summary (string $content, [array $attributes = array()])
  • string $content: summary要素の内容(ja) summary element content(en)
  • array $attributes: summary要素の属性(ja) The attributes of the summary element(en)
tag (line 924)

XMLの要素を生成します。(ja)

Generate XML element.(en)

  1.  $atom->tag('dc:description''Example Page'array('xmlns:dc' => 'http://purl.org/dc/elements/1.1/'));
  2.  
  3.  //以下のようにも記述できます。
  4.  $atom->description('Example Page'array('xmlns:dc' => 'http://purl.org/dc/elements/1.1/')'dc');
  5.  
  6.  # 出力すると以下のようになります。
  7.  # <dc:description xmlns:dc="http://purl.org/dc/elements/1.1/">Example Page</dc:description>

  • return: XMLの要素(ja) XML element(en)
  • access: public
string tag ([string $name = null], [string $content = null], [array $attributes = array()], [string $namespace = false])
  • string $name: 要素の名前(ja) The name of the XML element(en)
  • string $content: 要素の内容(ja) The attributes of the XML element(en)
  • array $attributes: 要素の属性(ja) XML element content(en)
  • string $namespace: 要素の名前空間(ja) The namespace of the XML element(en)
textConstruct (line 975)

atomTextConstructとして処理し任意の要素を生成します

  1.  $atom->textConstruct(
  2.      'subtitle',
  3.      'A <em>lot</em> of effort went into making this effortless',
  4.      array('type' => 'html')
  5.  );
  6.  
  7.  # 出力すると以下のようになります。
  8.  # <subtitle type="html">A &lt;em&gt;lot&lt;/em&gt; of effort went into making this effortless</subtitle>

  • return: XMLの要素(ja) XML elements(en)
  • access: public
string textConstruct (string $name, string $content, [array $attributes = array()])
  • string $name: 要素の名前(ja) The name of the element(en)
  • string $content: 要素の内容(ja) element content(en)
  • array $attributes: 要素の属性(ja) The attributes of the element(en)
title (line 1005)

title要素を生成します。(ja)

Generate title element.(en)

  1.  $atom->title('Example Feed');
  2.  
  3.  # 出力すると以下のようになります。
  4.  # <title type="text">Example Feed</title>

  • return: title要素(ja) title element(en)
  • access: public
string title (string $content, [array $attributes = array()])
  • string $content: title要素の内容(ja) title element content(en)
  • array $attributes: title要素の属性(ja) The attributes of the title element(en)
updated (line 1028)

updated要素を生成します。(ja)

Generate updated element.(en)

  1.  $atom->updated(1071340202);
  2.  
  3.  $atom->updated('2003-12-13T18:30:02Z');
  4.  
  5.  # 出力すると以下のようになります。
  6.  # <updated>2003-12-13T18:30:02Z</updated>

  • return: updated要素(ja) updated element(en)
  • access: public
string updated ([mixed $timestamp = null], [array $attributes = array()])
  • mixed $timestamp: updated要素の内容。タイムスタンプまたはAtomの日付形式(ja) updated element content. timestamp or Atom date format(en)
  • array $attributes: updated要素の属性(ja) The attributes of the updated element(en)
uri (line 1049)

uri要素を生成します。(ja)

Generate uri element.(en)

  1.  $atom->uri('http://example.org/');
  2.  
  3.  # 出力すると以下のようになります。
  4.  # <uri>http://example.org/</uri>

  • return: uri要素(ja) uri element(en)
  • access: public
string uri (mixed $url, [array $attributes = array()])
  • mixed $url: uri要素の内容(ja) uri element content(en)
  • array $attributes: uri要素の属性(ja) The attributes of the uri element(en)
url (line 1074)

Finds URL for specified action.

Returns a URL pointing at the provided parameters.

string url ([mixed $url = null], [boolean $full = false])
  • mixed $url: Either a relative string url like `/products/view/23` or an array of url parameters. Using an array for urls will allow you to leverage the reverse routing features of CakePHP.
  • boolean $full: If true, the full base URL will be prepended to the result
_attributes (line 1085)

配列の属性を文字列化します。

  • return: 属性(ja) attributes(en)
  • access: protected
string _attributes ([ $attributes = array()], array $attribute)
  • array $attribute: 属性(ja) attributes(en)
  • $attributes
__call (line 1097)
void __call ( $name,  $arguments)
  • $name
  • $arguments

Documentation generated on Sat, 27 Aug 2011 09:04:27 +0000 by phpDocumentor 1.4.3