예제 #1
0
 public function __construct()
 {
     parent::__construct();
     // change root element
     $this->root->destroy($this->root);
     $this->root = new HtmlElement('feed');
     $this->root->attr('xmlns', 'http://www.w3.org/2005/Atom');
     // required elements contains in feed
     $this->title = new HtmlElement('title');
     $this->title->insertTo($this->root);
     $this->updated = new HtmlElement('updated');
     $this->updated->insertTo($this->root);
     $this->id = new HtmlElement('id');
     $this->id->insertTo($this->root);
     // optional elements contains in feed
     $this->author = new HtmlElement('author');
     $this->authorName = new HtmlElement('name');
     $this->authorName->insertTo($this->author);
     $this->authorEmail = new HtmlElement('email');
     $this->authorUri = new HtmlElement('uri');
     $this->linkSelf = new HtmlElement('link');
     $this->linkSelf->attr('rel', 'self');
     $this->subtitle = new HtmlElement('subtitle');
     $this->generator = new HtmlElement('generator');
     $this->icon = new HtmlElement('icon');
     $this->logo = new HtmlElement('logo');
     $this->rights = new HtmlElement('rights');
     $this->generator('vSymfo Document Component');
     $this->setAuthorResolver();
     $this->setCategoryResolver();
 }
예제 #2
0
 public function __construct()
 {
     parent::__construct();
     // change root element
     $this->root->destroy($this->root);
     $this->root = new HtmlElement('rss');
     $this->root->attr('version', '2.0');
     // channel element
     $this->channel = new HtmlElement('channel');
     $this->channel->insertTo($this->root);
     // elements contains in channel
     $this->title = new HtmlElement('title');
     $this->link = new HtmlElement('link');
     $this->description = new HtmlElement('description');
     $this->language = new HtmlElement('language');
     $this->copyright = new HtmlElement('copyright');
     $this->managingEditor = new HtmlElement('managingEditor');
     $this->webMaster = new HtmlElement('webMaster');
     $this->pubDate = new HtmlElement('pubDate');
     $this->lastBuildDate = new HtmlElement('lastBuildDate');
     $this->category = new HtmlElement('category');
     $this->generator = new HtmlElement('generator');
     $this->ttl = new HtmlElement('ttl');
     $this->skipHours = new HtmlElement('skipHours');
     $this->skipDays = new HtmlElement('skipDays');
     $this->cloud = new HtmlElement('cloud');
     $this->image = new HtmlElement('image');
     $this->imageUrl = new HtmlElement('url');
     $this->imageUrl->insertTo($this->image);
     $this->imageTitle = new HtmlElement('title');
     $this->imageTitle->insertTo($this->image);
     $this->imageLink = new HtmlElement('link');
     $this->imageLink->insertTo($this->image);
     $this->imageWidth = new HtmlElement('width');
     $this->imageHeight = new HtmlElement('height');
     $this->imageDescription = new HtmlElement('description');
     $this->textInput = new HtmlElement('textInput');
     $this->textInputTitle = new HtmlElement('title');
     $this->textInputTitle->insertTo($this->textInput);
     $this->textInputDescription = new HtmlElement('description');
     $this->textInputDescription->insertTo($this->textInput);
     $this->textInputName = new HtmlElement('name');
     $this->textInputName->insertTo($this->textInput);
     $this->textInputLink = new HtmlElement('link');
     $this->textInputLink->insertTo($this->textInput);
     $this->generator('vSymfo Document Component');
     $this->setImageResolver();
     $this->setTextInputResolver();
     $this->setCloudResolver();
 }