當前位置: 首頁>>代碼示例>>PHP>>正文


PHP Video::getID方法代碼示例

本文整理匯總了PHP中Video::getID方法的典型用法代碼示例。如果您正苦於以下問題:PHP Video::getID方法的具體用法?PHP Video::getID怎麽用?PHP Video::getID使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在Video的用法示例。


在下文中一共展示了Video::getID方法的3個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。

示例1: Video

  * If it is a show, we don't need to search for subtitles.
  */
 if (strlen($Searchstring) > 3) {
     /**
      * If it is a show, we don't need to search for subtitles.
      */
     $CurrentVideo = new Video($xmlrowsub['key'], $xmlrowsub['title']);
     USMLog("debug", "[" . __FILE__ . " Line:" . __LINE__ . "] Found Show: '" . $xmlrowsub['title'] . "'");
     $CurrentVideo->setLibraryID($CurrentLibraryID);
     $CurrentVideo->setType($xmlrowsub['type']);
     $CurrentVideo->setRatingKey($xmlrowsub['ratingKey']);
     $CurrentVideo->setSeasonIndex('0');
     $CurrentVideo->setEpisodeIndex('0');
     $CurrentVideo->setActiveSubtitle(0);
     $MatchingEpisodes = false;
     $SeasonXML = FetchXML($CurrentVideo->getID() . '/all');
     foreach ($SeasonXML as $Season) {
         if (isset($Season->attributes()->index) !== false) {
             $MatchingEpisodes_Temp = get_show_episodes($Season->attributes()->key, $Season->attributes(), $CurrentVideo, $Searchstring);
             if ($MatchingEpisodes === false and $MatchingEpisodes_Temp) {
                 $MatchingEpisodes = true;
             }
         }
     }
     if ($MatchingEpisodes or stripos($CurrentVideo->getTitle(), $Searchstring) !== false) {
         $ArrayVideos[] = $CurrentVideo;
     }
 } else {
     $CurrentVideo = new Video($xmlrowsub['key'], $xmlrowsub['title']);
     $CurrentVideo->setLibraryID($CurrentLibraryID);
     $CurrentVideo->setType($xmlrowsub['type']);
開發者ID:PlexHaxx,項目名稱:PlexUSM,代碼行數:31,代碼來源:index.php

示例2: Video

                /* @var $VideoInDB Video */
                $VideosInDB = Video::Filter($Videos, $ModelID, $Set->getID(), $matches['Name'] . $matches['Number'] . $matches['Suffix']);
                if ($VideosInDB) {
                    $VideoInDB = $VideosInDB[0];
                    $cis = CacheImage::Filter($CacheImages, NULL, NULL, NULL, NULL, NULL, $VideoInDB->getID());
                    CacheImage::DeleteMulti($cis, $CurrentUser);
                } else {
                    $VideoInDB = new Video();
                    $VideoInDB->setSet($Set);
                }
                $VideoInDB->setFileName($matches['Prefix'] . $matches['Name'] . $matches['Number'] . $matches['Suffix']);
                $VideoInDB->setFileExtension($matches['Extension']);
                $VideoInDB->setFileSize($FileInfo->getSize());
                $VideoInDB->setFileCheckSum(Utils::CalculateMD5($FileInfo->getRealPath()));
                $VideoInDB->setFileCRC32(Utils::CalculateCRC32($FileInfo->getRealPath()));
                if (!$VideoInDB->getID() && $CurrentUser->hasPermission(RIGHT_VIDEO_ADD)) {
                    Video::Insert($VideoInDB, $CurrentUser);
                } else {
                    if ($CurrentUser->hasPermission(RIGHT_VIDEO_EDIT)) {
                        Video::Update($VideoInDB, $CurrentUser);
                    }
                }
            }
        }
    }
    $infoSuccess = new Info($lang->g('MessageVideosImported'));
    Info::AddInfo($infoSuccess);
    if (isset($argv) && $argc > 0) {
        $bi->Finish();
    }
}
開發者ID:laiello,項目名稱:candydolldb,代碼行數:31,代碼來源:import_video.php

示例3: header

        $Set = $Set[0];
        $Model = $Set->getModel();
        $Video->setSet($Set);
    } else {
        header('location:index.php');
        exit;
    }
}
if (array_key_exists('hidAction', $_POST) && $_POST['hidAction'] == 'VideoView') {
    $Video->setFileName(Utils::NullIfEmpty($_POST['txtFilename']));
    $Video->setFileExtension(Utils::NullIfEmpty($_POST['txtFileExtension']));
    $Video->setFileSize(intval($_POST['txtFilesize']));
    $Video->setFileCheckSum(Utils::NullIfEmpty($_POST['txtFileChecksum']));
    $Video->setFileCRC32(Utils::NullIfEmpty($_POST['txtFileCRC32']));
    $tags = Tag::GetTagArray($_POST['txtTags']);
    if ($Video->getID()) {
        if ($DeleteVideo) {
            if (Video::Delete($Video, $CurrentUser)) {
                header('location:' . $ReturnURL);
                exit;
            }
        } else {
            if (Video::Update($Video, $CurrentUser)) {
                Tag2All::HandleTags($tags, $TagsThisVideo, $TagsInDB, $CurrentUser, $ModelID, $SetID, NULL, $Video->getID(), NULL);
                header('location:' . $ReturnURL);
                exit;
            }
        }
    } else {
        if (Video::Insert($Video, $CurrentUser)) {
            Tag2All::HandleTags($tags, $TagsThisVideo, $TagsInDB, $CurrentUser, $ModelID, $SetID, NULL, $Video->getID());
開發者ID:laiello,項目名稱:candydolldb,代碼行數:31,代碼來源:video_view.php


注:本文中的Video::getID方法示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。