Пример #1
0
 /**
  * view display method
  * @return void
  **/
 function display($tpl = null)
 {
     $user =& JFactory::getUser();
     $om_recordings_return = array();
     $om_recordings = new openmeetingsRecordingManagament();
     if ($user->authorise('core.create') || $user->authorise('core.edit')) {
         $om_recordings_return = $om_recordings->getFlvRecordingByExternalRoomTypeAndId($user->id);
     } else {
         $om_recordings_return = $om_recordings->getFlvRecordingByExternalRoomType();
     }
     $this->assignRef('om_recordings_return', $om_recordings_return);
     parent::display($tpl);
 }
Пример #2
0
	/**
	 * view display method
	 * @return void
	 **/
	function display($tpl = null) {
		$user =& JFactory::getUser();

		//Check user rights
		$acl	=& JFactory::getACL();
		$user =& JFactory::getUser();

		$userGroup = $acl->get_group_name($user->get('gid'));

		$om_recordings_return = array();

		$om_recordings = new openmeetingsRecordingManagament();

		if ($userGroup == "Registered" || $userGroup == "Author" || $userGroup == "Editor" || $userGroup == "Publisher") {
			$om_recordings_return=$om_recordings->getFlvRecordingByExternalRoomTypeAndId($user->id);
		} else {
			$om_recordings_return=$om_recordings->getFlvRecordingByExternalRoomType();
		}

		$this->assignRef( 'om_recordings_return', $om_recordings_return );

		parent::display($tpl);
	}
Пример #3
0
    } else {
        ?>
        <li>No public or owned video conference rooms.</li>
    <?php
    }
    ?>

</ul>
<span class='header-3'>Openmeetings Recordings</span>

<?php



//Recordings
$om_recordings=new openmeetingsRecordingManagament();
$om_recordings_return = $om_recordings->getFlvRecordingByExternalUserId($user->id);

if($om_recordings_return != null) {
    if (!is_array($om_recordings_return[0])) {
        $om_recordings_return = array($om_recordings_return);
    }
    ?>
    <ul>
        <?php
        for ($i = 0; $i < count($om_recordings_return); $i++) {
            ?>
            <li><img src='media/com_openmeetings/images/Webcam_16.png'
                     align='absmiddle' border='0'> <a
                    href="<?php echo JRoute::_('index.php?option=com_openmeetings&view=rec_link&format=rec_link&rec=' . $om_recordings_return[$i]['flvRecordingId']); ?>"
                    target="_blank"> <b><?php echo $om_recordings_return[$i]['fileName']; ?>