略微加速

PHP官方手册 - 互联网笔记

PHP - Manual: CommonMark\CQL::__invoke

2024-11-15

CommonMark\CQL::__invoke

(cmark >= 1.1.0)

CommonMark\CQL::__invokeCQL Execution

说明

public CommonMark\CQL::__invoke(CommonMark\Node $root, callable $handler)

Shall invoke the current CQL function on the given root, executing the given handler on entry to a CommonMark\Node

参数

root

the root node of a tree

handler

should have the prototype:

handler(CommonMark\Node $root, CommonMark\Node $entering): ?bool
  • Should handler fail to return (void), or return null, CQL will continue executing
  • Should the handler return a truthy value, CQL will continue executing.
  • Should the handler return a falsy value, CQL will stop executing
add a noteadd a note

User Contributed Notes

There are no user contributed notes for this page.

官方地址:https://www.php.net/manual/en/commonmark-cql.invoke.php

北京半月雨文化科技有限公司.版权所有 京ICP备12026184号-3