<?php is_file(string $filename): bool
<?php { if (is_string($this->data)) { try { return is_file($this->data); } catch (\Exception $e) { return false; }
<?php $this->extension = array_key_exists('extension', $info) ? $info['extension'] : null; $this->filename = array_key_exists('filename', $info) ? $info['filename'] : null; if (file_exists($path) && is_file($path)) { $this->mime = finfo_file(finfo_open(FILEINFO_MIME_TYPE), $path); }
<?php { $path = $this->basePath(); if (file_exists($path) && is_file($path)) { return filesize($path); }
<?php foreach ($config->get('imagecache::paths') as $path) { $image_path = $path.'/'.str_replace('..', '', $filename); if (file_exists($image_path) && is_file($image_path)) { break; } else { $image_path = false;