Пример #1
0
 static function getInstance($front_call = null)
 {
     if (!self::$instance) {
         self::$instance = new price_module_common($front_call);
     }
     return self::$instance;
 }
Пример #2
0
 function price_module_front()
 {
     $this->_module_name = 'price';
     $this->_common_obj =& price_module_common::getInstance(true);
     $this->_tree =& $this->_common_obj->obj_tree;
     $this->context = null;
 }
Пример #3
0
 function common_call($front_call = null)
 {
     //вы
     $this->_common_obj =& price_module_common::getInstance();
     $this->_tree =& $this->_common_obj->obj_tree;
 }
Пример #4
0
 function load_xlist_docs($parameters)
 {
     Common::call_common_instance('price');
     $price =& price_module_common::getInstance(true);
     $TD = Common::inc_module_factory('TTreeSource');
     $options['startNode'] = $parameters['anc_id'];
     $options['shownodesWithObjType'] = array('_ROOT', '_PRICEGROUP');
     $options['columnsAsParameters'] = array('LastModified' => 'LastModified', 'name' => 'Name');
     $options['columnsAsStructs'] = array('name' => 'basic', 'image' => 'obj_type');
     $options['transformResults']['image'] = array('_ROOT' => 'group', '_PRICEGROUP' => 'group');
     $options['selectable'] = array('image' => array('_PRICEGROUP'));
     $this->result['data_set'] = null;
     $TD->init_from_source($price->obj_tree);
     $TD->setOptions($options);
     $TD->CreateView($parameters['anc_id']);
     $this->result = array_merge_recursive($TD->result, $this->result);
 }