getCharset() public method

Return the CHARSET which should be set in the HTTP header sent to the downloader.
public getCharset ( ) : string
return string
コード例 #1
0
ファイル: edit-attachment.php プロジェクト: nidzix/Newscoop
    <dd><?php 
echo $object->getMimeType();
?>
</dd>

    <dt><?php 
putGS('Size');
?>
:</dt>
    <dd><?php 
echo MediaList::FormatFileSize($object->getSizeInBytes());
?>
</dd>

    <?php 
if ($object->getCharset()) {
    ?>
    <dt><?php 
    putGS('Charset');
    ?>
:</dt>
    <dd><?php 
    echo $object->getCharset();
    ?>
</dd>
    <?php 
}
?>

</dl>
コード例 #2
0
<div class="wrapper"><div class="main-content-wrapper">

<h2><?php echo $object->getFileName(); ?></h2>
<p class="dates"><?php putGS('Created'); ?>: <?php echo $object->getTimeCreated(); ?>, <?php putGS('Last modified'); ?>: <?php echo $object->getLastModified(); ?></p>

<?php echo new MediaPlayer($object->getAttachmentUrl() . '?g_show_in_browser=1', $object->getMimeType()); ?>

<dl class="attachment">
    <dt><?php putGS('Type'); ?>:</dt>
    <dd><?php echo $object->getMimeType(); ?></dd>

    <dt><?php putGS('Size'); ?>:</dt>
    <dd><?php echo MediaList::FormatFileSize($object->getSizeInBytes()); ?></dd>

    <?php if ($object->getCharset()) { ?>
    <dt><?php putGS('Charset'); ?>:</dt>
    <dd><?php echo $object->getCharset(); ?></dd>
    <?php } ?>

</dl>

<form name="edit" method="POST" action="do_edit-attachment.php">
    <?php echo SecurityToken::FormParameter(); ?>
    <input type="hidden" name="f_attachment_id" value="<?php echo $object->getAttachmentId(); ?>" />

<div class="ui-widget-content big-block block-shadow padded-strong">
    <fieldset class="plain">

    <legend><?php putGS('Change attachment information'); ?></legend>