How to use getTag method of tag class

Best Atoum code snippet using tag.getTag

%%81^81C^81C1566E%%menu.tpl.php

Source:%%81^81C^81C1566E%%menu.tpl.php Github

copy

Full Screen

...19</div>20<br>21<h3 class="MenuH3">ユーザー管理</h3>22<ul class="MenuBox">23 <li><a href="<?php echo smarty_function_make_link(array('action' => 'action_user_Search','getTags' => $this->_tpl_vars['getTag']), $this);?>24" target="contents">ユーザー検索</a></li>25 <li><a href="<?php echo smarty_function_make_link(array('action' => 'action_user_Create','getTags' => $this->_tpl_vars['getTag']), $this);?>26" target="contents">ユーザー作成</a></li>27 <?php if (! ( $this->_tpl_vars['loginAdminData']['authority_type'] == $this->_tpl_vars['config']['define']['AUTHORITY_TYPE_SHUKEI'] )): ?>28 <li><a href="<?php echo smarty_function_make_link(array('action' => 'action_user_RegistTestAddressDelForm','getTags' => $this->_tpl_vars['getTag']), $this);?>29" target="contents">テストユーザー削除フォーム</a></li>30 <li><a href="<?php echo smarty_function_make_link(array('action' => 'action_user_SearchConditionList','getTags' => $this->_tpl_vars['getTag']), $this);?>31" target="contents">検索条件保存リスト</a></li>32 <li><a href="<?php echo smarty_function_make_link(array('action' => 'action_user_SearchConditionCategoryList','getTags' => $this->_tpl_vars['getTag']), $this);?>33" target="contents">検索条件保存カテゴリー設定</a></li>34 <li><a href="<?php echo smarty_function_make_link(array('action' => 'action_user_UserProfileFlagList','getTags' => $this->_tpl_vars['getTag']), $this);?>35" target="contents">フラグコードの名前を編集</a></li>36 <?php if (! ( $this->_tpl_vars['loginAdminData']['authority_type'] == $this->_tpl_vars['config']['define']['AUTHORITY_TYPE_ADVERTISING'] )): ?>37 <li><a href="./Information/Information.php<?php echo $this->_tpl_vars['infoParamURL']; ?>38" target="_blank">問い合わせ</a></li>39 <?php endif; ?>40 <?php endif; ?>41</ul>42<?php if (! ( $this->_tpl_vars['loginAdminData']['authority_type'] == $this->_tpl_vars['config']['define']['AUTHORITY_TYPE_ADVERTISING'] || $this->_tpl_vars['loginAdminData']['authority_type'] == $this->_tpl_vars['config']['define']['AUTHORITY_TYPE_SHUKEI'] )): ?>43 <h3 class="MenuH3">注文管理</h3>44 <ul class="MenuBox">45 <li><a href="<?php echo smarty_function_make_link(array('action' => 'action_ordering_OrderingSearchList','getTags' => $this->_tpl_vars['getTag']), $this);?>46" target="contents">注文管理</a></li>47 <li><a href="<?php echo smarty_function_make_link(array('action' => 'action_ordering_OrderingChangeLogList','getTags' => $this->_tpl_vars['getTag']), $this);?>48" target="contents">注文変更ログ</a></li>49 <li><a href="<?php echo smarty_function_make_link(array('action' => 'action_ordering_SupportMailSendLogList','getTags' => $this->_tpl_vars['getTag']), $this);?>50" target="contents">サポートメール配信確認</a></li>51 <li><a href="<?php echo smarty_function_make_link(array('action' => 'action_ordering_ReserveSupportMailList','getTags' => $this->_tpl_vars['getTag']), $this);?>52" target="contents">サポートメール予約配信確認</a></li>53 <li><a href="<?php echo smarty_function_make_link(array('action' => 'action_ordering_RegularSupportMailList','getTags' => $this->_tpl_vars['getTag']), $this);?>54" target="contents">サポートメール定期配信確認</a></li>55 <li><a href="<?php echo smarty_function_make_link(array('action' => 'action_ordering_SupportMailList','getTags' => $this->_tpl_vars['getTag']), $this);?>56" target="contents">サポートメール定型文設定</a></li>57 <li><a href="<?php echo smarty_function_make_link(array('action' => 'action_ordering_OrderingDisplaySetting','getTags' => $this->_tpl_vars['getTag']), $this);?>58" target="contents">予約注文表示場所設定</a></li>59 </ul>60<?php endif; ?>61<h3 class="MenuH3">集計管理</h3>62<ul class="MenuBox">63 <?php if (! ( $this->_tpl_vars['loginAdminData']['authority_type'] == $this->_tpl_vars['config']['define']['AUTHORITY_TYPE_SHUKEI'] )): ?>64 <li><a href="<?php echo smarty_function_make_link(array('action' => 'action_senchaCount_Calculation','getTags' => $this->_tpl_vars['getTag']), $this);?>65" target="contents">一般集計</a></li>66 <li><a href="<?php echo smarty_function_make_link(array('action' => 'action_count_Calculation','getTags' => $this->_tpl_vars['getTag']), $this);?>67" target="contents">旧一般集計</a></li>68 <?php endif; ?>69 <li><a href="<?php echo smarty_function_make_link(array('action' => 'action_baitai_Index','getTags' => $this->_tpl_vars['getTag']), $this);?>70" target="_blank">媒体CHK</a></li>71 </ul>72<?php if (! ( $this->_tpl_vars['loginAdminData']['authority_type'] == $this->_tpl_vars['config']['define']['AUTHORITY_TYPE_ADVERTISING'] || $this->_tpl_vars['loginAdminData']['authority_type'] == $this->_tpl_vars['config']['define']['AUTHORITY_TYPE_SHUKEI'] )): ?>73 <h3 class="MenuH3">メルマガ管理</h3>74 <ul class="MenuBox">75 <li><a href="<?php echo smarty_function_make_link(array('action' => 'action_user_Search','getTags' => $this->_tpl_vars['getTag']), $this);?>76" target="contents">ユーザー検索</a></li>77 <li><a href="<?php echo smarty_function_make_link(array('action' => 'action_mailLog_MailLogList','getTags' => $this->_tpl_vars['getTag']), $this);?>78" target="contents">配信履歴</a></li>79 <li><a href="<?php echo smarty_function_make_link(array('action' => 'action_mailLog_MailLogGroupList','getTags' => $this->_tpl_vars['getTag']), $this);?>80" target="contents">定期メルマガID毎配信履歴</a></li>81 <li><a href="<?php echo smarty_function_make_link(array('action' => 'action_mailLog_ReserveMailList','getTags' => $this->_tpl_vars['getTag']), $this);?>82" target="contents">予約配信確認</a></li>83 <li><a href="<?php echo smarty_function_make_link(array('action' => 'action_mailLog_RegularMailList','getTags' => $this->_tpl_vars['getTag']), $this);?>84" target="contents">定期配信確認</a></li>85 <li><a href="<?php echo smarty_function_make_link(array('action' => 'action_mailLog_ReservePointGrantList','getTags' => $this->_tpl_vars['getTag']), $this);?>86" target="contents">予約ばらまきの一覧</a></li>87 <!--88 <li><a href="http://p-send.com/" target="_blank">配信状況確認(通常)</a></li>89 <li><a href="http://p-send.com/" target="_blank">配信状況確認(反転)</a></li>90 -->91 <li><a href="http://p-send.com/" target="_blank">配信状況確認</a></li>92 </ul>93<?php endif; ?>94<?php if (! ( $this->_tpl_vars['loginAdminData']['authority_type'] == $this->_tpl_vars['config']['define']['AUTHORITY_TYPE_ADVERTISING'] || $this->_tpl_vars['loginAdminData']['authority_type'] == $this->_tpl_vars['config']['define']['AUTHORITY_TYPE_SHUKEI'] )): ?>95<h3 class="MenuH3">商品管理</h3>96<ul class="MenuBox">97 <li><a href="<?php echo smarty_function_make_link(array('action' => 'action_itemManagement_ItemList','getTags' => $this->_tpl_vars['getTag']), $this);?>98" target="contents">商品一覧</a></li>99 <li><a href="<?php echo smarty_function_make_link(array('action' => 'action_itemManagement_ItemCreate','getTags' => $this->_tpl_vars['getTag']), $this);?>100" target="contents">商品登録</a></li>101 <li><a href="<?php echo smarty_function_make_link(array('action' => 'action_itemManagement_ItemMonthlyCreate','getTags' => $this->_tpl_vars['getTag']), $this);?>102" target="contents">月額更新用商品登録</a></li>103 <li><a href="<?php echo smarty_function_make_link(array('action' => 'action_itemManagement_ItemCategoryList','getTags' => $this->_tpl_vars['getTag']), $this);?>104" target="contents">カテゴリー設定</a></li>105</ul>106<?php endif; ?>107<?php if (! ( $this->_tpl_vars['loginAdminData']['authority_type'] == $this->_tpl_vars['config']['define']['AUTHORITY_TYPE_ADVERTISING'] || $this->_tpl_vars['loginAdminData']['authority_type'] == $this->_tpl_vars['config']['define']['AUTHORITY_TYPE_SHUKEI'] )): ?>108<h3 class="MenuH3">情報管理</h3>109<ul class="MenuBox">110 <li><a href="<?php echo smarty_function_make_link(array('action' => 'action_informationStatus_InformationSearchList','getTags' => $this->_tpl_vars['getTag']), $this);?>111" target="contents">情報一覧</a></li>112 <li><a href="<?php echo smarty_function_make_link(array('action' => 'action_informationStatus_InformationCreate','getTags' => $this->_tpl_vars['getTag']), $this);?>113" target="contents">情報登録</a></li>114 <li><a href="<?php echo smarty_function_make_link(array('action' => 'action_informationDisplayPosition_InformationCategoryList','getTags' => $this->_tpl_vars['getTag']), $this);?>115" target="contents">フォルダ設定</a></li>116 <li><a href="<?php echo smarty_function_make_link(array('action' => 'action_informationDisplayPosition_InformationDisplayPositionList','getTags' => $this->_tpl_vars['getTag']), $this);?>117" target="contents">表示場所一覧</a></li>118 <li><a href="<?php echo smarty_function_make_link(array('action' => 'action_informationTemplate_InformationTemplateList','getTags' => $this->_tpl_vars['getTag']), $this);?>119" target="contents">情報定型文設定</a></li>120</ul>121<?php endif; ?>122<?php if (! ( $this->_tpl_vars['loginAdminData']['authority_type'] == $this->_tpl_vars['config']['define']['AUTHORITY_TYPE_ADVERTISING'] || $this->_tpl_vars['loginAdminData']['authority_type'] == $this->_tpl_vars['config']['define']['AUTHORITY_TYPE_SHUKEI'] )): ?>123<h3 class="MenuH3">情報リスト管理</h3>124<ul class="MenuBox">125 <li><a href="<?php echo smarty_function_make_link(array('action' => 'action_informationListManagement_InformationListGroup','getTags' => $this->_tpl_vars['getTag']), $this);?>126" target="contents">情報リスト設定</a></li>127</ul>128<?php endif; ?>129<?php if (! ( $this->_tpl_vars['loginAdminData']['authority_type'] == $this->_tpl_vars['config']['define']['AUTHORITY_TYPE_ADVERTISING'] || $this->_tpl_vars['loginAdminData']['authority_type'] == $this->_tpl_vars['config']['define']['AUTHORITY_TYPE_SHUKEI'] )): ?>130<h3 class="MenuH3">月額コース管理</h3>131<ul class="MenuBox">132 <li><a href="<?php echo smarty_function_make_link(array('action' => 'action_MonthlyCourse_CourseUserSearchList','getTags' => $this->_tpl_vars['getTag']), $this);?>133" target="contents">月額コースユーザー一覧</a></li>134 <li><a href="<?php echo smarty_function_make_link(array('action' => 'action_MonthlyCourse_CourseSearchList','getTags' => $this->_tpl_vars['getTag']), $this);?>135" target="contents">月額コース一覧</a></li>136 <li><a href="<?php echo smarty_function_make_link(array('action' => 'action_MonthlyCourse_CourseCreate','getTags' => $this->_tpl_vars['getTag']), $this);?>137" target="contents">月額コース登録</a></li>138 <li><a href="<?php echo smarty_function_make_link(array('action' => 'action_MonthlyCourse_GroupList','getTags' => $this->_tpl_vars['getTag']), $this);?>139" target="contents">グループ設定</a></li>140</ul>141<?php endif; ?>142<?php if (! ( $this->_tpl_vars['loginAdminData']['authority_type'] == $this->_tpl_vars['config']['define']['AUTHORITY_TYPE_ADVERTISING'] || $this->_tpl_vars['loginAdminData']['authority_type'] == $this->_tpl_vars['config']['define']['AUTHORITY_TYPE_SHUKEI'] )): ?>143<h3 class="MenuH3">ユニット管理</h3>144<ul class="MenuBox">145 <li><a href="<?php echo smarty_function_make_link(array('action' => 'action_unit_List','getTags' => $this->_tpl_vars['getTag']), $this);?>146" target="contents">ユニット一覧</a></li>147 <li><a href="<?php echo smarty_function_make_link(array('action' => 'action_lotteryUnit_List','getTags' => $this->_tpl_vars['getTag']), $this);?>148" target="contents">抽選ユニット一覧</a></li>149</ul>150<?php endif; ?>151<?php if (! ( $this->_tpl_vars['loginAdminData']['authority_type'] == $this->_tpl_vars['config']['define']['AUTHORITY_TYPE_SHUKEI'] )): ?>152<h3 class="MenuH3">画像管理</h3>153<ul class="MenuBox">154 <?php if ($this->_tpl_vars['loginAdminData']['authority_type'] != $this->_tpl_vars['config']['define']['AUTHORITY_TYPE_ADVERTISING']): ?>155 <li><a href="<?php echo smarty_function_make_link(array('action' => 'action_image_List','getTags' => $this->_tpl_vars['getTag']), $this);?>156" target="contents">画像データ管理</a></li>157 <li><a href="<?php echo smarty_function_make_link(array('action' => 'action_image_ImageCategoryList','getTags' => $this->_tpl_vars['getTag']), $this);?>158" target="contents">画像データカテゴリー管理</a></li>159 <?php endif; ?>160 <li><a href="<?php echo smarty_function_make_link(array('action' => 'action_banner_List','getTags' => $this->_tpl_vars['getTag']), $this);?>161" target="contents">バナー画像管理</a></li>162 <li><a href="<?php echo smarty_function_make_link(array('action' => 'action_banner_BannerImageCategoryList','getTags' => $this->_tpl_vars['getTag']), $this);?>163" target="contents">バナー画像カテゴリー管理</a></li>164</ul>165<?php endif; ?>166<?php if (! ( $this->_tpl_vars['loginAdminData']['authority_type'] == $this->_tpl_vars['config']['define']['AUTHORITY_TYPE_SHUKEI'] )): ?>167<h3 class="MenuH3">登録ページ管理</h3>168<ul class="MenuBox">169 <?php if ($this->_tpl_vars['loginAdminData']['authority_type'] != $this->_tpl_vars['config']['define']['AUTHORITY_TYPE_ADVERTISING']): ?>170 <li><a href="<?php echo smarty_function_make_link(array('action' => 'action_registPage_RegistPageSearchList','getTags' => $this->_tpl_vars['getTag']), $this);?>171" target="contents">登録ページ一覧</a></li>172 <li><a href="<?php echo smarty_function_make_link(array('action' => 'action_registPage_RegistPageCategoryList','getTags' => $this->_tpl_vars['getTag']), $this);?>173" target="contents">登録ページカテゴリー設定</a></li>174 <?php endif; ?>175 <li><a href="<?php echo smarty_function_make_link(array('action' => 'action_registPage_DispRegistPageList','getTags' => $this->_tpl_vars['getTag']), $this);?>176" target="contents">登録ページ一覧表示</a></li>177</ul>178<?php endif; ?>179<?php if ($this->_tpl_vars['loginAdminData']['authority_type'] != $this->_tpl_vars['config']['define']['AUTHORITY_TYPE_SHUKEI']): ?>180<h3 class="MenuH3">テストアドレス管理</h3>181<ul class="MenuBox">182 <li><a href="<?php echo smarty_function_make_link(array('action' => 'action_testAddress_RegistTestAddressList','getTags' => $this->_tpl_vars['getTag']), $this);?>183" target="contents">テストアドレス一覧</a></li>184 <li><a href="<?php echo smarty_function_make_link(array('action' => 'action_testAddress_RegistTestAddressCategoryList','getTags' => $this->_tpl_vars['getTag']), $this);?>185" target="contents">テストアドレスカテゴリー設定</a></li>186</ul>187<?php endif; ?>188<?php if (! ( $this->_tpl_vars['loginAdminData']['authority_type'] == $this->_tpl_vars['config']['define']['AUTHORITY_TYPE_SHUKEI'] )): ?>189<h3 class="MenuH3">その他</h3>190<ul class="MenuBox">191 <li><a href="<?php echo smarty_function_make_link(array('action' => 'action_affiliate_AffiliateList','getTags' => $this->_tpl_vars['getTag']), $this);?>192" target="contents">登録時発行タグ設定</a></li>193 <li><a href="<?php echo smarty_function_make_link(array('action' => 'action_affiliate16_AffiliateList16','getTags' => $this->_tpl_vars['getTag']), $this);?>194" target="contents">登録時発行タグ設定(16桁用)</a></li>195 <?php if (! ( $this->_tpl_vars['loginAdminData']['authority_type'] == $this->_tpl_vars['config']['define']['AUTHORITY_TYPE_ADVERTISING'] || $this->_tpl_vars['loginAdminData']['authority_type'] == $this->_tpl_vars['config']['define']['AUTHORITY_TYPE_SHUKEI'] )): ?>196 <li><a href="<?php echo smarty_function_make_link(array('action' => 'action_siteContents_SiteContentsList','getTags' => $this->_tpl_vars['getTag']), $this);?>197" target="contents">サイト表示内容設定</a></li>198 <li><a href="<?php echo smarty_function_make_link(array('action' => 'action_autoMail_AutoMailSettingList','getTags' => $this->_tpl_vars['getTag']), $this);?>199" target="contents">リメール文設定</a></li>200 <li><a href="<?php echo smarty_function_make_link(array('action' => 'action_autoMail_AutoMailContentsList','getTags' => $this->_tpl_vars['getTag']), $this);?>201" target="contents">リメールコンテンツ設定</a></li>202 <li><a href="<?php echo smarty_function_make_link(array('action' => 'action_keyConvert_KeyConvertCategoryList','getTags' => $this->_tpl_vars['getTag']), $this);?>203" target="contents">システム変換管理カテゴリ設定</a></li>204 <li><a href="<?php echo smarty_function_make_link(array('action' => 'action_keyConvert_KeyConvertList','getTags' => $this->_tpl_vars['getTag']), $this);?>205" target="contents">システム変換管理</a></li>206 <?php endif; ?>207 <?php if ($this->_tpl_vars['loginAdminData']['authority_type'] == $this->_tpl_vars['config']['define']['AUTHORITY_TYPE_SYSTEM'] || $this->_tpl_vars['loginAdminData']['authority_type'] == $this->_tpl_vars['config']['define']['AUTHORITY_TYPE_MANAGE']): ?>208 <li><a href="<?php echo smarty_function_make_link(array('action' => 'action_maintenance_Maintenance','getTags' => $this->_tpl_vars['getTag']), $this);?>209" target="contents">メンテナンス</a></li>210 <li><a href="<?php echo smarty_function_make_link(array('action' => 'action_adminUser_AdminUserList','getTags' => $this->_tpl_vars['getTag']), $this);?>211" target="contents">管理者一覧</a></li>212 <li><a href="<?php echo smarty_function_make_link(array('action' => 'action_adminUser_AdminUserAccessLog','getTags' => $this->_tpl_vars['getTag']), $this);?>213" target="contents">管理者アクセスログ</a></li>214 <li><a href="<?php echo smarty_function_make_link(array('action' => 'action_baitai_BaitaiUserList','getTags' => $this->_tpl_vars['getTag']), $this);?>215" target="contents">媒体CHK管理者一覧</a></li>216 <li><a href="<?php echo smarty_function_make_link(array('action' => 'action_information_InformationOperatorList','getTags' => $this->_tpl_vars['getTag']), $this);?>217" target="contents">問い合わせ対応者一覧</a></li>218 <li><a href="<?php echo smarty_function_make_link(array('action' => 'action_user_registCsv','getTags' => $this->_tpl_vars['getTag']), $this);?>219" target="contents">CSVアップロード登録</a></li>220 <?php endif; ?>221 <?php if ($this->_tpl_vars['loginAdminData']['authority_type'] == $this->_tpl_vars['config']['define']['AUTHORITY_TYPE_SYSTEM']): ?>222 <li><a href="<?php echo smarty_function_make_link(array('action' => 'action_log_LogDeleteSetList','getTags' => $this->_tpl_vars['getTag']), $this);?>223" target="contents">ログ消し設定</a></li>224 <li><a href="<?php echo smarty_function_make_link(array('action' => 'action_registSite_RegistSiteList','getTags' => $this->_tpl_vars['getTag']), $this);?>225" target="contents">サイト間登録サイト設定</a></li>226 <li><a href="./Terminal/phpMinAdmin.php?server=<?php echo $this->_tpl_vars['config']['define']['DATABASE']['params']['host']; ?>227" target="_blank">Adminer</a>228 <?php endif; ?>229 <li><a href="<?php echo smarty_function_make_link(array('action' => 'action_freeWord_FreeWordList','getTags' => $this->_tpl_vars['getTag']), $this);?>230" target="contents">フリーワード設定</a></li>231 <?php if ($this->_tpl_vars['loginAdminData']['authority_type'] == $this->_tpl_vars['config']['define']['AUTHORITY_TYPE_SYSTEM']): ?>232 <li><a href="<?php echo smarty_function_make_link(array('action' => 'action_log_PaymentLogFileList','getTags' => $this->_tpl_vars['getTag']), $this);?>233" target="contents">決済ログファイル確認</a></li>234 <?php endif; ?>235 <?php if (! ( $this->_tpl_vars['loginAdminData']['authority_type'] == $this->_tpl_vars['config']['define']['AUTHORITY_TYPE_ADVERTISING'] || $this->_tpl_vars['loginAdminData']['authority_type'] == $this->_tpl_vars['config']['define']['AUTHORITY_TYPE_SHUKEI'] )): ?>236 <li><a href="http://www.nttdocomo.co.jp/service/imode/make/content/pictograph/tool/index.html" target="_blank">絵文字ダウンロード</a>237 <br>・絵文字入力はコチラのソフトをインストールしてください</li>238 <li><a href="http://kokogiko.s3.amazonaws.com/pict/pictgram_convert.html#docomo" target="_blank">絵文字対応表</a>239 <?php endif; ?>240</ul>241<?php endif; ?>242<?php if (! ( $this->_tpl_vars['loginAdminData']['authority_type'] == $this->_tpl_vars['config']['define']['AUTHORITY_TYPE_SHUKEI'] )): ?>243<h3 class="MenuH3">代理店媒体集計管理</h3>244<ul class="MenuBox">245 <li><a href="<?php echo $this->_tpl_vars['config']['define']['BAITAI_AGENCY_URL']; ?>246?action_Index=1<?php echo $this->_tpl_vars['agencyParamURL']; ?>247" target="_blank">代理店用媒体CHK</a></li>248 <li><a href="<?php echo smarty_function_make_link(array('action' => 'action_baitaiAgency_BaitaiAgencyList','getTags' => $this->_tpl_vars['getTag']), $this);?>249" target="contents">代理店管理</a></li>250 <li><a href="<?php echo smarty_function_make_link(array('action' => 'action_baitaiAgency_BaitaiAgencyAdminUserList','getTags' => $this->_tpl_vars['getTag']), $this);?>251" target="contents">代理店媒体CHK管理者一覧</a></li>252</ul>253<?php endif; ?>254<p id="Logout"><a href="<?php echo smarty_function_make_link(array('action' => 'action_Logout','getTags' => $this->_tpl_vars['getTag']), $this);?>255" target="_top">Logout</a></p>256</div>257</body>258</html>...

