Prints formatted feed items

@return string
974535
private function generateItems()
	{
		$out = '';
		foreach ($this->items as $item)
		{
			$thisItems = $item->getElements();

			//the argument is printed as rdf:about attribute of item in rss 1.0
			$out .= $this->startItem($thisItems['link']['content']);

			foreach ($thisItems as $feedItem )
			{
				$out .= $this->makeNode($feedItem['name'], $feedItem['content'], $feedItem['attributes']);
			}
			$out .= $this->endItem();
		}
		return $out;
	}
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]));
        }
    }
27197
public function print_search() {
        $str = '';
        $str .= '<input type="hidden" name="repo_id" value="'.$this->id.'" />';
        $str .= '<input type="hidden" name="ctx_id" value="'.$this->context->id.'" />';
        $str .= '<input type="hidden" name="seekey" value="'.sesskey().'" />';
        $str .= '<label>'.get_string('fulltext', 'repository_flickr_public').'</label><br/><input name="s" value="" /><br/>';
        $str .= '<label>'.get_string('tag', 'repository_flickr_public').'</label><br /><input type="text" name="flickr_tag" /><br />';
        return $str;
    }
1156888
public function getAllFeeds(){
        $rest = $this->getService( self::API_DOWNLOAD_FEEDS);
        $rest->GET();

        return $rest->getResultAsArray( models\Download\Feed\DownloadFeed::class);
    }
297224
public function dump()
        {
            $objects = func_get_args();
            $content = "\n<pre>\n";

            foreach($objects as $object) {
                $content .= print_r($object, true);
            }

            return $content . "\n</pre>\n";
        }
1259760
protected function printColumns()
    {
        return is_array($this->printColumns) ? $this->toColumnsCollection($this->printColumns) : $this->getPrintColumnsFromBuilder();
    }
188397
public static function outputBreadcrumbs()
    {
        global $post;

        if (!is_a($post, 'WP_Post')) {
            return;
        }

        $title = get_the_title();
        $post_type = get_post_type_object($post->post_type);
        $output = array();

        echo '<ol class="breadcrumbs" itemscope itemtype="http://schema.org/BreadcrumbList">';

        if (!is_front_page()) {
            $int = 1;
            $output[] = '<li itemscope itemprop="itemListElement" itemtype="http://schema.org/ListItem">
                            <a itemprop="item" href="' . get_home_url() . '" title="' . __('Home') . '">
                            <span itemprop="name">' . __('Home') . '</span><meta itemprop="position" content="' . $int++ . '"></a>
                        </li>';

            if (is_single() && $post_type->has_archive) {
                $cpt_archive_link = (is_string($post_type->has_archive)) ? get_permalink(get_page_by_path($post_type->has_archive)) : get_post_type_archive_link($post_type->name);

                $output[] = '<li itemscope itemprop="itemListElement" itemtype="http://schema.org/ListItem">
                                <a itemprop="item" href="' . $cpt_archive_link . '" title="' .  $post_type->label . '">
                                <span itemprop="name">' .  $post_type->label . '</span><meta itemprop="position" content="' . $int++ . '"></a>
                            </li>';
            }

            if (is_page() || (is_single() && $post_type->hierarchical == true)) {
                if ($post->post_parent) {
                    $anc = array_reverse(get_post_ancestors($post->ID));
                    $title = get_the_title();

                    foreach ($anc as $ancestor) {
                        if (get_post_status($ancestor) != 'private') {
                            $output[] = '<li itemscope itemprop="itemListElement" itemtype="http://schema.org/ListItem">
                                            <a itemprop="item" href="' . get_permalink($ancestor) . '" title="' . get_the_title($ancestor) . '">
                                                <span itemprop="name">' . get_the_title($ancestor) . '</span>
                                                <meta itemprop="position" content="' . $int++ . '" />
                                            </a>
                                       </li>';
                        }
                    }

                    $output[] = '<li itemscope itemprop="itemListElement" itemtype="http://schema.org/ListItem">
                                    <span itemprop="name" class="breadcrumbs-current" title="' . $title . '">' . $title . '</span>
                                    <meta itemprop="position" content="' . ($int++) . '" />
                                </li>';
                } else {
                    $output[] = '<li itemscope itemprop="itemListElement" itemtype="http://schema.org/ListItem">
                                    <span itemprop="name" class="breadcrumbs-current">' . get_the_title() . '</span>
                                    <meta itemprop="position" content="1" />
                                </li>';
                }
            } else {
                if (is_home()) {
                    $title = single_post_title("", false);
                } elseif (is_tax()) {
                    $title = single_cat_title(null, false);
                } elseif (is_category() && $title = get_the_category()) {
                    $title = $title[0]->name;
                } elseif (is_archive()) {
                    $title = post_type_archive_title(null, false);
                } else {
                    $title = get_the_title();
                }
                $output[] = '<li itemscope itemprop="itemListElement" itemtype="http://schema.org/ListItem">
                                <span itemprop="name">' . $title . '</span><meta itemprop="position" content="' . $int++ . '" />
                            </li>';
            }
        }

        $output = apply_filters('Municipio/Breadcrumbs/Items', $output, get_queried_object());

        echo implode("\n", $output);
        echo '</ol>';
    }
