本文整理汇总了PHP中EntryManager::getListOfEntryBriefByLanguage方法的典型用法代码示例。如果您正苦于以下问题:PHP EntryManager::getListOfEntryBriefByLanguage方法的具体用法?PHP EntryManager::getListOfEntryBriefByLanguage怎么用?PHP EntryManager::getListOfEntryBriefByLanguage使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类EntryManager
的用法示例。
在下文中一共展示了EntryManager::getListOfEntryBriefByLanguage方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: substr
//require("search.php");
require_once BUSINESS_DIR_ENTRY . "EntryManager.php";
require_once BUSINESS_DIR_TRANSLREQ . "TranslationRequestManager.php";
require_once BUSINESS_DIR_SUBSCRIPTION . 'Subscription.php';
require_once BUSINESS_DIR_SUBSCRIPTION . 'SubscriptionManager.php';
require_once BUSINESS_DIR_USER . 'User.php';
require_once BUSINESS_DIR_USER_LOGIN . 'UserLoginManager.php';
//require DB_CONNECTION . 'DBHelper.php';
//require DB_CONNECTION . 'datainfo.php';
$lang = substr($_SERVER['HTTP_ACCEPT_LANGUAGE'], 0, 2);
// 1
//$lang = 'ru';
//echo "the language: " . $lang;
$em = new EntryManager();
$trm = new TranslationRequestManager();
$aryOfEntry = $em->getListOfEntryBriefByLanguage($lang);
$aryOfTreq = $trm->getListOfTreqByLang($lang);
?>
<div id="index_table_container" align="center">
<!-- left column -->
<div>
<div id="LeftCol">
<object id="obj"
type="text/html"
data="views/entry/search_phrase_examples.html">
</object>
</div><!--LeftCol-->
<div id="MidCol">
<div>
<div class="container" style="border-collapse: inherit; width: 99%; font-size: 20px;">
<div class="heading">