Beispiel #1
0
 function catalog_module_common()
 {
     global $_DB;
     if (self::$instance) {
         trigger_error("Cannot call instance of Singleton pattern", E_USER_ERROR);
     }
     parent::x3_module_common();
     $this->set_obj_tree('catalog_container', true, true);
     //$this->obj_tree->UniqueBasics(1);
     $this->property_tree = new TTreeOBJ($_DB['DB_NAME'], 'catalog_properties', true);
     $this->search_forms_tree = new TTreeOBJ($_DB['DB_NAME'], 'catalog_search_forms', true);
     //obj_tree
     $this->obj_tree->setObject('_ROOT', array('Name'));
     // фильтра нет!
     $this->obj_tree->setObject('_CATGROUP', null, '_ROOT,_CATGROUP');
     // фильтра нет!
     $this->obj_tree->setObject('_CATOBJ', null, '_CATGROUP');
     //связанные объекты вложенны в _CATOBJ
     //с 0.997 версии connected имеют свойства привязанные непостредственно к объекту присоединения
     $this->obj_tree->setObject('_CATCONNOBJ', null, '_CATOBJ,_CATGROUP');
     // property_tree
     $this->property_tree->setObject('_ROOT', array('Name'));
     $this->property_tree->setObject('_PROPERTYSET', array('Name'), '_ROOT');
     //basic является eng alias'ом и  динамическим именем в шаблоне
     //Name имя свойство является eng alias'ом
     // TYPE : IMAGE,FILE,INPUT,LONGTEXT,BOOL
     $this->property_tree->setObject('_PROPERTY', array('Name', 'Default', 'Type', 'Prop_subgroup', 'Alias', 'isComparse'), '_PROPERTYSET');
     $this->property_tree->setObject('_SUBGROUP', array('SubName', 'SubNameEng'), '_PROPERTYSET');
     $this->property_tree->setObject('_PROPERTYVALS', null, '_PROPERTY');
     $this->search_forms_tree->setObject('_ROOT', array('Name'));
     $this->search_forms_tree->setObject('_SFORM', array('Name'), '_ROOT');
     $this->search_forms_tree->setObject('_SFIELD', array('sname', 'criteria', 'property_set', 'property'), '_SFORM');
     $this->define_front_actions();
 }
Beispiel #2
0
 function subscribe_module_common()
 {
     if (self::$instance) {
         trigger_error("Cannot call instance of Singleton pattern", E_USER_ERROR);
     }
     parent::x3_module_common();
     $this->set_obj_tree('subscribe_container', true);
     $this->obj_tree->setObject('_ROOT', array('LastModified'));
     $this->obj_tree->setObject('_SUBSCRIBEGROUP', array('LastModified', 'basic', 'description', 'news', 'files', 'message', 'news_cats', 'html', 'news_number', 'news_page', 'Template', 'pause', 'from', 'theme'), '_ROOT');
     $this->define_front_actions();
 }
Beispiel #3
0
 function recycle_module_common()
 {
     if (self::$instance) {
         trigger_error("Cannot call instance of Singleton pattern", E_USER_ERROR);
     }
     parent::x3_module_common();
     $this->set_obj_tree('recycle_container', true);
     $this->obj_tree->UniqueBasics(1);
     $this->obj_tree->setObject('_ROOT', array('LastModified'));
     $this->obj_tree->setObject('_RECYCLEOBJ', array('createTime', 'module', 'Name', 'ancestor'), '_ROOT');
 }
Beispiel #4
0
 function news_module_common()
 {
     if (self::$instance) {
         trigger_error("Cannot call instance of Singleton pattern", E_USER_ERROR);
     }
     parent::x3_module_common();
     $this->set_obj_tree('news_container');
     //$this->obj_tree->UniqueBasics(1);
     $this->obj_tree->setObject('_ROOT', array('LastModified', 'bNewsChunkSize', 'fNewsChunkSize'));
     $this->obj_tree->setObject('_NEWSGROUP', array('Tread', 'LastModified', 'bNewsChunkSize', 'fNewsChunkSize'), '_ROOT');
     $this->define_front_actions();
 }
Beispiel #5
0
 function votes_module_common()
 {
     if (self::$instance) {
         trigger_error("Cannot call instance of Singleton pattern", E_USER_ERROR);
     }
     parent::x3_module_common();
     $this->set_obj_tree('votes_container');
     $this->obj_tree->setObject('_ROOT', array('LastModified'));
     $this->obj_tree->setObject('_VOTESGROUP', array('LastModified', 'basic'), '_ROOT');
     $this->obj_tree->setObject('_VOTES', array('LastModified', 'category', 'basic', 'vote_multiple', 'another_variant', 'date1', 'date2', 'question'), '_VOTESGROUP');
     $this->define_front_actions();
 }