344503
public function render(FeedInterface $feed)
    {
        $parameters = array(
            'feed' => $feed,
            'dateFormat' => \DateTime::RFC822,
        );

        return $this->templating->render('ArgentumFeedBundle::rss.xml.twig', $parameters);
    }
1346714
public function generateFeed()
	{
		// TODO Вынести возврат заголовков в отдельный метод
		//header("Content-type: text/xml");

		$feed =
			$this->generateHead() .
			$this->generateChannels() .
			$this->generateItems() .
			$this->generateTale();

		return $feed;
	}
1161835
public function printStyles()
    {
        foreach ($this->styles as $key => $options) {
            $href = (is_string($options['src'])) ? $options['src'] : $this->getStyleLink($key);
            if ($options['with_version']) {
                $href = call_user_func_array($this->assetInsertMethod, [$href, $this->assetVersion]);
            }
            echo "<link rel='stylesheet'  href='" . $href . "' type='text/css' media='" . $options["media"] . "' />\n";
        }
    }
342777
public function output()
    {
        $defaults = [
            'fontCache' => TMP,
            'tempDir' => TMP,
        ];
        $options = (array)$this->getConfig('options') + $defaults;

        $DomPDF = $this->_createInstance($options);
        $DomPDF->setPaper($this->_Pdf->pageSize(), $this->_Pdf->orientation());
        $DomPDF = $this->_render($this->_Pdf, $DomPDF);

        return $this->_output($DomPDF);
    }
438597
public function getOutput() {
		// create stream handle for the output
		$handle = fopen('php://temp/maxmemory:'.(1*1024*1024), 'r+'); // 1MB

		foreach ($this->_content['content'] as $nr => $row) {
			// use first row for headlines
			if ($nr == 0 && $this->table_header === true) {
				fwrite($handle, $this -> _createRow(array_keys($row)));
			}

			fwrite($handle, $this -> _createRow($row));
		}

		return $handle;
	}
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);
        
    }
