本文整理汇总了PHP中FRoute::conversations方法的典型用法代码示例。如果您正苦于以下问题:PHP FRoute::conversations方法的具体用法?PHP FRoute::conversations怎么用?PHP FRoute::conversations使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类FRoute
的用法示例。
在下文中一共展示了FRoute::conversations方法的9个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: getPermalink
/**
* Centralized method to retrieve a conversation's link.
* This is where all the magic happens.
*
* @access public
* @param null
*
* @return string The url for the person
*/
public function getPermalink($xhtml = true, $external = false, $sef = true)
{
$url = FRoute::conversations(array('id' => $this->id, 'layout' => 'read', 'external' => $external, 'sef' => $sef), $xhtml);
return $url;
}
示例2: defined
* other free or open source software licenses.
* See COPYRIGHT.php for copyright notices and details.
*/
defined('_JEXEC') or die('Unauthorized Access');
if ($conversations) {
?>
<?php
foreach ($conversations as $conversation) {
?>
<li class="<?php
echo $conversation->isNew() ? ' is-unread' : ' is-read';
?>
">
<div class="media notice-message">
<a href="<?php
echo FRoute::conversations(array('layout' => 'read', 'id' => $conversation->id));
?>
">
<div class="media-object pull-left">
<div class="es-avatar">
<?php
if ($conversation->type == SOCIAL_CONVERSATION_MULTIPLE) {
?>
<img src="<?php
echo $conversation->getLastMessage($this->my->id)->getCreator()->getAvatar();
?>
" title="<?php
echo $this->html('string.escape', $conversation->getLastMessage($this->my->id)->getCreator()->getName());
?>
" />
<?php
示例3: getPermalink
/**
* Retrieves the permalink to the item
*
* @since 1.0
* @access public
* @param string
* @return
*/
public function getPermalink($xhtml = true)
{
$url = FRoute::conversations(array('layout' => 'download', 'fileid' => $this->id), $xhtml);
return $url;
}
示例4:
?>
</div>
<?php
}
?>
</div>
</div>
<?php
}
?>
<div class="form-actions">
<div class="pull-right">
<a href="<?php
echo FRoute::conversations();
?>
" class="btn btn-es btn-sm"><?php
echo JText::_('COM_EASYSOCIAL_CANCEL_BUTTON');
?>
</a>
<button class="btn btn-es-primary btn-sm" data-composer-submit><?php
echo JText::_('COM_EASYSOCIAL_SUBMIT_BUTTON');
?>
</button>
</div>
</div>
<input type="hidden" name="option" value="com_easysocial" />
<input type="hidden" name="controller" value="conversations" />
<input type="hidden" name="task" value="store" />
示例5: leave
/**
* Post processing after leaving a conversation
*
* @since 1.0
* @access public
* @param string
* @return
*/
public function leave()
{
return $this->redirect(FRoute::conversations(array(), false));
}
示例6:
</a>
</li>
<li class="mailbox-item<?php
echo $active == 'archives' ? ' active' : '';
?>
"
data-mailboxItem
data-mailbox="archives"
data-title="<?php
echo JText::_('COM_EASYSOCIAL_PAGE_TITLE_CONVERSATIONS_ARCHIVES', true);
echo $totalNewArchives > 0 ? ' (' . $totalNewArchives . ')' : '';
?>
"
data-url="<?php
echo FRoute::conversations(array('layout' => 'archives'));
?>
">
<a href="javascript:void(0);">
<?php
echo JText::_('COM_EASYSOCIAL_CONVERSATIONS_ARCHIVES');
?>
<span data-mailboxItem-counter>
<?php
if ($totalNewArchives > 0) {
?>
(<?php
echo $totalNewArchives;
?>
)
<?php
示例7: foreach
echo JText::_('COM_EASYSOCIAL_CONVERSATIONS_FILES');
?>
</h5>
<hr />
<?php
if ($files) {
?>
<ul class="fd-reset-list files-list">
<?php
foreach ($files as $attachment) {
?>
<li>
<div class="row">
<div class="col-md-12">
<a href="<?php
echo FRoute::conversations(array('layout' => 'download', 'fileid' => $attachment->id));
?>
"
data-es-provide="tooltip"
data-original-title="<b><?php
echo $this->html('string.escape', $attachment->name);
?>
</b><br /><br /><?php
echo JText::sprintf('COM_EASYSOCIAL_CONVERSATIONS_FILE_UPLOADED_ON', $attachment->getUploadedDate()->toLapsed());
?>
"
data-html="true"
data-placement="bottom"
>
<i class="icon-es-<?php
示例8: store
/**
* Responsible to process an ajax call that tries to store a conversation.
*
* @since 1.0
* @access public
* @param SocialTableConversation
*/
public function store($conversation = null)
{
$ajax = FD::ajax();
if ($this->hasErrors()) {
return $ajax->reject($this->getMessage());
}
$link = FRoute::conversations(array('id' => $conversation->id, 'layout' => 'read'), false);
return $ajax->resolve($link);
}
示例9: getInboxURL
public function getInboxURL()
{
return FRoute::conversations();
}