Beispiel #6
0
 function price_module_common()
 {
     if (self::$instance) {
         trigger_error("Cannot call instance of Singleton pattern", E_USER_ERROR);
     }
     parent::x3_module_common();
     $this->set_obj_tree('price_container', true);
     $this->obj_tree->UniqueBasics(1);
     $this->obj_tree->setObject('_ROOT', array('LastModified', 'Name'));
     $this->obj_tree->setObject('_PRICEGROUP', array('LastModified', 'basic', 'description', 'hashed_link', 'DisableAccess'), '_ROOT,_PRICEGROUP');
     $this->obj_tree->setObject('_PRICE', array('LastModified', 'basic', 'file_name', 'category', 'hidden', 'text', 'description', 'image', 'DisableAccess', 'counter', 'hashed_link', 'hash'), '_PRICEGROUP');
     $this->define_front_actions();
 }
Beispiel #7
0
 function faq_module_common()
 {
     if (self::$instance) {
         trigger_error("Cannot call instance of Singleton pattern", E_USER_ERROR);
     }
     parent::x3_module_common();
     $this->module_name = 'faq';
     $this->set_obj_tree('faq_container', true);
     $this->obj_tree->setObject('_ROOT', array('LastModified', 'Name'));
     $this->obj_tree->setObject('_FAQFOLDER', array('LastModified', 'Name', 'description'), '_ROOT');
     $this->obj_tree->setObject('_FAQGROUP', array('LastModified', 'basic', 'email', 'hidden', 'description', 'Name', 'count', 'moderation', 'answer_template'), '_FAQFOLDER');
     $this->define_front_actions();
 }
Beispiel #8
0
 function banners_module_common()
 {
     if (self::$instance) {
         trigger_error("Cannot call instance of Singleton pattern", E_USER_ERROR);
     }
     parent::x3_module_common();
     $this->set_obj_tree('banners_container', true, true);
     //$this->obj_tree->UniqueBasics(1);
     $this->obj_tree->setObject('_ROOT', array('LastModified'));
     $this->obj_tree->setObject('_BANNERSGROUP', array('LastModified', 'maxsize', 'height', 'width'), '_ROOT');
     $this->obj_tree->setObject('_BANNERS', array('LastModified', 'basic', 'file_name', 'category', 'banner_type', 'date1', 'date2', 'times_to_show', 'flash_text', 'link', 'width', 'height', 'alt', 'page', 'pageId', 'use_page'), '_BANNERSGROUP');
     $this->define_front_actions();
 }
Beispiel #9
0
 function __construct()
 {
     if (self::$instance) {
         trigger_error("Cannot call instance of Singleton pattern", E_USER_ERROR);
     }
     parent::x3_module_common();
     $this->set_obj_tree('gallery_container', true);
     $this->obj_tree->UniqueBasics(1);
     $this->obj_tree->setObject('_ROOT', array('LastModified', 'Name', 'basic'));
     $this->obj_tree->setObject('_GALLERY', array('Name', 'basic', 'LastModified', 'gallery_short', 'thumb_width', 'compress', 'group', 'Destination_page'), '_ROOT');
     $this->obj_tree->setObject('_ALBUM', array('Name', 'Basic', 'LastModified', 'gallery_short', 'thumb_width', 'Avatar', 'Destination_page', 'isOuterLink', 'info', 'counter'), '_GALLERY');
     $this->obj_tree->setObject('_PHOTO', array('Name', 'LastModified', 'image', 'category', 'info', 'changed'), '_ALBUM');
     $this->define_front_actions();
 }
Beispiel #10
0
 private function __construct()
 {
     if (self::$instance) {
         trigger_error("Cannot call instance of Singleton pattern", E_USER_ERROR);
     }
     parent::x3_module_common();
     $this->set_obj_tree('comments_container', 1);
     $this->module_name = 'comments';
     //  $this->obj_tree->UniqueBasics(1);
     $this->obj_tree->setObject('_ROOT', array('LastModified'));
     $this->obj_tree->setObject('_TREAD', array('LastModified', 'Alias', 'Active', 'Moderation', 'TreadSort'), '_ROOT');
     //Active - disable to show all comments  //Closed - topic closed
     $this->obj_tree->setObject('_COBJECT', array('LastModified', 'Module', 'Marker', 'Active', 'Closed', 'CobjectId'), '_TREAD');
     $this->define_front_actions();
 }
