本文整理汇总了PHP中design::create方法的典型用法代码示例。如果您正苦于以下问题:PHP design::create方法的具体用法?PHP design::create怎么用?PHP design::create使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类design
的用法示例。
在下文中一共展示了design::create方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: design
$design_copied = new design($designs_id_copied);
$colors_request = $copy_des_color_request == 'on' ? $design_copied->colors_request : null;
if ($copy_des_comments == 'on') {
$comments = $design_copied->comments->comments;
$comments_lut = $design_copied->comments_lut;
$comments_lub = $design_copied->comments_lub;
} else {
$comments = null;
$comments_lut = null;
$comments_lub = null;
}
if ($products_id == '') {
$products_id = null;
}
$design = new design();
$design->create($session_userinfo['id'], $session_userinfo['username'], $session_userinfo['users_image'], '0', $cat, $procat, $probra, $name, $price, $products_id, $styles_id_L, $styles_id_F, $structure_id, $content_id, $colors_request, $design_copied->followers->list_raw, $comments, $comments_lut, $comments_lub);
$design_copied->comments->addComment($session_userinfo['username'], "I copied this Design to Design {$design->id}.");
//ALSO COPY DRAFT IF REQUESTED BY USER
if ($copy_draft_lists != '') {
$copy_draft_lists = explode(',', $copy_draft_lists);
}
if (is_array($copy_draft_lists) && count($copy_draft_lists) > 0) {
use_class('design_draft');
$draft = new design_draft();
foreach ($copy_draft_lists as $draft_id) {
$draft_copied = new design_draft($draft_id);
if (is_object($draft_copied)) {
$colors_request = $copy_dra_color_request == 'on' ? $draft_copied->colors_request : null;
if ($copy_dra_comments == 'on') {
$dra_comments = $draft_copied->comments->comments;
$dra_comments_lut = $draft_copied->comments_lut;