/**
  * @param <type> $page
  * @return ArrayObject
  */
 public static function getAll($page)
 {
     $controller = new VideoController(new VideoDao(self::$CONNECT));
     try {
         self::$TOTAL = $controller->total();
         return $controller->getAll($page);
     } catch (PDOException $err) {
         echo $err->getMessage();
     }
 }
 protected function getFromFile($title)
 {
     $file = wfFindFile($title);
     if ($file instanceof LocalFile) {
         //media type: photo, video
         if (WikiaFileHelper::isFileTypeVideo($file)) {
             /* @var VideoHandler $handler */
             $handler = VideoHandler::getHandler($file->getMimeType());
             $typeInfo = explode('/', $file->getMimeType());
             $metadata = $handler ? $handler->getVideoMetadata(true) : null;
             return ['type' => static::VIDEO_TYPE, 'provider' => isset($typeInfo[1]) ? $typeInfo[1] : static::UNKNOWN_PROVIDER, 'metadata' => ['title' => isset($metadata['title']) ? $metadata['title'] : '', 'description' => isset($metadata['description']) ? $metadata['description'] : '', 'duration' => isset($metadata['duration']) ? (int) $metadata['duration'] : 0]];
         } else {
             return ['type' => static::IMAGE_TYPE];
         }
     }
     return [];
 }
<?php

/*require_once '../core/Video/VideoController.php';
  require_once '../core/Video/VideoDao.php';
  require_once '../core/Video/Video.php';*/
require_once '../core/Video/VideoHandler.php';
VideoHandler::connect();
$page = 1;
if (isset($_GET['page'])) {
    $page = $_GET['page'];
}
$response = VideoHandler::getAll($page);
$total = VideoHandler::total();
?>
<?if($response->count() > 0):?>
    <table class="list-publications">
        <thead>
            <tr>
                <th>Título</th>
                <th>Link RSS</th>
                <th>Excluir</th>
            </tr>
        </thead>
        <tfoot>
            <tr>
                <td></td><td></td><td></td>
            </tr>
        </tfoot>
        <tbody>
            <?foreach($response as $video):?>
            <tr>
<?php

require_once 'VideoHandler.php';
VideoHandler::connect();
$response = VideoHandler::getAll(1);
?>
<div id="show-videos">       
    <?if($response->count() > 0):?>
    <ul id="video-list">
    <?$maxVideos = 3;?>
    <?$videoIterator = $response->getIterator();?>
    <?while($videoIterator->valid() && $maxVideos-- >= 0):?>
        <li>
            <div class="img-video">
                <a target="_blank" href="http://www.youtube.com/watch?v=<?echo $videoIterator->current()->link()?>">
                    <img src="http://img.youtube.com/vi/<?echo $videoIterator->current()->link()?>/default.jpg"/>
                </a>
            </div>
            <div class="video-description">
                <h1>
                    <a target="_blank" href="http://www.youtube.com/watch?v=<?echo $videoIterator->current()->link()?>">
                        <?echo $videoIterator->current()->title()?>
                    </a>
                </h1>
                <?
                //$tags = get_meta_tags('http://www.youtube.com/watch?v=xRffJ7GP6Ww');
                //echo $tags['description'];
                ?>
            </div>
        </li>
        <?$videoIterator->next();?>