本文整理匯總了PHP中ProjectConfiguration::getApplicationAmazonBucketUrl方法的典型用法代碼示例。如果您正苦於以下問題:PHP ProjectConfiguration::getApplicationAmazonBucketUrl方法的具體用法?PHP ProjectConfiguration::getApplicationAmazonBucketUrl怎麽用?PHP ProjectConfiguration::getApplicationAmazonBucketUrl使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類ProjectConfiguration
的用法示例。
在下文中一共展示了ProjectConfiguration::getApplicationAmazonBucketUrl方法的2個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。
示例1: substr
echo substr(url_for('@subreddit_outro?id=' . $form->getObject()->getId() . '&format=mp3'), 0, -3);
?>
" + file.name.split('.').pop());
$('#subreddit_outro_link').attr("href", "<?php
echo substr(url_for('@subreddit_outro?id=' . $form->getObject()->getId() . '&format=mp3'), 0, -3);
?>
" + file.name.split('.').pop());
$('#subreddit_outro_link').http(file.name);
});
});
</script>
<div id="outro_uploader">
<?php
include_partial('subreddit/html5_audio_player', array('subreddit' => $form->getObject(), 'filename' => $form->getObject()->getEpisodeOutro(), 'type' => 'outro', 'class' => 'full', 'audio_src' => ProjectConfiguration::getApplicationAmazonBucketUrl() . 'outro/' . $form->getObject()->getEpisodeOutro()));
?>
<?php
if ($form->getObject()->getEpisodeOutro()) {
?>
<div id="remove_outro">
<input type="checkbox" name="subreddit[episode_outro_delete]" id="subreddit_episode_outro_delete" />
<label for="subreddit_episode_outro_delete">remove the current file</label>
</div>
<?php
}
?>
<div id="outro_filelist"><?php
if (sfConfig::get('sf_environment') != 'prod') {
?>
No runtime found.<?php
示例2: getGraphicUrl
public function getGraphicUrl()
{
if (!$this->getGraphicFile()) {
return null;
}
if (time() > strtotime($this->getReleaseDate())) {
return rtrim(ProjectConfiguration::getApplicationAmazonCloudFrontUrl(), '/') . '/upload/' . $this->getGraphicFile();
} else {
return rtrim(ProjectConfiguration::getApplicationAmazonBucketUrl(), '/') . '/upload/' . $this->getGraphicFile();
}
}