コード例 #1
0
ファイル: giftcard.php プロジェクト: notzen/exponent-cms
 public function cartSummary($item)
 {
     $view = new controllertemplate($this, $this->getForm('cartSummary'));
     $view->assign('product', $this);
     $view->assign('item', $item);
     // grab all the registrants
     $message = expUnserialize($item->extra_data);
     $view->assign('message', $message);
     return $view->render('cartSummary');
 }
コード例 #2
0
 public function cartSummary($item)
 {
     $view = new controllertemplate($this, $this->getForm('cartSummary'));
     $view->assign('product', $this);
     $view->assign('item', $item);
     // grab all the registrants
     $registrants = expUnserialize($item->extra_data);
     //assign the number registered to the view
     $number = count($registrants);
     $view->assign('number', $number);
     // assign the list of names to the view.
     foreach ($registrants as $reg) {
         $people .= $reg['name'] . ',';
     }
     $people = substr($people, 0, -1);
     $view->assign('people', $people);
     return $view->render('cartSummary');
 }
コード例 #3
0
ファイル: product.php プロジェクト: notzen/exponent-cms
 public function cartSummary($item)
 {
     $viewname = $this->getForm('cartSummary');
     if (!$viewname) {
         return null;
     }
     $options = expUnserialize($item->options);
     $view = new controllertemplate($this, $viewname);
     $view->assign('product', $this);
     $view->assign('item', $item);
     $view->assign('options', $options);
     return $view->render('cartSummary');
 }