当前位置: 首页>>代码示例>>PHP>>正文


PHP Section::getLanguageId方法代码示例

本文整理汇总了PHP中Section::getLanguageId方法的典型用法代码示例。如果您正苦于以下问题:PHP Section::getLanguageId方法的具体用法?PHP Section::getLanguageId怎么用?PHP Section::getLanguageId使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在Section的用法示例。


在下文中一共展示了Section::getLanguageId方法的5个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。

示例1: createBlog

 /**
  * Create blog article
  *
  * @param string $title
  * @param Section $section
  * @return Article
  */
 public function createBlog($title, \Section $section)
 {
     $article = new \Article($section->getLanguageId());
     $article->create($this->config['article_type'], $title, $section->getPublicationId(), $section->getIssueNumber(), $section->getSectionNumber());
     return $article;
 }
开发者ID:nidzix,项目名称:Newscoop,代码行数:13,代码来源:BlogService.php

示例2: createBlog

 /**
  * Create blog article
  *
  * @param  string  $title
  * @param  Section $section
  * @return Article
  */
 public function createBlog($title, \Section $section)
 {
     $article = new \Article($section->getLanguageId());
     $article->create($this->config['article_type'], $title, $section->getPublicationId(), $section->getIssueNumber(), $section->getSectionNumber());
     $qb = $this->em->createQueryBuilder();
     $qb->select('atf')->from('\\Newscoop\\Entity\\ArticleTypeField', 'atf')->where("atf.typeHack = ?1 AND atf.name IS NOT NULL AND atf.name = 'NULL'")->setParameter(1, $this->config['article_type']);
     $articleTypeField = $qb->getQuery()->getOneOrNullResult();
     $article->setCommentsEnabled($articleTypeField->getCommentsEnabled());
     return $article;
 }
开发者ID:sourcefabric,项目名称:newscoop,代码行数:17,代码来源:BlogService.php

示例3: Language

$languageObj = new Language($Language);
if (!is_object($languageObj)) {
    $languageObj = new Language(1);
}
//$editorLanguage = camp_session_get('TOL_Language', $languageObj->getCode());
$editorLanguage = !empty($_COOKIE['TOL_Language']) ? $_COOKIE['TOL_Language'] : $languageObj->getCode();
editor_load_tinymce('cDescription', $g_user, 0, $editorLanguage, 'section');
?>
<script type="text/javascript" src="<?php echo $Campsite['WEBSITE_URL']; ?>/js/campsite.js"></script>

<table border="0" cellspacing="0" cellpadding="1" class="action_buttons" style="padding-top: 5px;">
<tr>
  <td><a href="/<?php echo $ADMIN; ?>/sections/?Pub=<?php p($Pub); ?>&Issue=<?php p($issueObj->getIssueNumber()); ?>&Language=<?php p($issueObj->getLanguageId()); ?>"><img src="<?php echo $Campsite["ADMIN_IMAGE_BASE_URL"]; ?>/left_arrow.png" border="0" /></a></td>
  <td><a href="/<?php echo $ADMIN; ?>/sections/?Pub=<?php p($Pub); ?>&Issue=<?php p($issueObj->getIssueNumber()); ?>&Language=<?php p($issueObj->getLanguageId()); ?>"><b><?php putGS("Section List"); ?></b></a></td>
  <td style="padding-left: 20px;"><a href="/<?php echo $ADMIN; ?>/articles/?f_publication_id=<?php p($Pub); ?>&f_issue_number=<?php p($sectionObj->getIssueNumber()); ?>&f_section_number=<?php p($sectionObj->getSectionNumber()); ?>&f_language_id=<?php p($sectionObj->getLanguageId()); ?>"><b><?php putGS("Go To Articles"); ?></b></a></td>
  <td><a href="/<?php echo $ADMIN; ?>/articles/?f_publication_id=<?php p($Pub); ?>&f_issue_number=<?php p($sectionObj->getIssueNumber()); ?>&f_section_number=<?php p($sectionObj->getSectionNumber()); ?>&f_language_id=<?php p($sectionObj->getLanguageId()); ?>"><img src="<?php echo $Campsite["ADMIN_IMAGE_BASE_URL"]; ?>/go_to.png" border="0" /></a></td>
