Avifinfo
Parser::parse_file()
Parses a file stream.
Features are extracted from the "meta" box.
Метод класса: Parser{}
Хуков нет.
Возвращает
true|false
. True if the main features of the primary item were parsed or false.
Использование
$Parser = new Parser(); $Parser->parse_file();
Код Parser::parse_file() Parser::parse file WP 6.6.2
public function parse_file() { $box = new Box(); while ( $box->parse( $this->handle, $this->num_parsed_boxes ) == FOUND ) { if ( $box->type === 'meta' ) { if ( $this->parse_meta( $box->content_size ) != FOUND ) { return false; } return true; } if ( !skip( $this->handle, $box->content_size ) ) { return false; } } return false; // No "meta" no good. }