本文整理汇总了PHP中Artist::add_prop方法的典型用法代码示例。如果您正苦于以下问题:PHP Artist::add_prop方法的具体用法?PHP Artist::add_prop怎么用?PHP Artist::add_prop使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Artist
的用法示例。
在下文中一共展示了Artist::add_prop方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: addslashes
$arrData['website'] = addslashes(ucwords($_POST['artist_url']));
$arrData['manager'] = addslashes(ucwords($_POST['artist_manager']));
$arrData['administration'] = addslashes(ucwords($_POST['artist_administration']));
$arrData['licensing'] = addslashes(ucwords($_POST['artist_licensing']));
$arrData['status'] = addslashes(ucwords($_POST['artist_status']));
$arrData['enable_profile'] = addslashes($_POST['enable_profile']);
$arrData['youtube_channel'] = addslashes($_POST['youtube_channel']);
$arrData['soundcloud_username'] = addslashes($_POST['soundcloud_username']);
$arrData['itunes_id'] = addslashes($_POST['itunes_id']);
$arrData['created_date'] = date('Y-m-d H:i:s');
$action = 'add';
if (empty($_POST['id'])) {
$insert = $artist->add($arrData);
if ($insert) {
//insert properties like category, genre, field
$artist->add_prop($artist_prop, $insert, 'artist');
$cover = '';
$picture = '';
if ($_FILES['artist_cover']['name'] != '') {
$cover = 'artistcover_' . $insert . '.jpg';
saveResizeImage($_FILES['artist_cover'], $insert, 'artistcover');
}
if ($_FILES['artist_picture']['name'] != '') {
$picture = 'artistpic_' . $insert . '.jpg';
saveResizeImage($_FILES['artist_picture'], $insert, 'artistpic');
}
if ($_FILES['artist_picture1']['name'] != '') {
$picture = 'artistpic1_' . $insert . '.jpg';
saveResizeImage($_FILES['artist_picture1'], $insert, 'artistpic1');
}
if ($_FILES['artist_picture2']['name'] != '') {