本文整理汇总了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
示例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
示例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;">