Squiz Matrix  4.12.2
 All Data Structures Namespaces Functions Variables Pages
product_edit_fns.inc
1 <?php
18 require_once SQ_CORE_PACKAGE_PATH.'/page/page_edit_fns.inc';
19 
33 {
34 
39  function __construct()
40  {
41  parent::__construct();
42 
43  }//end constructor
44 
45 
56  function paintProductPrice(&$asset, &$o, $prefix)
57  {
58  $price_obj = $asset->attr('price_obj');
59  $wa = $asset->writeAccess('attributes');
60  $price_obj->paintBackend($o, $prefix.'_'.$asset->vars['price_obj']['attrid'], $wa);
61  return $wa;
62 
63  }//end paintProductPrice()
64 
65 
76  function processProductPrice(&$asset, &$o, $prefix)
77  {
78  $price_obj = $asset->attr('price_obj');
79  if (!$price_obj->processBackend($o, $prefix.'_'.$asset->vars['price_obj']['attrid'])) return false;
80  return $asset->setAttrValue('price_obj', $price_obj);
81 
82  }// end processProductPrice()
83 
84 }//end class
85 
86 
87 ?>