diff --git a/src/web/vo.php b/src/web/vo.php index 7d41655..cd5d68f 100644 --- a/src/web/vo.php +++ b/src/web/vo.php @@ -2,10 +2,40 @@ namespace nulib\web; use nulib\php\content\c; +use nulib\web\content\BlockTag; +use nulib\web\content\EmptyTag; +use nulib\web\content\SimpleTag; +use nulib\web\content\Tag; use nulib\web\content\v; /** * Class vo: classe outil pour afficher les tags générés par {@link v} + * + * @method BlockTag h1($content) + * @method BlockTag h2($content) + * @method BlockTag h3($content) + * @method BlockTag h4($content) + * @method BlockTag h5($content) + * @method BlockTag h6($content) + * @method EmptyTag hr($content=null) + * @method EmptyTag br($content=null) + * @method Tag div($content) + * @method Tag p($content) + * @method Tag pre($content) + * @method SimpleTag span($content) + * @method SimpleTag b($content) + * @method SimpleTag i($content) + * @method SimpleTag em($content) + * @method SimpleTag strong($content) + * @method BlockTag ul($content) + * @method BlockTag ol($content) + * @method BlockTag li($content) + * @method BlockTag table($content) + * @method BlockTag thead($content) + * @method BlockTag tbody($content) + * @method BlockTag tr($content) + * @method Tag th($content) + * @method Tag td($content) */ class vo { static function __callStatic($name, $args) { diff --git a/tbin/test-vo.php b/tbin/test-vo.php index 3533776..d4b7d27 100644 --- a/tbin/test-vo.php +++ b/tbin/test-vo.php @@ -7,6 +7,6 @@ use nulib\web\vo; vo::h1("titre"); vo::p("paragraph"); vo::p([ - "il y a", v::b(4), "lapins.", - "allons à la plage", + "Il y a ", v::b(4), " lapins.", + "Allons à la plage", ]);