PhpOffice\PhpPresentation\Reader\PowerPoint97::canRead PHP Метод

canRead() публичный Метод

Can the current \PhpOffice\PhpPresentation\Reader\ReaderInterface read the file?
public canRead ( string $pFilename ) : boolean
$pFilename string
Результат boolean
    public function canRead($pFilename)
    {
        return $this->fileSupportsUnserializePhpPresentation($pFilename);
    }

Usage Example

Пример #1
0
 /**
  * Test cant read
  */
 public function testCantRead()
 {
     $file = PHPPRESENTATION_TESTS_BASE_DIR . '/resources/files/serialized.phppt';
     $object = new PowerPoint97();
     $this->assertFalse($object->canRead($file));
 }
PowerPoint97