本文整理匯總了PHP中DataManager::setRelationCycleArtist方法的典型用法代碼示例。如果您正苦於以下問題:PHP DataManager::setRelationCycleArtist方法的具體用法?PHP DataManager::setRelationCycleArtist怎麽用?PHP DataManager::setRelationCycleArtist使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類DataManager
的用法示例。
在下文中一共展示了DataManager::setRelationCycleArtist方法的1個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。
示例1: htmlspecialchars
$c_name = htmlspecialchars($_GET["name"]);
$c_year = htmlspecialchars($_GET["year"]);
$c_desc = htmlspecialchars($_GET["desc"]);
$result = $data->setCycle($c_name, $c_year, $c_desc);
break;
case "film_artist":
$rel_fa_film = htmlspecialchars($_GET["film"]);
$rel_fa_artist = htmlspecialchars($_GET["artist"]);
$rel_fa_actor = htmlspecialchars($_GET["actor"]) == "true" ? "1" : "0";
$rel_fa_director = htmlspecialchars($_GET["director"]) == "true" ? "1" : "0";
$result = $data->setRelationFilmArtist($rel_fa_film, $rel_fa_artist, $rel_fa_actor, $rel_fa_director);
break;
case "cycle_film":
$rel_cf_film = htmlspecialchars($_GET["film"]);
$rel_cf_cycle = htmlspecialchars($_GET["cycle"]);
$result = $data->setRelationCycleFilm($rel_cf_film, $rel_cf_cycle);
break;
case "cycle_artist":
$rel_ca_artist = htmlspecialchars($_GET["artist"]);
$rel_ca_cycle = htmlspecialchars($_GET["cycle"]);
$rel_ca_actor = htmlspecialchars($_GET["actor"]) == "true" ? "1" : "0";
$rel_ca_director = htmlspecialchars($_GET["director"]) == "true" ? "1" : "0";
$result = $data->setRelationCycleArtist($rel_ca_cycle, $rel_ca_artist, $rel_ca_actor, $rel_ca_director);
break;
default:
break;
}
echo $result;
} catch (Exception $e) {
echo 'Exception :: ' . $e->getMessage() . "\n";
}