Full Screen

Full Screen

test-htmlbook-element.php

Source:test-htmlbook-element.php Github

copy

Full Screen

...69 public function test_Block() {70 $e = new \Pressbooks\HTMLBook\Block\Admonitions();71 $e->setDataType( 'important' );72 $e->appendContent( 'Hi!' );73 $this->assertEquals( $e->getTag(), 'div' );74 $this->assertEquals( '<div data-type="important">Hi!</div>', $e->render() );75 $e = new \Pressbooks\HTMLBook\Block\Blockquote();76 $e->setDataType( 'epigraph' );77 $e->appendContent( 'Hi!' );78 $this->assertEquals( $e->getTag(), 'blockquote' );79 $this->assertEquals( '<blockquote data-type="epigraph">Hi!</blockquote>', $e->render() );80 $e = new \Pressbooks\HTMLBook\Block\CodeListings();81 $e->setCodeLanguage( 'php' );82 $e->setAttributes( [ 'class="foobar"' ] );83 $e->appendContent( 'Hi!' );84 $this->assertEquals( $e->getTag(), 'pre' );85 $this->assertEquals( '<pre data-type="programlisting" class="foobar" data-code-language="php">Hi!</pre>', $e->render() );86 $e = new \Pressbooks\HTMLBook\Block\DefinitionLists();87 $e->appendContent( 'Hi!' );88 $e->setAttributes( [ 'class' => 'foobar' ] );89 $this->assertEquals( $e->getTag(), 'dl' );90 $this->assertEquals( '<dl class="foobar">Hi!</dl>', $e->render() );91 $e = new \Pressbooks\HTMLBook\Block\Equation();92 $e->appendContent( 'Hi!' );93 $this->assertEquals( $e->getTag(), 'div' );94 $this->assertEquals( '<div data-type="equation">Hi!</div>', $e->render() );95 $e = new \Pressbooks\HTMLBook\Block\Examples();96 $e->appendContent( 'Hi!' );97 $this->assertEquals( $e->getTag(), 'div' );98 $this->assertEquals( '<div data-type="example">Hi!</div>', $e->render() );99 $e = new \Pressbooks\HTMLBook\Block\Figures();100 $e->appendContent( 'Hi!' );101 $this->assertEquals( $e->getTag(), 'figure' );102 $this->assertEquals( '<figure>Hi!</figure>', $e->render() );103 $e = new \Pressbooks\HTMLBook\Block\ItemizedLists();104 $e->appendContent( 'Hi!' );105 $this->assertEquals( $e->getTag(), 'ul' );106 $this->assertEquals( '<ul>Hi!</ul>', $e->render() );107 $e = new \Pressbooks\HTMLBook\Block\OrderedLists();108 $e->appendContent( 'Hi!' );109 $this->assertEquals( $e->getTag(), 'ol' );110 $this->assertEquals( '<ol>Hi!</ol>', $e->render() );111 $e = new \Pressbooks\HTMLBook\Block\Paragraph();112 $e->appendContent( 'Hi!' );113 $this->assertEquals( $e->getTag(), 'p' );114 $this->assertEquals( '<p>Hi!</p>', $e->render() );115 $e = new \Pressbooks\HTMLBook\Block\ReferenceEntries();116 $e->appendContent( 'Hi!' );117 $this->assertEquals( $e->getTag(), 'div' );118 $this->assertEquals( '<div class="refentry">Hi!</div>', $e->render() );119 $e = new \Pressbooks\HTMLBook\Block\Sidebar();120 $e->appendContent( 'Hi!' );121 $this->assertEquals( $e->getTag(), 'aside' );122 $this->assertEquals( '<aside data-type="sidebar">Hi!</aside>', $e->render() );123 $e = new \Pressbooks\HTMLBook\Block\Tables();124 $e->appendContent( 'Hi!' );125 $this->assertEquals( $e->getTag(), 'table' );126 $this->assertEquals( '<table>Hi!</table>', $e->render() );127 }128 /**129 * @group htmlbook130 */131 public function test_Component() {132 $e = new \Pressbooks\HTMLBook\Component\Appendix();133 $e->appendContent( 'Hi!' );134 $this->assertEquals( $e->getTag(), 'section' );135 $this->assertEquals( '<section data-type="appendix">Hi!</section>', $e->render() );136 $e = new \Pressbooks\HTMLBook\Component\Backmatter();137 $e->setDataType( 'conclusion' );138 $e->appendContent( 'Hi!' );139 $this->assertEquals( $e->getTag(), 'section' );140 $this->assertEquals( '<section data-type="conclusion">Hi!</section>', $e->render() );141 $e = new \Pressbooks\HTMLBook\Component\Bibliography();142 $e->appendContent( 'Hi!' );143 $this->assertEquals( $e->getTag(), 'section' );144 $this->assertEquals( '<section data-type="bibliography">Hi!</section>', $e->render() );145 $e = new \Pressbooks\HTMLBook\Component\Book();146 $e->appendContent( 'Hi!' );147 $this->assertEquals( $e->getTag(), 'body' );148 $this->assertEquals( '<body data-type="book">Hi!</body>', $e->render() );149 $e = new \Pressbooks\HTMLBook\Component\Chapter();150 $e->appendContent( 'Hi!' );151 $this->assertEquals( $e->getTag(), 'section' );152 $this->assertEquals( '<section data-type="chapter">Hi!</section>', $e->render() );153 $e = new \Pressbooks\HTMLBook\Component\Frontmatter();154 $e->appendContent( 'Hi!' );155 $e->setDataType( 'dedication' );156 $this->assertEquals( $e->getTag(), 'section' );157 $this->assertEquals( '<section data-type="dedication">Hi!</section>', $e->render() );158 $e = new \Pressbooks\HTMLBook\Component\Glossary();159 $e->appendContent( 'Hi!' );160 $this->assertEquals( $e->getTag(), 'section' );161 $this->assertEquals( '<section data-type="glossary">Hi!</section>', $e->render() );162 $e = new \Pressbooks\HTMLBook\Component\Index();163 $e->appendContent( 'Hi!' );164 $this->assertEquals( $e->getTag(), 'section' );165 $this->assertEquals( '<section data-type="index">Hi!</section>', $e->render() );166 $e = new \Pressbooks\HTMLBook\Component\Part();167 $e->appendContent( 'Hi!' );168 $this->assertEquals( $e->getTag(), 'div' );169 $this->assertEquals( '<div data-type="part">Hi!</div>', $e->render() );170 $e = new \Pressbooks\HTMLBook\Component\Preface();171 $e->setDataType( 'introduction' );172 $e->appendContent( 'Hi!' );173 $this->assertEquals( $e->getTag(), 'section' );174 $this->assertEquals( '<section data-type="introduction">Hi!</section>', $e->render() );175 $e = new \Pressbooks\HTMLBook\Component\Sections();176 $e->setDataType( 'sect5' );177 $e->appendContent( 'Hi!' );178 $this->assertEquals( $e->getTag(), 'section' );179 $this->assertEquals( '<section data-type="sect5">Hi!</section>', $e->render() );180 $e = new \Pressbooks\HTMLBook\Component\TableOfContents();181 $e->appendContent( 'Hi!' );182 $this->assertEquals( $e->getTag(), 'nav' );183 $this->assertEquals( '<nav data-type="toc">Hi!</nav>', $e->render() );184 }185 /**186 * @group htmlbook187 */188 public function test_Heading() {189 $e = new \Pressbooks\HTMLBook\Heading\H1();190 $e->appendContent( 'Hi!' );191 $this->assertEquals( $e->getTag(), 'h1' );192 $this->assertEquals( '<h1>Hi!</h1>', $e->render() );193 $e = new \Pressbooks\HTMLBook\Heading\H2();194 $e->appendContent( 'Hi!' );195 $this->assertEquals( $e->getTag(), 'h2' );196 $this->assertEquals( '<h2>Hi!</h2>', $e->render() );197 $e = new \Pressbooks\HTMLBook\Heading\H3();198 $e->appendContent( 'Hi!' );199 $this->assertEquals( $e->getTag(), 'h3' );200 $this->assertEquals( '<h3>Hi!</h3>', $e->render() );201 $e = new \Pressbooks\HTMLBook\Heading\H4();202 $e->appendContent( 'Hi!' );203 $this->assertEquals( $e->getTag(), 'h4' );204 $this->assertEquals( '<h4>Hi!</h4>', $e->render() );205 $e = new \Pressbooks\HTMLBook\Heading\H5();206 $e->appendContent( 'Hi!' );207 $this->assertEquals( $e->getTag(), 'h5' );208 $this->assertEquals( '<h5>Hi!</h5>', $e->render() );209 $e = new \Pressbooks\HTMLBook\Heading\H6();210 $e->appendContent( 'Hi!' );211 $this->assertEquals( $e->getTag(), 'h6' );212 $this->assertEquals( '<h6>Hi!</h6>', $e->render() );213 $e = new \Pressbooks\HTMLBook\Heading\Header();214 $e->appendContent( 'Hi!' );215 $this->assertEquals( $e->getTag(), 'header' );216 $this->assertEquals( '<header>Hi!</header>', $e->render() );217 }218 /**219 * @group htmlbook220 */221 public function test_Inline() {222 $e = new \Pressbooks\HTMLBook\Inline\CrossReferences();223 $e->appendContent( 'Hi!' );224 $this->assertEquals( $e->getTag(), 'a' );225 $this->assertEquals( '<a data-type="xref">Hi!</a>', $e->render() );226 $e = new \Pressbooks\HTMLBook\Inline\Emphasis();227 $e->appendContent( 'Hi!' );228 $this->assertEquals( $e->getTag(), 'em' );229 $this->assertEquals( '<em>Hi!</em>', $e->render() );230 $e = new \Pressbooks\HTMLBook\Inline\Footnote();231 $e->appendContent( 'Hi!' );232 $this->assertEquals( $e->getTag(), 'span' );233 $this->assertEquals( '<span data-type="footnote">Hi!</span>', $e->render() );234 $e = new \Pressbooks\HTMLBook\Inline\General();235 $e->appendContent( 'Hi!' );236 $this->assertEquals( $e->getTag(), 'span' );237 $this->assertEquals( '<span>Hi!</span>', $e->render() );238 $e = new \Pressbooks\HTMLBook\Inline\IndexTerm();239 $e->appendContent( 'Hi!' );240 $this->assertEquals( $e->getTag(), 'a' );241 $this->assertEquals( '<a data-type="indexterm">Hi!</a>', $e->render() );242 $e = new \Pressbooks\HTMLBook\Inline\Literal();243 $e->appendContent( 'Hi!' );244 $this->assertEquals( $e->getTag(), 'code' );245 $this->assertEquals( '<code>Hi!</code>', $e->render() );246 $e = new \Pressbooks\HTMLBook\Inline\Strong();247 $e->appendContent( 'Hi!' );248 $this->assertEquals( $e->getTag(), 'strong' );249 $this->assertEquals( '<strong>Hi!</strong>', $e->render() );250 $e = new \Pressbooks\HTMLBook\Inline\Subscripts();251 $e->appendContent( 'Hi!' );252 $this->assertEquals( $e->getTag(), 'sub' );253 $this->assertEquals( '<sub>Hi!</sub>', $e->render() );254 $e = new \Pressbooks\HTMLBook\Inline\Superscripts();255 $e->appendContent( 'Hi!' );256 $this->assertEquals( $e->getTag(), 'sup' );257 $this->assertEquals( '<sup>Hi!</sup>', $e->render() );258 }259 /**260 * @group htmlbook261 */262 public function test_Interactive() {263 $e = new \Pressbooks\HTMLBook\Interactive\Audio();264 $e->appendContent( 'Hi!' );265 $this->assertEquals( $e->getTag(), 'audio' );266 $this->assertEquals( '<audio>Hi!</audio>', $e->render() );267 $e = new \Pressbooks\HTMLBook\Interactive\Canvas();268 $e->appendContent( 'Hi!' );269 $this->assertEquals( $e->getTag(), 'canvas' );270 $this->assertEquals( '<canvas>Hi!</canvas>', $e->render() );271 $e = new \Pressbooks\HTMLBook\Interactive\Video();272 $e->appendContent( 'Hi!' );273 $this->assertEquals( $e->getTag(), 'video' );274 $this->assertEquals( '<video>Hi!</video>', $e->render() );275 }276}...

