Short description of method feed

@access public
@author Joel Bout, <joel.bout@tudor.lu>
323150
public function feed()
    {
        if (isset($_FILES[$this->getName()])) {
            $this->setValue($_FILES[$this->getName()]);
        } else {
            throw new tao_helpers_form_Exception('cannot evaluate the element ' . __CLASS__);
        }
    }
745646
def feed_parser(self, data):
        """"""
        assert isinstance(data, bytes)
        self.controller.feed_parser(data)
685507
public function evaluate()
    {
        
		
		$this->initElements();
		
		if(isset($_POST["{$this->name}_sent"])){
			
			$this->submited = true;
			
			//set posted values
			foreach($this->elements as $id => $element){
				$this->elements[$id]->feed();
			}
			
			$this->validate();
			
		}
			
        
    }
454521
public function refreshFeeds(){
        $rest = $this->getService( self::API_DOWNLOAD_FEEDS_FETCH);
        $rest->POST();

        return $rest->getSuccess();
    }
1201437
public function run()
	{
		$id=$this->getId();
		if(isset($this->htmlOptions['id']))
			$id=$this->htmlOptions['id'];
		else
			$this->htmlOptions['id']=$id;

		echo CHtml::openTag($this->tagName,$this->htmlOptions)."\n";
		foreach($this->panels as $title=>$content)
		{
			echo strtr($this->headerTemplate,array('{title}'=>$title))."\n";
			echo strtr($this->contentTemplate,array('{content}'=>$content))."\n";
		}
		echo CHtml::closeTag($this->tagName);

		$options=CJavaScript::encode($this->options);
		Yii::app()->getClientScript()->registerScript(__CLASS__.'#'.$id,"jQuery('#{$id}').accordion($options);");
	}
164228
protected function _mapFeedHeaders($array)
    {
        $feed = $this->_element->createElement('feed');
        $feed->setAttribute('xmlns', 'http://www.w3.org/2005/Atom');

        $id = $this->_element->createElement('id', $array->link);
        $feed->appendChild($id);

        $title = $this->_element->createElement('title');
        $title->appendChild($this->_element->createCDATASection($array->title));
        $feed->appendChild($title);

        if (isset($array->author)) {
            $author = $this->_element->createElement('author');
            $name = $this->_element->createElement('name', $array->author);
            $author->appendChild($name);
            if (isset($array->email)) {
                $email = $this->_element->createElement('email', $array->email);
                $author->appendChild($email);
            }
            $feed->appendChild($author);
        }

        $updated = isset($array->lastUpdate) ? $array->lastUpdate : time();
        $updated = $this->_element->createElement('updated', date(DATE_ATOM, $updated));
        $feed->appendChild($updated);

        if (isset($array->published)) {
            $published = $this->_element->createElement('published', date(DATE_ATOM, $array->published));
            $feed->appendChild($published);
        }

        $link = $this->_element->createElement('link');
        $link->setAttribute('rel', 'self');
        $link->setAttribute('href', $array->link);
        if (isset($array->language)) {
            $link->setAttribute('hreflang', $array->language);
        }
        $feed->appendChild($link);

        if (isset($array->description)) {
            $subtitle = $this->_element->createElement('subtitle');
            $subtitle->appendChild($this->_element->createCDATASection($array->description));
            $feed->appendChild($subtitle);
        }

        if (isset($array->copyright)) {
            $copyright = $this->_element->createElement('rights', $array->copyright);
            $feed->appendChild($copyright);
        }

        if (isset($array->image)) {
            $image = $this->_element->createElement('logo', $array->image);
            $feed->appendChild($image);
        }

        $generator = !empty($array->generator) ? $array->generator : 'Zend_Feed';
        $generator = $this->_element->createElement('generator', $generator);
        $feed->appendChild($generator);

        return $feed;
    }
1157337
public function display()
    {

        //add feed properties
        $this->channelPropertiesToDOM();

        //add items
        foreach($this->items as $item){

            $this->appendItem($item);
        }

        return $this->saveXML();
    }
1038207
public function feed()
    {
        $expression = "/^" . preg_quote($this->name, "/") . "(.)*[0-9]+$/";
        $foundIndexes = array();
        foreach ($_POST as $key => $value) {
            if (preg_match($expression, $key)) {
                $foundIndexes[] = $key;
            }
        }
        
        if ((count($foundIndexes) > 0 && $_POST[$foundIndexes[0]] !== self::NO_TREEVIEW_INTERACTION_IDENTIFIER) || count($foundIndexes) === 0) {
            $this->setValues(array());
        } elseif ((count($foundIndexes) > 0 && $_POST[$foundIndexes[0]] === self::NO_TREEVIEW_INTERACTION_IDENTIFIER)) {
            array_shift($foundIndexes);
        }
        
        foreach ($foundIndexes as $index) {
            $this->addValue(tao_helpers_Uri::decode($_POST[$index]));
        }
    }
886261
protected function loadCommonStandards() : FeedIo
    {
        $standards = $this->getCommonStandards();
        foreach ($standards as $name => $standard) {
            $this->addStandard($name, $standard);
        }

        return $this;
    }
