Skip to content
Permalink
master
Switch branches/tags
Go to file
 
 
Cannot retrieve contributors at this time
<?php
declare(strict_types=1);
namespace Tests\View;
/**
* 鏂囨。姒傝堪.
*
* @api(
* title="Summary",
* zh-CN:title="姒傝堪",
* zh-TW:title="姒傝堪",
* path="template/README",
* zh-CN:description="
* QueryPHP 鍐呯疆浜岀鏂瑰紡鐨勬ā鏉垮紩鎿庯紝涓绉嶆槸绫讳技浜 Smart 妯℃澘鐨 Code 璇硶锛屼竴绉嶆槸 HTML 鏍囩寮忕殑 Node 璇硶銆
*
* * code 璇硶锛屼晶閲嶇畝鍗曞疄鐢紝杈撳嚭鍙橀噺銆佹敞閲婄瓑
* * Node 璇硶锛屼弗璋ㄥ姟瀹烇紝杈撳嚭寰幆銆佹祦绋嬫帶鍒剁瓑
*
* 渚嬪锛屼簩绉嶈娉曢殢蹇冨祵濂楋紝闅忔剰浣跨敤锛孮ueryPHP 妯℃澘寮曟搸搴曞眰鍒嗘瀽鍣ㄥ拰缂栬瘧鍣ㄩ潪甯稿仴澹紝瀹岀編杩愯 10 骞淬
*
* QueryPHP 妯℃澘寮曟搸鎶鏈潵鑷簬 Jecat,涓娆炬棤涓庝鸡姣旂殑鎶鏈ぇ椁愶紝鏈夊垢鍦 2010 鎺ヨЕ鍒拌繖涓鏋讹紝閫氳繃杩欎釜妗嗘灦瀛﹀埌浜嗗緢澶氥
* ",
* )
*/
class SummaryDoc
{
/**
* @api(
* zh-CN:title="Code 璇硶",
* zh-CN:description="渚ч噸绠鍗曞疄鐢ㄣ",
* zh-CN:note="",
* lang="html",
* )
*/
public function doc1(): void
{
<<<'EOT'
{{ $name }}
EOT;
}
/**
* @api(
* zh-CN:title="Node 璇硶",
* zh-CN:description="涓ヨ皑鍔″疄銆",
* zh-CN:note="",
* lang="html",
* )
*/
public function doc2(): void
{
<<<'EOT'
{% if cond="'You' == $name" %}
娆㈣繋杩涘叆 QueryPHP 寮鍙戣呬笘鐣岋紒
{% :if %}
EOT;
}
/**
* @api(
* zh-CN:title="鎷掔粷浜ゅ弶",
* zh-CN:description="涓嬮潰杩欑鍐欐硶灏辨槸閿欒鐨勶紝妯℃澘寮曟搸灏嗘棤娉曟纭В鏋愩",
* zh-CN:note="",
* lang="html",
* )
*/
public function doc4(): void
{
<<<'EOT'
{% $name %}
{{ if cond="'You' == $name" }}
娆㈣繋杩涘叆 QueryPHP 寮鍙戣呬笘鐣岋紒
{{ :if }}
EOT;
}
/**
* @api(
* zh-CN:title="PHP 鏂瑰紡",
* zh-CN:description="濡傛灉浣犱笉涔犳儻浣跨敤浣跨敤鍐呯疆鐨勬ā鏉垮紩鎿庯紝浣犱篃鍙互瀹屽叏浣跨敤 PHP 鑷敓鏉ュ啓銆",
* zh-CN:note="",
* )
*/
public function doc5(): void
{
<<<'EOT'
<?php if ('You' == $name): ?>
娆㈣繋杩涘叆 QueryPHP 寮鍙戣呬笘鐣岋紒
<?php endif; ?>
EOT;
}
/**
* @api(
* zh-CN:title="鎵╁睍鏀寔",
* zh-CN:description="涓轰簡鍑忓皯瀛︿範鎴愭湰锛岀郴缁熻繕鏀寔 PHP 鑷韩浣滀负 UI 妯℃澘銆",
* zh-CN:note="",
* )
*/
public function doc6(): void
{
}
}