public function CourseObjectUbercart::create in Course 6
Same name and namespace in other branches
- 8.3 modules/course_uc/course_uc.classes.inc \CourseObjectUbercart::create()
- 8.2 modules/course_uc/course_uc.classes.inc \CourseObjectUbercart::create()
- 7.2 modules/course_uc/course_uc.classes.inc \CourseObjectUbercart::create()
- 7 modules/course_uc/course_uc.classes.inc \CourseObjectUbercart::create()
Don't create new products.
Overrides CourseObjectNode::create
File
- modules/
course_uc/ course_uc.classes.inc, line 54
Class
Code
public function create() {
if (!$this
->getInstanceId()) {
$this
->setOption('instance', $this
->getCourseNid());
}
}