当前位置: 首页>>代码示例>>PHP>>正文


PHP FRoute::conversations方法代码示例

本文整理汇总了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;
 }
开发者ID:knigherrant,项目名称:decopatio,代码行数:14,代码来源:conversation.php

示例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 
开发者ID:BetterBetterBetter,项目名称:B3App,代码行数:31,代码来源:default.conversations.item.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;
 }
开发者ID:knigherrant,项目名称:decopatio,代码行数:13,代码来源:file.php

示例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" />
开发者ID:knigherrant,项目名称:decopatio,代码行数:31,代码来源:compose.php

示例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));
 }
开发者ID:knigherrant,项目名称:decopatio,代码行数:12,代码来源:view.html.php

示例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 
开发者ID:knigherrant,项目名称:decopatio,代码行数:31,代码来源:default.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 
开发者ID:ppantilla,项目名称:bbninja,代码行数:31,代码来源:read.sidebar.files.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);
 }
开发者ID:ppantilla,项目名称:bbninja,代码行数:16,代码来源:view.ajax.php

示例9: getInboxURL

 public function getInboxURL()
 {
     return FRoute::conversations();
 }
开发者ID:Ruud68,项目名称:Kunena-Forum,代码行数:4,代码来源:private.php


注:本文中的FRoute::conversations方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。