1277494
private function print_navigation_content() {
        global $OUTPUT;
        $page = $this->page;

        if ($page->timerendered + WIKI_REFRESH_CACHE_TIME < time()) {
            $fresh = wiki_refresh_cachedcontent($page);
            $page = $fresh['page'];
        }

        $tolinks = wiki_get_linked_to_pages($page->id);
        $fromlinks = wiki_get_linked_from_pages($page->id);

        $table = new html_table();
        $table->attributes['class'] = 'wiki_navigation_from table';
        $table->head = array(get_string('navigationfrom', 'wiki') . $OUTPUT->help_icon('navigationfrom', 'wiki') . ':');
        $table->data = array();
        $table->rowclasses = array();
        foreach ($fromlinks as $link) {
            $lpage = wiki_get_page($link->frompageid);
            $link = new moodle_url('/mod/wiki/view.php', array('pageid' => $lpage->id));
            $table->data[] = array(html_writer::link($link->out(false), format_string($lpage->title)));
        }

        $table_left = $OUTPUT->container(html_writer::table($table), 'col-md-6');

        $table = new html_table();
        $table->attributes['class'] = 'wiki_navigation_to table';
        $table->head = array(get_string('navigationto', 'wiki') . $OUTPUT->help_icon('navigationto', 'wiki') . ':');
        $table->data = array();
        $table->rowclasses = array();
        foreach ($tolinks as $link) {
            if ($link->tomissingpage) {
                $viewlink = new moodle_url('/mod/wiki/create.php', array('swid' => $page->subwikiid, 'title' => $link->tomissingpage, 'action' => 'new'));
                $table->data[] = array(html_writer::link($viewlink->out(false), format_string($link->tomissingpage), array('class' => 'wiki_newentry')));
            } else {
                $lpage = wiki_get_page($link->topageid);
                $viewlink = new moodle_url('/mod/wiki/view.php', array('pageid' => $lpage->id));
                $table->data[] = array(html_writer::link($viewlink->out(false), format_string($lpage->title)));
            }
        }
        $table_right = $OUTPUT->container(html_writer::table($table), 'col-md-6');
        echo $OUTPUT->container($table_left . $table_right, 'wiki_navigation_container row');
    }
1349263
public function getPageFeeds()
    {
        if (!$this->parser) {
            return;
        }

        $nodes = $this->parser->find('link');

        $feeds = array();

        $types = array(
            'application/rss+xml',
            'application/atom+xml',
            'text/xml',
        );

        foreach ($nodes as $node) {
            $type = strtolower($node->getAttribute('type'));

            if (in_array($type, $types)) {
                $feeds[] = $node->getAttribute('href');
            }
        }

        return $feeds;
    }
640640
public function render() {

		$title = $list = $template = '';

		if ( $this->items ) {

			// If there's title text, format it.
			if ( $this->args['title_text'] ) {

				$title = sprintf(
					'<%1$s class="%2$s">%3$s</%1$s>',
					tag_escape( $this->args['title_tag'] ),
					esc_attr( $this->args['title_class'] ),
					esc_html( $this->args['title_text'] )
				);
			}

			// Loop through each of the items and format each into
			// an HTML string.
			foreach ( $this->items as $item ) {

				$list .= $this->formatItem( $item );
			}

			// Format the list.
			$list = sprintf(
				'<%1$s class="%2$s">%3$s</%1$s>',
				tag_escape( $this->args['list_tag'] ),
				esc_attr( $this->args['list_class'] ),
				$list
			);

			// Format the nav wrapper.
			$template = sprintf(
				'<%1$s class="%2$s" role="navigation">%3$s%4$s</%1$s>',
				tag_escape( $this->args['container_tag'] ),
				esc_attr( sprintf( $this->args['container_class'], $this->context ) ),
				$title,
				$list
			);
		}

		return apply_filters( "hybrid/pagination/{$this->context}", $template, $this->args );
	}
486411
public function printSummary() {
    drush_print();

    // Print env files used for this definition.
    drush_print($this->formatHeading('Environment Definitions Found'));
    foreach ($this->loadedEnvs as $filename) {
      drush_print("{$filename}", 1);
    }

    drush_print();
    drush_print($this->formatHeading(dt("CONFIGURATION SUMMARY")));

    // We want to make sure they are printed in the same order as they will run.
    foreach ($this->getActiveDefinition() as $group => $options) {
      // Print a nice heading.
      $heading = $this->formatHeading($group);

      switch (strtolower($group)) {
        case 'modules':
          $this->printModuleSummary($options, $heading);
          break;

        case 'variables':
          $this->printVariableSummary($options, $heading);
          break;

        case 'permissions':
          $this->printPermissionSummary($options, $heading);
          break;

        case 'commands':
          $this->printCommandSummary($options, $heading);
          break;

        default:
          drush_print($this->formatHeading($group));
          drush_log(dt("I'm not sure what to do with '@group'.", ['@group' => $group]), 'warning');
          break;
      }
    }
  }