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


PHP Issue::getPublicationDate方法代码示例

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


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

示例1: getGS

			<TD>
				<?php 
    if ($issueObj->getWorkflowStatus() == 'Y') {
        $t2 = getGS('Published');
        $t3 = getGS('Not published');
    } else {
        $t2 = getGS('Not published');
        $t3 = getGS('Published');
    }
    ?>

				<?php 
    if ($issueObj->getWorkflowStatus() == 'Y') {
        ?>
				<INPUT TYPE="TEXT" class="input_text" NAME="f_publication_date" SIZE="20" MAXLENGTH="19" value="<?php 
        p(htmlspecialchars($issueObj->getPublicationDate()));
        ?>
">
				<?php 
    }
    ?>
				<A HREF="/<?php 
    echo $ADMIN;
    ?>
/issues/do_status.php?Pub=<?php 
    p($Pub);
    ?>
&Issue=<?php 
    p($issueObj->getIssueNumber());
    ?>
&Language=<?php 
开发者ID:nidzix,项目名称:Newscoop,代码行数:31,代码来源:edit.php

示例2: GetPublicationDates

	/**
	 * @param int $p_publicationId
	 *
	 * @param int $p_languageId
	 *
	 * @param int $p_skipCache
	 *
	 *
	 * @return mixed
	 *      array of issue publication dates
	 *      null if query does not match any issue
	 */
	public static function GetPublicationDates($p_publicationId,
						   $p_languageId,
						   $p_skipCache = false)
	{
	    global $g_ado_db;
	    $queryStr = 'SELECT Number FROM Issues '
	        . 'WHERE IdPublication = ' . $p_publicationId . ' AND '
	        . 'IdLanguage = ' . $p_languageId . " AND Published = 'Y'";
	    $rows = $g_ado_db->GetAll($queryStr);

	    $dates = array();
	    if (is_array($rows)) {
	    	foreach ($rows as $row) {
		    $tmpObj = new Issue($p_publicationId, $p_languageId,
					$row['Number']);
		    if ($tmpObj->exists()) {
		        $dates[] = $tmpObj->getPublicationDate();
		    }
	    	}
	    }
	    if (empty($dates)) {
	        return null;
	    }

	    return array_unique($dates);
	} // fn GetPublicationDates
开发者ID:nistormihai,项目名称:Newscoop,代码行数:38,代码来源:Issue.php

示例3: putGS

		<TR>
			<TD ALIGN="RIGHT"><?php  putGS("Publication date<BR><SMALL>(yyyy-mm-dd)</SMALL>"); ?>:</TD>
			<TD>
				<?php
				if ($issueObj->getWorkflowStatus() == 'Y') {
					$t2 = getGS('Published');
					$t3 = getGS('Not published');
				}
				else {
					$t2 = getGS('Not published');
					$t3 = getGS('Published');
				}
				?>

				<?php if ($issueObj->getWorkflowStatus() == 'Y') { ?>
				<INPUT TYPE="TEXT" class="input_text" NAME="f_publication_date" SIZE="20" MAXLENGTH="19" value="<?php  p(htmlspecialchars($issueObj->getPublicationDate())); ?>">
				<?php } ?>
				<A HREF="/<?php echo $ADMIN; ?>/issues/do_status.php?Pub=<?php p($Pub); ?>&Issue=<?php  p($issueObj->getIssueNumber()); ?>&Language=<?php p($issueObj->getLanguageId()); ?>&f_target=edit.php&<?php echo SecurityToken::URLParameter(); ?>" onclick="return confirm('<?php  putGS('Are you sure you want to change the issue $1 status from $2 to $3?',$issueObj->getIssueNumber().'. '.htmlspecialchars($issueObj->getName()).' ('.htmlspecialchars($issueObj->getLanguageName()).')',"\'$t2\'","\'$t3\'"); ?>
		');">
				<?php if ($issueObj->getWorkflowStatus() == 'Y') {
						print putGS("Unpublish");
					} else {
						print putGS("Click here to publish this issue");
					}
				?>
				</A>
			</TD>
		</TR>

		<TR>
			<TD COLSPAN="2" style="padding-top: 20px;">
开发者ID:nistormihai,项目名称:Newscoop,代码行数:31,代码来源:edit.php


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