Lines Matching refs:file

385      * No file source
390 * Remote file source
395 * Local file source
400 * fsockopen() file source
405 * cURL file source
410 * file_get_contents() file source
466 public $file;
604 * @var string Web-accessible path to the handler_image.php file.
798 * @param \SimplePie\File &$file
801 public function set_file(&$file)
803 if ($file instanceof \SimplePie\File) {
804 $this->feed_url = $file->url;
806 $this->file =& $file;
898 * This tells SimplePie to ignore any file errors and fall back to cache
935 * Set the file system location where the cached files should be stored
939 * @param string $location The file system location.
948 * Return the filename (i.e. hash, without path and without extension) of the file to cache a given URL.
1083 * Set which class SimplePie uses for remote file fetching
1474 * @param string $page Web-accessible path to the handler_image.php file.
1667 // Cache the file if caching is enabled
1763 // when requesting this file. (Note that it's up to the file to
1777 $file = $this->registry->create(File::class, [$this->feed_url, $this->timeout/10, 5, $headers, $this->useragent, $this->force_fsockopen, $this->curl_options]);
1778 $this->status_code = $file->status_code;
1780 if ($file->success) {
1781 if ($file->status_code === 304) {
1795 unset($file);
1811 // If we don't already have the file (it'll only exist if we've opened it to check if the cache has been modified), open it.
1812 if (!isset($file)) {
1813 if ($this->file instanceof \SimplePie\File && $this->file->url === $this->feed_url) {
1814 $file =& $this->file;
1819 $file = $this->registry->create(File::class, [$this->feed_url, $this->timeout, 5, $headers, $this->useragent, $this->force_fsockopen, $this->curl_options]);
1822 $this->status_code = $file->status_code;
1824 // If the file connection has an error, set SimplePie::error to that and quit
1825 if (!$file->success && !($file->method & self::FILE_SOURCE_REMOTE === 0 || ($file->status_code === 200 || $file->status_code > 206 && $file->status_code < 300))) {
1826 $this->error = $file->error;
1832 $locate = $this->registry->create(Locator::class, [&$file, $this->timeout, $this->useragent, $this->max_checked_feeds, $this->force_fsockopen, $this->curl_options]);
1834 if (!$locate->is_feed($file)) {
1835 $copyStatusCode = $file->status_code;
1836 $copyContentType = $file->headers['content-type'];
1841 @$doc->loadHTML($file->body);
1851 // overwrite the current value of file.
1859 $this->store_links($file, $hub, $self);
1861 // Push the current file onto all_discovered feeds so the user can
1864 $this->all_discovered_feeds[] = $file;
1868 $file = $discovered;
1872 unset($file);
1880 unset($file);
1890 'feed_url' => $file->url,
1900 $this->feed_url = $file->url;
1904 $this->raw_data = $file->body;
1905 $this->permanent_url = $file->permanent_url;
1906 $headers = $file->headers;
1907 $sniffer = $this->registry->create(Sniffer::class, [&$file]);
2148 * $file = $content[0]['attribs']['']['url'];
2149 * echo $file;
3104 $file = $trace[0]['file'];
3106 trigger_error("Call to undefined method $class::$method() in $file on line $line", E_USER_ERROR);
3177 * @param \SimplePie\File $file
3181 private function store_links(&$file, $hub, $self)
3183 if (isset($file->headers['link']['hub']) ||
3184 (isset($file->headers['link']) &&
3185 preg_match('/rel=hub/', $file->headers['link']))) {
3190 if (isset($file->headers['link'])) {
3191 if ($file->headers['link'] !== '') {
3192 $file->headers['link'] = ', ';
3195 $file->headers['link'] = '';
3197 $file->headers['link'] .= '<'.$hub.'>; rel=hub';
3199 $file->headers['link'] .= ', <'.$self.'>; rel=self';