Full Screen

Full Screen

HtmlArmor.php

Source:HtmlArmor.php Github

copy

Full Screen

...26 }27 public function setTag(string $etiqueta) {28 $this->modelo['etiqueta'] = $etiqueta;29 }30 public function getTag() {31 return $this->modelo['etiqueta'];32 }33 public function setAtributos(array $atributos) {34 $attr = '';35 foreach($atributos as $key => $value) {36 //para agregar espacio y palabra37 if($key === '!') {38 $attr .= ' '.$value;39 }else{40 $attr .= ' '.$key.'="'.$value.'"';41 }42 }43 $this->modelo['atributos'] = $attr;44 }45 public function getAtributos() {46 return $this->modelo['atributos'];47 }48 public function setContenido($content) {49 $this->modelo['contenido'] = is_array($content) ? implode("",$content) : $content;50 }51 public function getContenido() {52 return $this->modelo['contenido'];53 }54 public function tieneAtributos() {55 if(56 $this->getAtributos() === null ||57 $this->getAtributos() === 'null' || 58 empty($this->getAtributos())59 ) {60 return false;61 }else{62 return true;63 }64 }65 public function tieneEtiqueta() {66 if(67 $this->getTag() === null || 68 $this->getTag() === 'null' || 69 empty($this->getTag())70 ) {71 return false;72 }else{73 return true;74 }75 }76 public function tieneContenido() {77 if(78 $this->getContenido() === null || 79 $this->getContenido() === 'null' || 80 empty($this->getContenido())81 ) {82 return false;83 }else{84 return true;85 }86 }87 public function emptyTag() {88 return "<".$this->getTag().'></'.$this->getTag().'>';89 }90 public function emptyAutoTag() {91 return "<".$this->getTag().'/>';92 }93 public function contentTag() {94 return "<".$this->getTag().'>'.$this->getContenido().'</'.$this->getTag().'>';95 }96 public function attrTag() {97 return "<".$this->getTag().$this->getAtributos().'></'.$this->getTag().'>';98 }99 public function attrAutoTag() {100 if($this->getTag() === "!DOCTYPE") {101 return "<".$this->getTag().$this->getAtributos().'>';102 }else{103 return "<".$this->getTag().$this->getAtributos().'/>';104 }105 }106 public function attrContentTag() {107 return "<".$this->getTag().$this->getAtributos().'>'.$this->getContenido().'</'.$this->getTag().'>';108 }109 public function caminos_de_construccion(int $way) {110 if ($way === 1) {111 $progreso = 'etiqueta normal';112 //si no tiene atributos 113 #if($this->getAtributos() === null || $this->getAtributos() === 'null' || empty($this->getAtributos())) {114 if(!$this->tieneAtributos()) {115 #if($this->getTag() === null || $this->getTag() === 'null' || empty($this->getTag())){116 if(!$this->tieneEtiqueta()){117 $progreso = "no se ha definido la etiqueta";118 }else{119 #if ($this->getContenido() === null || $this->getContenido() === 'null' || empty($this->getContenido())){120 if (!$this->tieneContenido()){121 #$progreso = "<".$this->getTag().'></'.$this->getTag().'>';122 $progreso = $this->emptyTag();123 }else{124 #$progreso = "<".$this->getTag().'>'.$this->getContenido().'</'.$this->getTag().'>';125 $progreso = $this->contentTag();126 }127 }128 $progreso = ($progreso === 'etiqueta normal') ? $progreso = "efectivamente es null o 'null' o vacio" : $progreso;129 }else{//si si tiene atributos130 #if ($this->getContenido() === null || $this->getContenido() === 'null' || empty($this->getContenido())){131 if (!$this->tieneContenido()){132 #$progreso = "<".$this->getTag().$this->getAtributos().'></'.$this->getTag().'>';133 $progreso = $this->attrTag();134 }else{135 #$progreso = "<".$this->getTag().$this->getAtributos().'>'.$this->getContenido().'</'.$this->getTag().'>';136 $progreso = $this->attrContentTag();137 }138 }139 return $progreso;140 }else{141 $progreso = 'selfclosing tag';142 if(!$this->tieneAtributos()) {143 if(!$this->tieneEtiqueta()){144 $progreso = "no se ha definido la etiqueta";145 }else{146 #$progreso = "<".$this->getTag().'/>';147 $progreso = $this->emptyAutoTag();148 $this->setContenido("");149 }150 }else{151 #$progreso = "<".$this->getTag().$this->getAtributos().'/>';152 $progreso = $this->attrAutoTag();153 $this->setContenido("");154 }155 return $progreso;156 }157 }158 public function etiqueta_atributos_contenido() {159 switch($this->getType()) {160 case 'auto':161 return $this->caminos_de_construccion(0);162 break;163 default:164 return $this->caminos_de_construccion(1);165 break;...

Full Screen

Full Screen

getTag

Using AI Code Generation

copy

Full Screen

1require_once('tag.php');2$tag = new Tag();3$tag->getTag();4require_once('tag.php');5$tag = new Tag();6$tag->getTag();7require_once('tag.php');8$tag = new Tag();9$tag->getTag();10require_once('tag.php');11$tag = new Tag();12$tag->getTag();13class Tag{14 public function getTag(){15 echo "This is a tag";16 }17}

Full Screen

Full Screen

getTag

Using AI Code Generation

copy

Full Screen

1include_once('tag.php');2$tag = new Tag();3$tag->getTag("1");4include_once('tag.php');5$tag = new Tag();6$tag->getTag("2");7include_once('tag.php');8$tag = new Tag();9$tag->getTag("3");10include_once('tag.php');11$tag = new Tag();12$tag->getTag("4");13include_once('tag.php');14$tag = new Tag();15$tag->getTag("5");16{17 public function getTag($id)18 {19 echo $tag;20 }21}

Full Screen

Full Screen

getTag

Using AI Code Generation

copy

Full Screen

1include_once 'tag.php';2$tagObj = new tag();3$tagObj->getTag();4include_once 'tag.php';5$tagObj = new tag();6$tagObj->getTag();

Full Screen

Full Screen

getTag

Using AI Code Generation

copy

Full Screen

1include('tag.class.php');2$tag = new tag();3$tag->getTag();4echo $tag->tag;5class tag{6 var $tag;7 function getTag(){8 $this->tag = $_GET['tag'];9 }10}

Full Screen

Full Screen

getTag

Using AI Code Generation

copy

Full Screen

1$tag = new tag();2$tag->getTag();3Related Posts: PHP - Delete file using unlink() function4PHP - Get file extension using pathinfo() function5PHP - Get file size using filesize() function6PHP - Get file name using pathinfo() function7PHP - Get file name using basename() function8PHP - Get file name using substr() function9PHP - Get file name using explode() function10PHP - Get file name using preg_replace() function11PHP - Get file name using str_replace() function12PHP - Get file name using strtr() function13PHP - Get file name using str_split() function14PHP - Get file name using strrev() function15PHP - Get file name using strrchr() function16PHP - Get file name using strpbrk() function17PHP - Get file name using strpos() function

Full Screen

Full Screen

Automation Testing Tutorials

Learn to execute automation testing from scratch with LambdaTest Learning Hub. Right from setting up the prerequisites to run your first automation test, to following best practices and diving deeper into advanced test scenarios. LambdaTest Learning Hubs compile a list of step-by-step guides to help you be proficient with different test automation frameworks i.e. Selenium, Cypress, TestNG etc.

LambdaTest Learning Hubs:

YouTube

You could also refer to video tutorials over LambdaTest YouTube channel to get step by step demonstration from industry experts.

Run Atoum automation tests on LambdaTest cloud grid

Perform automation testing on 3000+ real desktop and mobile devices online.

Trigger getTag code on LambdaTest Cloud Grid

Execute automation tests with getTag on a cloud-based Grid of 3000+ real browsers and operating systems for both web and mobile applications.

Test now for Free

Try LambdaTest Now !!

Get 100 minutes of automation test minutes FREE!!

Next-Gen App & Browser Testing Cloud

Was this article helpful?

Helpful

NotHelpful