function getObjectInfo($id, $language = null)
 {
     $info = new JCommentsObjectInfo();
     $routerHelper = JPATH_SITE . '/components/com_hwdmediashare/helpers/route.php';
     if (is_file($routerHelper)) {
         require_once $routerHelper;
         $db = JFactory::getDBO();
         $db->setQuery('SELECT id, title, access, created_user_id FROM #__hwdms_groups WHERE id = ' . $id);
         $row = $db->loadObject();
         if (!empty($row)) {
             $slug = $row->alias ? $row->id . ':' . $row->alias : $row->id;
             $info->title = $row->title ? 'Unknown hwdMediaShare Content' : $row->title;
             $info->userid = $row->created_user_id;
             $info->access = $row->access;
             $info->link = JRoute::_(hwdMediaShareHelperRoute::getGroupRoute($slug));
         }
     }
     return $info;
 }
Esempio n. 2
0
            ?>
                <li><?php 
            echo JHtml::_('hwdicon.delete', 'group', $item, $this->params);
            ?>
</li>
                <?php 
        }
        ?>
              </ul>
            </li>
          </ul>
          <?php 
    }
    ?>
          <a href="<?php 
    echo JRoute::_(hwdMediaShareHelperRoute::getGroupRoute($item->slug));
    ?>
"> <?php 
    echo $this->escape($item->title);
    ?>
 </a></td>
        <td class="list-date"><?php 
    echo JHtml::_('date', $item->created, JText::_('DATE_FORMAT_LC2'));
    ?>
</td>
        <td class="list-author"><a href="#"><?php 
    echo $this->escape($item->author);
    ?>
</a></td>
        <td class="list-hits"><?php 
    echo (int) $item->hits;