1288178
public function getPublicationAction(Request $request, $feed_id)
    {
        $user = $this->getAuthenticatedUser();
        /** @var FeedRepository $repository */
        $repository = $this->app['repo.feeds'];
        /** @var Feed $feed */
        $feed = $repository->find($feed_id);

        if (!$feed->isAccessible($user, $this->app)) {
            return Result::create($request, [])->createResponse();
        }

        $offset_start = (int) $request->get('offset_start', 0);
        $per_page = (int) $request->get('per_page', 5);

        $per_page = (($per_page >= 1) && ($per_page <= 100)) ? $per_page : 100;

        $data = [
            'feed'         => $this->listPublication($feed, $user),
            'offset_start' => $offset_start,
            'per_page'     => $per_page,
            'entries'      => $this->listPublicationsEntries($request, $feed, $offset_start, $per_page),
        ];

        return Result::create($request, $data)->createResponse();
    }
1069324
protected function addFeed()
	{
		if ($this->params->get('show_feed_link', 1) == 1)
		{
			$link    = '&format=feed&limitstart=';
			$attribs = array('type' => 'application/rss+xml', 'title' => 'RSS 2.0');
			$this->document->addHeadLink(JRoute::_($link . '&type=rss'), 'alternate', 'rel', $attribs);
			$attribs = array('type' => 'application/atom+xml', 'title' => 'Atom 1.0');
			$this->document->addHeadLink(JRoute::_($link . '&type=atom'), 'alternate', 'rel', $attribs);
		}
	}
102817
def feeds(self):
        
        if self._feed_manager is None:
            self._feed_manager = FeedManager(session=self._session)
        return self._feed_manager
516247
public function feed()
    {
        
    	$values = array();
    	$prefix = preg_quote($this->getPrefix(), '/');
    	foreach($_POST as $key => $value){
    		if(preg_match("/^$prefix/", $key)){
    			$values[str_replace($this->getPrefix(), '', $key)] = $value;
    		}
    	}
    	$this->setValues($values);
        
    }
256438
public function disableFeeds()
    {
        if ($this->isActive() && !$this->allowFeeds()) {
            return collect([
                'do_feed',
                'do_feed_rdf',
                'do_feed_rss',
                'do_feed_rss2',
                'do_feed_atom'
            ])->map(function ($feed) {
                return add_action($feed, function () {
                    wp_die(sprintf(__('Feeds are not available for this site. Please visit the <a href="%s">website</a>.', 'app'), get_bloginfo('url')));
                }, 1);
            });
        }
    }
713073
public function run()
    {
        $this->renderChannel();
        if ($this->dataProvider->getCount() > 0) {
            $this->renderItems();
        }
        return $this->feed;
    }
22972
protected function outputXml($feed)
    {
        // Send XML/no cache headers
        header('Content-Type: application/xml; charset=utf-8');
        header('Expires: ' . gmdate('D, d M Y H:i:s') . ' GMT');
        header('Cache-Control: must-revalidate, post-check=0, pre-check=0');
        header('Pragma: public');

        echo '<?xml version="1.0" encoding="utf-8"?>' . "\n";
        echo '<source>' . "\n";
        echo "\t" . '<url>' . Utils::escape($feed['link']) . '</url>' . "\n";

        $forum_tag = ($feed['type'] == 'posts') ? 'post' : 'topic';

        foreach ($feed['items'] as $item) {
            echo "\t" . '<' . $forum_tag . ' id="' . $item['id'] . '">' . "\n";

            echo "\t\t" . '<title><![CDATA[' . $this->escapeCdata($item['title']) . ']]></title>' . "\n";
            echo "\t\t" . '<link>' . Utils::escape($item['link']) . '</link>' . "\n";
            echo "\t\t" . '<content><![CDATA[' . $this->escapeCdata($item['description']) . ']]></content>' . "\n";
            echo "\t\t" . '<author>' . "\n";
            echo "\t\t\t" . '<name><![CDATA[' . $this->escapeCdata($item['author']['name']) . ']]></name>' . "\n";

            if (isset($item['author']['email'])) {
                echo "\t\t\t" . '<email><![CDATA[' . $this->escapeCdata($item['author']['email']) .
                    ']]></email>' . "\n";
            }

            if (isset($item['author']['uri'])) {
                echo "\t\t\t" . '<uri>' . Utils::escape($item['author']['uri']) . '</uri>' . "\n";
            }

            echo "\t\t" . '</author>' . "\n";
            echo "\t\t" . '<posted>' . gmdate('r', $item['pubdate']) . '</posted>' . "\n";

            echo "\t" . '</' . $forum_tag . '>' . "\n";
        }

        echo '</source>' . "\n";
    }
1275352
public function build()
    {
        if (! $view = $this->getRSSView()) {
            return;
        }

        $pageContent = $this->viewFactory->make($view, $this->viewsData)->render();

        $this->filesystem->put(
            sprintf('%s/%s', KATANA_PUBLIC_DIR, 'feed.rss'),
            $pageContent
        );
    }