</tr>
</table>

<p>
<table border="0" cellspacing="0" cellpadding="1" class="action_buttons">
<tr>
  <td><a href="add.php?<?php p($url_args1); ?>"><img src="<?php echo $Campsite["ADMIN_IMAGE_BASE_URL"]; ?>/add.png" border="0" /></a></td>
  <td><a href="add.php?<?php p($url_args1); ?>"><b><?php putGS("Add new section"); ?></b></a></td>
  <td style="padding-left: 20px;"><a href="duplicate.php?<?php p($url_args2); ?>"><img src="<?php echo $Campsite["ADMIN_IMAGE_BASE_URL"]; ?>/duplicate.png" border="0" /></a></td>
  <td><a href="duplicate.php?<?php p($url_args2); ?>" ><b><?php putGS("Duplicate"); ?></b></a></td>
  <td style="padding-left: 20px;"><a href="del.php?<?php p($url_args2); ?>"><img src="<?php echo $Campsite["ADMIN_IMAGE_BASE_URL"]; ?>/delete.png" border="0" /></a></td>
  <td><a href="del.php?<?php p($url_args2); ?>" ><b><?php putGS("Delete"); ?></b></a></td>
</tr>
</table>
开发者ID:nistormihai,项目名称:Newscoop,代码行数:30,代码来源:edit.php

示例4:

?>
</b></a></td>
  <td style="padding-left: 20px;"><a href="/<?php 
echo $ADMIN;
?>
/articles/?f_publication_id=<?php 
p($Pub);
?>
&f_issue_number=<?php 
p($sectionObj->getIssueNumber());
?>
&f_section_number=<?php 
p($sectionObj->getSectionNumber());
?>
&f_language_id=<?php 
p($sectionObj->getLanguageId());
?>
"><b><?php 
putGS("Go To Articles");
?>
</b></a></td>
  <td><a href="/<?php 
echo $ADMIN;
?>
/articles/?f_publication_id=<?php 
p($Pub);
?>
&f_issue_number=<?php 
p($sectionObj->getIssueNumber());
?>
&f_section_number=<?php 
开发者ID:nidzix,项目名称:Newscoop,代码行数:31,代码来源:edit.php

示例5: CustomValidator_DuplicateSection

    $f_dest_publication_id = $f_src_publication_id;
    $destPublicationObj = camp_array_peek($allPublications);
}
$allIssues = array();
if ($f_dest_publication_id > 0) {
    // Get the most recent 50 Issues...if they want something farther back, we are in trouble.
    $sqlOptions = array("LIMIT" => 50, "ORDER BY" => array("Number" => "DESC"));
    $allIssues = Issue::GetIssues($f_dest_publication_id, $f_language_id, null, null, null, false, $sqlOptions, true);
    if (count($allIssues) == 1) {
        $f_dest_issue_number = $f_src_issue_number;
    }
}
$allSections = array();
$destIssueObj = null;
if ($f_dest_issue_number > 0) {
    $destIssueObj = new Issue($f_dest_publication_id, $sectionObj->getLanguageId(), $f_dest_issue_number);
    $allSections = Section::GetSections($f_dest_publication_id, $f_dest_issue_number, $sectionObj->getLanguageId(), null, null, null, true);
}
$topArray = array('Pub' => $publicationObj, 'Issue' => $issueObj, 'Section' => $sectionObj);
camp_html_content_top(getGS('Duplicate section'), $topArray, true, true);
?>
<script>
function CustomValidator_DuplicateSection(form) {
    // Verify radio button checked
    if (!form.section_chooser[0].checked && !form.section_chooser[1].checked) {
        alert("<?php 
putGS("Please select either '\$1' or '\$2'.", getGS('Existing Section'), getGS('New Section'));
?>
");
        return false;
    }
开发者ID:nidzix,项目名称:Newscoop,代码行数:31,代码来源:duplicate.php


注:本文中的Section::getLanguageId方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。