本文整理汇总了PHP中OCP\Util::linkToRemote方法的典型用法代码示例。如果您正苦于以下问题:PHP Util::linkToRemote方法的具体用法?PHP Util::linkToRemote怎么用?PHP Util::linkToRemote使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类OCP\Util
的用法示例。
在下文中一共展示了Util::linkToRemote方法的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: printSongs
private function printSongs($songs, $artistName = false, $albumName = false)
{
header('Content-Type: text/xml');
$tmpl = new \OC_Template('media', 'ampache/songs');
foreach ($songs as $song) {
$songData = array();
if ($artistName) {
$songData['artist_name'] = xmlentities($artistName);
} else {
$songData['artist_name'] = xmlentities($this->collection->getArtistName($song['song_artist']));
}
if ($albumName) {
$songData['album_name'] = xmlentities($albumName);
} else {
$songData['album_name'] = xmlentities($this->collection->getAlbumName($song['song_album']));
}
$songData['id'] = $song['song_id'];
$songData['name'] = xmlentities($song['song_name']);
$songData['artist'] = $song['song_artist'];
$songData['album'] = $song['song_album'];
$songData['length'] = $song['song_length'];
$songData['track'] = $song['song_track'];
$songData['size'] = $song['song_size'];
$url = \OCP\Util::linkToRemote('ampache') . 'server/xml.server.php/?action=play&song=' . $songData['id'] . '&auth=' . $_GET['auth'];
$songData['url'] = xmlentities($url);
$tmpl->append('songs', $songData);
}
$tmpl->printPage();
}
示例2: p
</a>
</li>
<?php
}
?>
</ul>
<div id="app-settings">
<div id="app-settings-header">
<button class="settings-button" data-apps-slide-toggle="#app-settings-content">
<?php
p($l->t('Settings'));
?>
</button>
</div>
<div id="app-settings-content">
<label for="webdavurl"><?php
p($l->t('WebDAV'));
?>
</label>
<input id="webdavurl" type="text" readonly="readonly" value="<?php
p(\OCP\Util::linkToRemote('webdav'));
?>
" />
<em><?php
print_unescaped($l->t('Use this address to <a href="%s" target="_blank">access your Files via WebDAV</a>', array(link_to_docs('user-webdav'))));
?>
</em>
</div>
</div>
</div>
示例3: getServerAddress
/**
* @brief Returns server address for Mozilla Sync Service
*
* @return string
*/
public static function getServerAddress()
{
return \OCP\Util::linkToRemote('mozilla_sync');
}