executeQuery() public method

Execute a user defined query to retrieve metadata
public executeQuery ( string $query ) : PHPExiftool\Driver\Value\ValueInterface
$query string
return PHPExiftool\Driver\Value\ValueInterface
示例#1
0
 /**
  * @covers PHPExiftool\FileEntity::executeQuery
  */
 public function testExecuteQuery()
 {
     $this->assertInstanceOf('\\PHPExiftool\\Driver\\Value\\Mono', $this->object->executeQuery('IFD0:Copyright'));
     $this->assertEquals('Copyright 2004 Phil Harvey', $this->object->executeQuery('IFD0:Copyright')->asString());
     $this->assertInstanceOf('\\PHPExiftool\\Driver\\Value\\Binary', $this->object->executeQuery('CIFF:FreeBytes'));
     $this->assertInstanceOf('\\PHPExiftool\\Driver\\Value\\Multi', $this->object->executeQuery('XMP-dc:Subject'));
     $this->assertEquals(array('ExifTool', 'Test', 'XMP'), $this->object->executeQuery('XMP-dc:Subject')->asArray());
 }