Beispiel #11
0
 function forms_module_common()
 {
     global $_DB;
     if (self::$instance) {
         trigger_error("Cannot call instance of Singleton pattern", E_USER_ERROR);
     }
     parent::x3_module_common();
     $this->set_obj_tree('forms_container', true);
     $this->obj_tree->UniqueBasics(1);
     $this->obj_tree->setObject('_ROOT', array('LastModified'));
     $this->obj_tree->setObject('_FORMSGROUP', array('LastModified', 'Name'), '_ROOT');
     $this->obj_tree->setObject('_FORMS', array('LastModified', 'category', 'Name', 'Disable', 'subject', 'email', 'charset', 'save_to_server', 'use_captcha', 'captcha_settings', 'async', 'timeout', 'comment', 'message_after'), '_FORMSGROUP');
     $this->obj_tree->setObject('_FIELDS', null, '_FORMS');
     $this->define_front_actions();
 }
Beispiel #12
0
 function content_module_common($front_call)
 {
     if (self::$instance) {
         trigger_error("Cannot call instance of Singleton pattern", E_USER_ERROR);
     }
     parent::x3_module_common();
     $this->set_obj_tree('content_container', true);
     if (!$front_call) {
         $this->obj_tree->UniqueBasics(1);
         //объявляем объекты
         $this->obj_tree->setObject('_ROOT', array('LastModified'));
         $this->obj_tree->setObject('_CONTENTGROUP', array('Name', 'Title', 'Keywords', 'Description', 'Disable', 'LastModified', 'Template', 'description', 'Destination_page', 'isOuterLink', 'view_group'), '_ROOT');
         $this->obj_tree->setObject('_CONTENT', array('Name', 'Title', 'Keywords', 'Description', 'Disable', 'LastModified', 'Template', 'Cache'), '_CONTENTGROUP');
         $this->obj_tree->setObject('_FIELD', array('field_value'), '_CONTENT');
     }
     $this->define_front_actions();
 }
Beispiel #13
0
 function fusers_module_common()
 {
     if (self::$instance) {
         trigger_error("Cannot call instance of Singleton pattern", E_USER_ERROR);
     }
     parent::x3_module_common();
     $this->module_name = 'fusers';
     $this->set_obj_tree('fusers_container');
     //$this->obj_tree->UniqueBasics(1);
     $this->obj_tree->setObject('_ROOT', array('LastModified', 'DefaultUnregisteredGroup', 'DefaultRegisteredGroup'));
     $this->obj_tree->setObject('_FUSERSGROUP', array('Name', 'DiscountScheme', 'Comments'), '_ROOT');
     //!имя это basic
     $this->obj_tree->setObject('_FUSER', array('ancuser', 'LastVisit', 'Password', 'Name', 'Email', 'Company', 'Address', 'DiscountScheme', 'Site', 'Phone', 'ShopCode', 'Active', 'VerificationCode', 'Sex', 'Avatar', 'BlogPage', 'Comment'), '_FUSERSGROUP');
     $this->obj_tree->setObject('_FUSEREXTDATA', null, '_FUSER');
     $this->obj_tree->setObject('_SCHEMEITEM', array('Module', 'Node', 'Rights'), '_FUSERSGROUP');
     $this->define_front_actions();
 }
Beispiel #14
0
 function ishop_module_common($front_call)
 {
     global $_DB;
     if (self::$instance) {
         trigger_error("Cannot call instance of Singleton pattern", E_USER_ERROR);
     }
     parent::x3_module_common();
     $this->define_front_actions();
     $this->set_obj_tree('shop_container', true);
     //    $this->obj_tree->UniqueBasics(1);
     //obj_tree
     $this->obj_tree->setObject('_ROOT', array('Name'));
     $this->obj_tree->setObject('_TUNES', null, '_ROOT');
     //$this->obj_tree->setObject('_USERDATA', null, '_ROOT');
     $this->paysystems_tree = new TTreeOBJ($_DB['DB_NAME'], 'shop_paysystems', true);
     $this->paysystems_tree->setObject('_ROOT', array('Name'));
     $this->paysystems_tree->setObject('_PAYSYSTEM', null, '_ROOT');
     $this->discount_scheme_tree = new TTreeOBJ($_DB['DB_NAME'], 'shop_dscheme', true);
     $this->discount_scheme_tree->setObject('_ROOT', array('Name'));
     $this->discount_scheme_tree->setObject('_DSCHEME', array('Name'), '_ROOT');
     $this->discount_scheme_tree->setObject('_DSCHEMEITEM', array('catid', 'discount'), '_DSCHEME');
 }