本文整理匯總了PHP中Video::infosVideo方法的典型用法代碼示例。如果您正苦於以下問題:PHP Video::infosVideo方法的具體用法?PHP Video::infosVideo怎麽用?PHP Video::infosVideo使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類Video
的用法示例。
在下文中一共展示了Video::infosVideo方法的2個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。
示例1: afficherListeVideos
/**
* Récupère les différentes propriétés afin de les afficher
* @return true si le tableau n'est pas vide
*/
function afficherListeVideos()
{
//requete sql
if ($this->numpara) {
$result = mysql_query("SELECT numvideo,legende,numparavideo,ordre FROM if_para_video WHERE numpara='{$this->numpara}' ORDER BY ordre");
while ($row = mysql_fetch_row($result)) {
$uneVideo = new Video();
$uneVideo->numvideo = $row[0];
$uneVideo->legendeVideo = $row[1];
$uneVideo->numparavideo = $row[2];
$uneVideo->numparavideo = $row[2];
$uneVideo->infosVideo();
$this->videos[] = $uneVideo;
}
} else {
$result = mysql_query("SELECT numvideo FROM if_video ORDER BY nom_video");
while ($row = mysql_fetch_row($result)) {
$uneVideo = new Video();
$uneVideo->numvideo = $row[0];
$uneVideo->infosVideo();
$this->videos[] = $uneVideo;
}
}
if (count($this->videos) >= 1) {
return true;
}
}
示例2: Fichier
$leFichier = new Fichier();
$leFichier->numfichier = $numfichier;
$leFichier->numparafichier = $numparafichier;
$leFichier->infosFichier();
} else {
if ($numphoto) {
$laPhoto = new Photo();
$laPhoto->numphoto = $numphoto;
$laPhoto->numparaphoto = $numparaphoto;
$laPhoto->infosPhoto();
} else {
if ($numvideo) {
$laVideo = new Video();
$laVideo->numvideo = $numvideo;
$laVideo->numparavideo = $numparavideo;
$laVideo->infosVideo();
}
}
}
}
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<link rel="stylesheet" href="../css/ifip.css" type="text/css" media="screen" />
<script type="text/javascript" src="../java.js"> </script>
<title>Modification</title>
<?php
include "javascript.php";
include "styles.php";