« CommonMark\CQL::__construct
CommonMark 関数 »

CommonMark\CQL::__invoke

(cmark >= 1.1.0)

CommonMark\CQL::__invoke — CQL Execution

説明

public function 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:

function 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

関連キーワード:
CommonMark   handler   root   invoke   Node   executing   return   Execution   given   continue   construct   cmark   callable   current   entry   node   tree   prototype   entering   fail   truthy   falsy   stop
関連する関数・ページ:
commonmark-cql.construct   commonmark-node.replace   commonmark-node.appendchild   commonmark-node.insertbefore   commonmark-node.prependchild   commonmark-node.insertafter