當前位置: 首頁>>代碼示例>>PHP>>正文


PHP Section::getLanguageName方法代碼示例

本文整理匯總了PHP中Section::getLanguageName方法的典型用法代碼示例。如果您正苦於以下問題:PHP Section::getLanguageName方法的具體用法?PHP Section::getLanguageName怎麽用?PHP Section::getLanguageName使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在Section的用法示例。


在下文中一共展示了Section::getLanguageName方法的3個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。

示例1: section

putGS("Delete section");
?>
 </B>
		<HR NOSHADE SIZE="1" COLOR="BLACK">
	</TD>
</TR>
<TR>
	<TD COLSPAN="2" align="center"><?php 
putGS('There are $1 articles in this section.', '<b>' . $numArticles . '</b>');
?>
</TD>
</TR>
<TR>
	<TD COLSPAN="2" align="center">
                <INPUT TYPE="radio" NAME="f_delete_all_section_translations" class="input_checkbox" value="N" checked> <?php 
putGS('Delete only this section ($1)', $sectionObj->getLanguageName());
?>
                <br/>
                <INPUT TYPE="radio" NAME="f_delete_all_section_translations" class="input_checkbox" value="Y"> <?php 
putGS('Delete all translations of this section');
?>
                <br />
                <?php 
foreach ($sectionTranslations as $key => $sectionTranslation) {
    echo $sectionTranslation->getLanguageName() . '<br />';
}
?>
        </TD>
</TR>
<TR>
	<TD COLSPAN="2" align="center">
開發者ID:nidzix,項目名稱:Newscoop,代碼行數:31,代碼來源:del.php

示例2: array

?>
/sections/do_del.php">
<TABLE BORDER="0" CELLSPACING="0" CELLPADDING="8" class="message_box">
<?php 
echo SecurityToken::FormParameter();
?>
<TR>
	<TD COLSPAN="2" align="center"><?php 
echo $translator->trans('There are $1 articles in this section.', array('$1' => '<b>' . $numArticles . '</b>'), 'sections');
?>
</TD>
</TR>
<TR>
	<TD COLSPAN="2" align="center">
                <INPUT TYPE="radio" NAME="f_delete_all_section_translations" class="input_checkbox" value="N" checked> <?php 
echo $translator->trans('Delete only this section ($1)', array('$1' => $sectionObj->getLanguageName()), 'sections');
?>
                <br/>
                <INPUT TYPE="radio" NAME="f_delete_all_section_translations" class="input_checkbox" value="Y"> <?php 
echo $translator->trans('Delete all translations of this section', array(), 'sections');
?>
                <br />
                <?php 
foreach ($sectionTranslations as $key => $sectionTranslation) {
    echo $sectionTranslation->getLanguageName() . '<br />';
}
?>
        </TD>
</TR>
<TR>
	<TD COLSPAN="2" align="center">
開發者ID:alvsgithub,項目名稱:Newscoop,代碼行數:31,代碼來源:del.php

示例3: putGS

<P>
<FORM METHOD="POST" ACTION="do_del.php">
<TABLE BORDER="0" CELLSPACING="0" CELLPADDING="8" class="message_box">
<?php echo SecurityToken::FormParameter(); ?>
<TR>
	<TD COLSPAN="2">
		<B> <?php  putGS("Delete section"); ?> </B>
		<HR NOSHADE SIZE="1" COLOR="BLACK">
	</TD>
</TR>
<TR>
	<TD COLSPAN="2" align="center"><?php putGS('There are $1 articles in this section.', '<b>'.$numArticles.'</b>'); ?></TD>
</TR>
<TR>
	<TD COLSPAN="2" align="center">
                <INPUT TYPE="radio" NAME="f_delete_all_section_translations" class="input_checkbox" value="N" checked> <?php putGS('Delete only this section ($1)', $sectionObj->getLanguageName()); ?>
                <br/>
                <INPUT TYPE="radio" NAME="f_delete_all_section_translations" class="input_checkbox" value="Y"> <?php putGS('Delete all translations of this section'); ?>
                <br />
                <?php
                foreach ($sectionTranslations as $key => $sectionTranslation) {
                    echo $sectionTranslation->getLanguageName() . '<br />';
                }
                ?>
        </TD>
</TR>
<TR>
	<TD COLSPAN="2" align="center">
                <INPUT TYPE="radio" NAME="f_delete_all_articles_translations" class="input_checkbox" value="N" checked> <?php putGS('Delete all articles written in $1 language from this section', $sectionObj->getLanguageName()); ?>
                <br/>
                <INPUT TYPE="radio" NAME="f_delete_all_articles_translations" class="input_checkbox" value="Y"> <?php putGS('Delete all articles and all of their translations'); ?>
開發者ID:nistormihai,項目名稱:Newscoop,代碼行數:31,代碼來源:del.php


注:本文中的Section::getLanguageName方法示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。