bitrix_on_rails 0.1.3 → 0.1.4

Sign up to get free protection for your applications and to get access to all the features.
data/Gemfile CHANGED
@@ -3,11 +3,24 @@ source "http://rubygems.org"
3
3
  # Example:
4
4
  # gem "activesupport", ">= 2.3.5"
5
5
 
6
+ gem 'rails', ">= 3.0"
7
+
6
8
  # Add dependencies to develop your gem here.
7
9
  # Include everything needed to run rake, tests, features, etc.
8
10
  group :development do
11
+ gem "sqlite3"
9
12
  gem "shoulda", ">= 0"
10
13
  gem "bundler", "~> 1.0.0"
11
14
  gem "jeweler", "~> 1.6.4"
12
15
  gem "rcov", ">= 0"
16
+ gem "ruby-debug19", :require=>'ruby-debug'
17
+
18
+ gem 'test-unit'
19
+
20
+ gem 'rb-fsevent', :require => false if RUBY_PLATFORM =~ /darwin/i
21
+ gem 'growl' if RUBY_PLATFORM =~ /darwin/i
22
+ gem "guard-test"
23
+ # http://test-unit.rubyforge.org/
24
+ # gem 'test-unit-notify'
25
+ gem 'test-unit-rr'
13
26
  end
data/Gemfile.lock CHANGED
@@ -1,20 +1,119 @@
1
1
  GEM
2
2
  remote: http://rubygems.org/
3
3
  specs:
4
+ abstract (1.0.0)
5
+ actionmailer (3.0.9)
6
+ actionpack (= 3.0.9)
7
+ mail (~> 2.2.19)
8
+ actionpack (3.0.9)
9
+ activemodel (= 3.0.9)
10
+ activesupport (= 3.0.9)
11
+ builder (~> 2.1.2)
12
+ erubis (~> 2.6.6)
13
+ i18n (~> 0.5.0)
14
+ rack (~> 1.2.1)
15
+ rack-mount (~> 0.6.14)
16
+ rack-test (~> 0.5.7)
17
+ tzinfo (~> 0.3.23)
18
+ activemodel (3.0.9)
19
+ activesupport (= 3.0.9)
20
+ builder (~> 2.1.2)
21
+ i18n (~> 0.5.0)
22
+ activerecord (3.0.9)
23
+ activemodel (= 3.0.9)
24
+ activesupport (= 3.0.9)
25
+ arel (~> 2.0.10)
26
+ tzinfo (~> 0.3.23)
27
+ activeresource (3.0.9)
28
+ activemodel (= 3.0.9)
29
+ activesupport (= 3.0.9)
30
+ activesupport (3.0.9)
31
+ archive-tar-minitar (0.5.2)
32
+ arel (2.0.10)
33
+ builder (2.1.2)
34
+ columnize (0.3.4)
35
+ erubis (2.6.6)
36
+ abstract (>= 1.0.0)
4
37
  git (1.2.5)
38
+ growl (1.0.3)
39
+ guard (0.5.1)
40
+ thor (~> 0.14.6)
41
+ guard-test (0.3.0)
42
+ guard (>= 0.2.2)
43
+ test-unit (~> 2.2)
44
+ i18n (0.5.0)
5
45
  jeweler (1.6.4)
6
46
  bundler (~> 1.0)
7
47
  git (>= 1.2.5)
8
48
  rake
49
+ linecache19 (0.5.12)
50
+ ruby_core_source (>= 0.1.4)
51
+ mail (2.2.19)
52
+ activesupport (>= 2.3.6)
53
+ i18n (>= 0.4.0)
54
+ mime-types (~> 1.16)
55
+ treetop (~> 1.4.8)
56
+ mime-types (1.16)
57
+ polyglot (0.3.2)
58
+ rack (1.2.3)
59
+ rack-mount (0.6.14)
60
+ rack (>= 1.0.0)
61
+ rack-test (0.5.7)
62
+ rack (>= 1.0)
63
+ rails (3.0.9)
64
+ actionmailer (= 3.0.9)
65
+ actionpack (= 3.0.9)
66
+ activerecord (= 3.0.9)
67
+ activeresource (= 3.0.9)
68
+ activesupport (= 3.0.9)
69
+ bundler (~> 1.0)
70
+ railties (= 3.0.9)
71
+ railties (3.0.9)
72
+ actionpack (= 3.0.9)
73
+ activesupport (= 3.0.9)
74
+ rake (>= 0.8.7)
75
+ rdoc (~> 3.4)
76
+ thor (~> 0.14.4)
9
77
  rake (0.9.2)
78
+ rb-fsevent (0.4.2)
10
79
  rcov (0.9.9)
80
+ rdoc (3.9.1)
81
+ rr (1.0.3)
82
+ ruby-debug-base19 (0.11.25)
83
+ columnize (>= 0.3.1)
84
+ linecache19 (>= 0.5.11)
85
+ ruby_core_source (>= 0.1.4)
86
+ ruby-debug19 (0.11.6)
87
+ columnize (>= 0.3.1)
88
+ linecache19 (>= 0.5.11)
89
+ ruby-debug-base19 (>= 0.11.19)
90
+ ruby_core_source (0.1.5)
91
+ archive-tar-minitar (>= 0.5.2)
11
92
  shoulda (2.11.3)
93
+ sqlite3 (1.3.4)
94
+ test-unit (2.3.0)
95
+ test-unit-rr (1.0.1)
96
+ rr (>= 1.0.2)
97
+ test-unit (>= 2.1.2)
98
+ thor (0.14.6)
99
+ treetop (1.4.10)
100
+ polyglot
101
+ polyglot (>= 0.3.1)
102
+ tzinfo (0.3.29)
12
103
 
13
104
  PLATFORMS
14
105
  ruby
15
106
 
16
107
  DEPENDENCIES
17
108
  bundler (~> 1.0.0)
109
+ growl
110
+ guard-test
18
111
  jeweler (~> 1.6.4)
112
+ rails (>= 3.0)
113
+ rb-fsevent
19
114
  rcov
115
+ ruby-debug19
20
116
  shoulda
117
+ sqlite3
118
+ test-unit
119
+ test-unit-rr
data/Guardfile ADDED
@@ -0,0 +1,12 @@
1
+ # A sample Guardfile
2
+ # More info at https://github.com/guard/guard#readme
3
+
4
+ guard 'test' do
5
+ watch(%r{^lib/(.+)\.rb$}) { |m| "test/#{m[1]}_test.rb" }
6
+ watch(%r{^test/.+_test\.rb$})
7
+ watch(%r{^test/test_.+\.rb$})
8
+ watch('test/helper.rb') { "test" }
9
+
10
+ # Rails example
11
+ watch(%r{^app/models/(.+)\.rb$}) { |m| "test/unit/#{m[1]}_test.rb" }
12
+ end
data/README.rdoc CHANGED
@@ -84,6 +84,14 @@ prop_s - для одиночных свойтсв, prop_m - для множес
84
84
  encoding: cp1251
85
85
  ...
86
86
 
87
+ == Тестирование
88
+
89
+ bundle exec guard
90
+
91
+ или
92
+
93
+ rake test
94
+
87
95
  == TODO
88
96
 
89
97
  * Больше примернов использования
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.1.3
1
+ 0.1.4
@@ -27,76 +27,31 @@ class IblockElement < ActiveRecord::Base
27
27
  has_many :iblock_section_elements
28
28
  has_many :iblock_sections, :through => :iblock_section_elements
29
29
 
30
- after_find :initialize_properties
31
-
32
- attr_accessor :properties
33
-
34
30
  def to_s
35
31
  name
36
32
  end
37
33
 
38
- def s_props
39
- # has_one
40
- @s_props ||= Iblock.s_props_class(iblock_id).find_by_iblock_element_id( id )
41
- end
42
-
43
- def iblock_element_prop_m
44
- Iblock.m_props_class(iblock_id).where(:iblock_element_id=>id)
45
- end
46
-
47
- def m_props
48
- # TODO Cache
49
- @m_props={}
50
- iblock_element_prop_m.each do |p|
51
- @m_props[p.code]||=[]
52
- @m_props[p.code] << p.get_value
53
- end
54
- @m_props
55
- end
56
-
57
- # Если мы спрашиваем iblock_element.post
58
- # то он ищет ключ :post_id в свойствах элемента
59
- # и если находит, то возвращает Post.find_by_id(properties[:post_id])
60
- #
61
- def method_missing(method, *args)
62
- id_name = "#{method}_id".to_sym
63
- if properties and properties.include?(id_name)
64
- # TODO Проверять на наличие такого класса и то что он ActiveRecord
65
- # Кешировать
66
- method.to_s.capitalize.constantize.find_by_id(properties[id_name])
67
- else
68
- super
69
- end
70
- end
71
-
72
34
  def self.set_iblock_id(id)
73
35
  @iblock_id = id
74
36
  @iblock_properties = IblockProperty.where(:iblock_id => id).inject({}){ |a,e| a[e.code] = e.id; a }
75
37
 
76
- prop_s_class = "::IblockElementPropS#{id}"
77
- prop_m_class = "::IblockElementPropM#{id}"
78
-
79
- has_one :property_set, :class_name => prop_s_class, :foreign_key => 'iblock_element_id', :autosave => true
80
- has_many :m_prop_values, :class_name => prop_m_class, :foreign_key => 'iblock_element_id'
81
-
82
- default_scope where(:iblock_id => id, :active => 'Y')
83
- end
38
+ prop_s_class = "IblockElementPropS#{id}"
39
+ prop_m_class = "IblockElementPropM#{id}"
84
40
 
85
- private
41
+ has_one :property_set, :class_name => "::#{prop_s_class}", :foreign_key => 'iblock_element_id', :autosave => true
42
+ has_many :m_prop_values, :class_name => "::#{prop_m_class}", :foreign_key => 'iblock_element_id'
86
43
 
87
- def initialize_properties
88
- # TODO Могу повторяться именя в m_props, ругаться чтоли
89
- @properties = (s_props ? s_props.properties : {}).merge m_props
44
+ # Создаем прокси-методы для доступа к значениям свойств элемента
45
+ Kernel.const_get(prop_s_class).properties.each { |code, property_name|
46
+ define_method(code) do
47
+ property_set.send(code)
48
+ end
90
49
 
91
- # TODO Переписать на автоматическое определение названия свойства в моделях property_set и m_prop_values
92
- # чтобы уйти от хеша @properties (оставить его массивом для дебаггинга)
50
+ define_method("#{code}=") do |value|
51
+ property_set.send("#{code}=", value)
52
+ end
53
+ }
93
54
 
94
- # TODO Сделать в элементе автоделегейт
95
- @properties.keys.each do |prop|
96
- # TODO Перенести на прямой вызов объектов s_props/m_props
97
- instance_eval "def #{prop}; @properties[:#{prop}]; end"
98
- instance_eval "def #{prop}=(val); @properties[:#{prop}]=property_set.#{prop}=val; end"
99
- end
55
+ default_scope where(:iblock_id => id, :active => 'Y')
100
56
  end
101
-
102
57
  end
@@ -5,11 +5,11 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = %q{bitrix_on_rails}
8
- s.version = "0.1.3"
8
+ s.version = "0.1.4"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
11
  s.authors = ["Danil Pismenny"]
12
- s.date = %q{2011-08-02}
12
+ s.date = %q{2011-08-03}
13
13
  s.description = %q{Использование инфоблоков 1С-Битрикс в Ruby On Rails проектах}
14
14
  s.email = %q{danil@orionet.ru}
15
15
  s.extra_rdoc_files = [
@@ -20,6 +20,7 @@ Gem::Specification.new do |s|
20
20
  ".document",
21
21
  "Gemfile",
22
22
  "Gemfile.lock",
23
+ "Guardfile",
23
24
  "LICENSE.txt",
24
25
  "README.rdoc",
25
26
  "Rakefile",
@@ -42,7 +43,10 @@ Gem::Specification.new do |s|
42
43
  "lib/bitrix_on_rails/engine.rb",
43
44
  "lib/bitrix_on_rails/iblock_element_prop_m.rb",
44
45
  "lib/bitrix_on_rails/iblock_element_prop_s.rb",
46
+ "test/dump.sql",
47
+ "test/get_dump.sh",
45
48
  "test/helper.rb",
49
+ "test/schema.rb",
46
50
  "test/test_bitrix_on_rails.rb"
47
51
  ]
48
52
  s.homepage = %q{http://github.com/dapi/bitrix_on_rails}
@@ -55,21 +59,45 @@ Gem::Specification.new do |s|
55
59
  s.specification_version = 3
56
60
 
57
61
  if Gem::Version.new(Gem::VERSION) >= Gem::Version.new('1.2.0') then
62
+ s.add_runtime_dependency(%q<rails>, [">= 3.0"])
63
+ s.add_development_dependency(%q<sqlite3>, [">= 0"])
58
64
  s.add_development_dependency(%q<shoulda>, [">= 0"])
59
65
  s.add_development_dependency(%q<bundler>, ["~> 1.0.0"])
60
66
  s.add_development_dependency(%q<jeweler>, ["~> 1.6.4"])
61
67
  s.add_development_dependency(%q<rcov>, [">= 0"])
68
+ s.add_development_dependency(%q<ruby-debug19>, [">= 0"])
69
+ s.add_development_dependency(%q<test-unit>, [">= 0"])
70
+ s.add_development_dependency(%q<rb-fsevent>, [">= 0"])
71
+ s.add_development_dependency(%q<growl>, [">= 0"])
72
+ s.add_development_dependency(%q<guard-test>, [">= 0"])
73
+ s.add_development_dependency(%q<test-unit-rr>, [">= 0"])
62
74
  else
75
+ s.add_dependency(%q<rails>, [">= 3.0"])
76
+ s.add_dependency(%q<sqlite3>, [">= 0"])
63
77
  s.add_dependency(%q<shoulda>, [">= 0"])
64
78
  s.add_dependency(%q<bundler>, ["~> 1.0.0"])
65
79
  s.add_dependency(%q<jeweler>, ["~> 1.6.4"])
66
80
  s.add_dependency(%q<rcov>, [">= 0"])
81
+ s.add_dependency(%q<ruby-debug19>, [">= 0"])
82
+ s.add_dependency(%q<test-unit>, [">= 0"])
83
+ s.add_dependency(%q<rb-fsevent>, [">= 0"])
84
+ s.add_dependency(%q<growl>, [">= 0"])
85
+ s.add_dependency(%q<guard-test>, [">= 0"])
86
+ s.add_dependency(%q<test-unit-rr>, [">= 0"])
67
87
  end
68
88
  else
89
+ s.add_dependency(%q<rails>, [">= 3.0"])
90
+ s.add_dependency(%q<sqlite3>, [">= 0"])
69
91
  s.add_dependency(%q<shoulda>, [">= 0"])
70
92
  s.add_dependency(%q<bundler>, ["~> 1.0.0"])
71
93
  s.add_dependency(%q<jeweler>, ["~> 1.6.4"])
72
94
  s.add_dependency(%q<rcov>, [">= 0"])
95
+ s.add_dependency(%q<ruby-debug19>, [">= 0"])
96
+ s.add_dependency(%q<test-unit>, [">= 0"])
97
+ s.add_dependency(%q<rb-fsevent>, [">= 0"])
98
+ s.add_dependency(%q<growl>, [">= 0"])
99
+ s.add_dependency(%q<guard-test>, [">= 0"])
100
+ s.add_dependency(%q<test-unit-rr>, [">= 0"])
73
101
  end
74
102
  end
75
103
 
@@ -1,15 +1,17 @@
1
1
  # -*- coding: utf-8 -*-
2
+ require 'rails'
3
+ require 'active_record'
4
+
2
5
  module BitrixOnRails
3
6
  def self.init
4
- # Это здесь для того чтобы при перезагрузке в development
5
- # режиме заново создавались ассоциации iblock_element_prop_s3
6
- # TODO переделать на более элегантное решение
7
- Iblock.all.map &:init_property_models
8
- # IblockProperty.cache_all
7
+ # При работе с тестовой базой может случиться ситуация, что база пуста и никакой таблицы b_iblock
8
+ # там нет, что приведет к ислючению. Проверка сделана для корректной работы Rake задач.
9
+ if ::ActiveRecord::Base.connection.tables.find{ |t| t == 'b_iblock'}
10
+ Iblock.all.map &:init_property_models
11
+ end
9
12
  end
10
13
  end
11
14
 
12
- require 'active_record'
13
15
  require 'bitrix_on_rails/engine'
14
16
  require 'bitrix_on_rails/active_record'
15
17
  require 'bitrix_on_rails/iblock_element_prop_s'
@@ -5,7 +5,7 @@ module BitrixOnRails
5
5
 
6
6
  def has_infoblock(iblock_id, property_name, &blk)
7
7
  prop_s_name = "iblock_element_prop_s#{iblock_id}".to_sym
8
- has_one prop_s_name, :foreign_key=>property_name, :class_name=>"::IblockElementPropS#{iblock_id}", :autosave => true
8
+ has_one prop_s_name, :foreign_key => property_name, :class_name => "::IblockElementPropS#{iblock_id}", :autosave => true
9
9
 
10
10
  element_class_name = self.name + 'Element'
11
11
  unless Kernel.const_defined?(element_class_name)
@@ -17,10 +17,10 @@ module BitrixOnRails
17
17
  element_class.instance_eval(&blk)
18
18
  end
19
19
 
20
- self.const_set(element_class_name, element_class)
20
+ Kernel.const_set(element_class_name, element_class)
21
21
  end
22
22
 
23
- has_one :iblock_element, :through => prop_s_name, :class_name => element_class_name, :autosave => true
23
+ has_one :iblock_element, :through => prop_s_name, :class_name => "::#{element_class_name}", :autosave => true
24
24
  end
25
25
  end
26
26
  end
@@ -1,4 +1,7 @@
1
1
  module BitrixOnRails
2
2
  class Engine < Rails::Engine
3
+ initializer 'bitrix_on_rails.init' do
4
+ BitrixOnRails.init
5
+ end
3
6
  end
4
7
  end
data/test/dump.sql ADDED
@@ -0,0 +1,87 @@
1
+ -- MySQL dump 10.13 Distrib 5.5.13, for osx10.6 (i386)
2
+ --
3
+ -- Host: localhost Database: kamin_icf1
4
+ -- ------------------------------------------------------
5
+ -- Server version 5.5.13
6
+
7
+ /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */;
8
+ /*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */;
9
+ /*!40101 SET @OLD_COLLATION_CONNECTION=@@COLLATION_CONNECTION */;
10
+ /*!40101 SET NAMES utf8 */;
11
+ /*!40103 SET @OLD_TIME_ZONE=@@TIME_ZONE */;
12
+ /*!40103 SET TIME_ZONE='+00:00' */;
13
+ /*!40014 SET @OLD_UNIQUE_CHECKS=@@UNIQUE_CHECKS, UNIQUE_CHECKS=0 */;
14
+ /*!40014 SET @OLD_FOREIGN_KEY_CHECKS=@@FOREIGN_KEY_CHECKS, FOREIGN_KEY_CHECKS=0 */;
15
+ /*!40101 SET @OLD_SQL_MODE=@@SQL_MODE, SQL_MODE='NO_AUTO_VALUE_ON_ZERO' */;
16
+ /*!40111 SET @OLD_SQL_NOTES=@@SQL_NOTES, SQL_NOTES=0 */;
17
+
18
+ --
19
+ -- Table structure for table `b_iblock`
20
+ --
21
+
22
+ DROP TABLE IF EXISTS `b_iblock`;
23
+ /*!40101 SET @saved_cs_client = @@character_set_client */;
24
+ /*!40101 SET character_set_client = utf8 */;
25
+ CREATE TABLE `b_iblock` (
26
+ `ID` int(11) NOT NULL AUTO_INCREMENT,
27
+ `TIMESTAMP_X` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
28
+ `IBLOCK_TYPE_ID` varchar(50) NOT NULL,
29
+ `LID` char(2) NOT NULL,
30
+ `CODE` varchar(50) DEFAULT NULL,
31
+ `NAME` varchar(255) NOT NULL,
32
+ `ACTIVE` char(1) NOT NULL DEFAULT 'Y',
33
+ `SORT` int(11) NOT NULL DEFAULT '500',
34
+ `LIST_PAGE_URL` varchar(255) DEFAULT NULL,
35
+ `DETAIL_PAGE_URL` varchar(255) DEFAULT NULL,
36
+ `SECTION_PAGE_URL` varchar(255) DEFAULT NULL,
37
+ `PICTURE` int(18) DEFAULT NULL,
38
+ `DESCRIPTION` text,
39
+ `DESCRIPTION_TYPE` char(4) NOT NULL DEFAULT 'text',
40
+ `RSS_TTL` int(11) NOT NULL DEFAULT '24',
41
+ `RSS_ACTIVE` char(1) NOT NULL DEFAULT 'Y',
42
+ `RSS_FILE_ACTIVE` char(1) NOT NULL DEFAULT 'N',
43
+ `RSS_FILE_LIMIT` int(11) DEFAULT NULL,
44
+ `RSS_FILE_DAYS` int(11) DEFAULT NULL,
45
+ `RSS_YANDEX_ACTIVE` char(1) NOT NULL DEFAULT 'N',
46
+ `XML_ID` varchar(255) DEFAULT NULL,
47
+ `TMP_ID` varchar(40) DEFAULT NULL,
48
+ `INDEX_ELEMENT` char(1) NOT NULL DEFAULT 'Y',
49
+ `INDEX_SECTION` char(1) NOT NULL DEFAULT 'N',
50
+ `WORKFLOW` char(1) NOT NULL DEFAULT 'Y',
51
+ `SECTION_CHOOSER` char(1) DEFAULT NULL,
52
+ `VERSION` int(11) NOT NULL DEFAULT '1',
53
+ `LAST_CONV_ELEMENT` int(11) NOT NULL DEFAULT '0',
54
+ `EDIT_FILE_BEFORE` varchar(255) DEFAULT NULL,
55
+ `EDIT_FILE_AFTER` varchar(255) DEFAULT NULL,
56
+ `SECTIONS_NAME` varchar(100) DEFAULT NULL,
57
+ `SECTION_NAME` varchar(100) DEFAULT NULL,
58
+ `ELEMENTS_NAME` varchar(100) DEFAULT NULL,
59
+ `ELEMENT_NAME` varchar(100) DEFAULT NULL,
60
+ `BIZPROC` char(1) NOT NULL DEFAULT 'N',
61
+ `LIST_MODE` char(1) DEFAULT NULL,
62
+ `SOCNET_GROUP_ID` int(18) DEFAULT NULL,
63
+ PRIMARY KEY (`ID`),
64
+ KEY `ix_iblock` (`IBLOCK_TYPE_ID`,`LID`,`ACTIVE`)
65
+ ) ENGINE=InnoDB AUTO_INCREMENT=60 DEFAULT CHARSET=cp1251;
66
+ /*!40101 SET character_set_client = @saved_cs_client */;
67
+
68
+ --
69
+ -- Dumping data for table `b_iblock`
70
+ --
71
+
72
+ LOCK TABLES `b_iblock` WRITE;
73
+ /*!40000 ALTER TABLE `b_iblock` DISABLE KEYS */;
74
+ INSERT INTO `b_iblock` VALUES (2,'2009-09-23 14:20:21','blog_post','s1','BLOG_PROPERTY','Свойства блога','Y',500,'#SITE_DIR#/blog_post/index.php?ID=#IBLOCK_ID#','#SITE_DIR#/blog_post/detail.php?ID=#ID#','#SITE_DIR#/blog_post/list.php?SECTION_ID=#ID#',NULL,'','text',24,'Y','N',NULL,NULL,'N',NULL,NULL,'N','N','N','L',2,0,'','','Разделы','Раздел','Блоги','Блог','N',NULL,NULL),(3,'2010-10-19 13:23:58','blog_post','s1','POST_PROPERTY','Свойства поста','Y',500,'#SITE_DIR#/blog_post/index.php?ID=#IBLOCK_ID#','#SITE_DIR#/blog_post/detail.php?ID=#ID#','#SITE_DIR#/blog_post/list.php?SECTION_ID=#ID#',NULL,'','text',24,'Y','N',NULL,NULL,'N',NULL,NULL,'Y','Y','N','L',2,0,'','','Разделы','Раздел','Посты','Пост','N','',NULL),(4,'2011-03-17 12:24:11','blog_post','s1','USER_PROPERTY','Свойства пользователя','Y',500,'','','',NULL,'','text',24,'Y','N',NULL,NULL,'N',NULL,NULL,'Y','N','N','L',2,0,'','','Разделы','Раздел','Пользователи','Пользователь','N','',NULL),(5,'2009-07-24 06:55:03','classifier','s1','CLASSIFIER','Глобальный Классификатор ','Y',500,'#SITE_DIR#/classifier/index.php?ID=#IBLOCK_ID#','#SITE_DIR#/classifier/detail.php?ID=#ID#','#SITE_DIR#/classifier/list.php?SECTION_ID=#ID#',NULL,'','text',24,'Y','N',NULL,NULL,'N',NULL,NULL,'N','N','N','L',2,0,'','','Разделы','Раздел','Элементы','Элемент','N',NULL,NULL),(6,'2009-07-24 06:57:34','classifier','s1','CLASSIFIER_USER','Пользовательский классификатор','Y',500,'#SITE_DIR#/classifier/index.php?ID=#IBLOCK_ID#','#SITE_DIR#/classifier/detail.php?ID=#ID#','#SITE_DIR#/classifier/list.php?SECTION_ID=#ID#',NULL,'','text',24,'Y','N',NULL,NULL,'N',NULL,NULL,'N','N','N','L',2,0,'','','Разделы','Раздел','Элементы','Элемент','N',NULL,NULL),(7,'2010-11-17 09:15:02','service','s1','EMITENT','Эмитенты','Y',500,'/analytics/emitters/','/analytics/emitters/#ID#/','/analytics/emitters/',NULL,'','text',24,'Y','N',NULL,NULL,'N',NULL,NULL,'Y','Y','N','L',2,0,'','','Разделы','Раздел','Элементы','Элемент','N','',NULL),(8,'2009-12-24 14:09:00','service','s1','COMMENTS','Свойство комментария','Y',500,'#SITE_DIR#/service/index.php?ID=#IBLOCK_ID#','#SITE_DIR#/service/detail.php?ID=#ID#','#SITE_DIR#/service/list.php?SECTION_ID=#ID#',NULL,'','text',24,'Y','N',NULL,NULL,'N',NULL,NULL,'N','N','N','L',2,0,'','','Разделы','Раздел','Комментарии','Комментарий','N',NULL,NULL),(9,'2009-07-30 12:42:22','service','s1','COMMENTS_VOTE','Голоса комментария','Y',500,'#SITE_DIR#/service/index.php?ID=#IBLOCK_ID#','#SITE_DIR#/service/detail.php?ID=#ID#','#SITE_DIR#/service/list.php?SECTION_ID=#ID#',NULL,'','text',24,'Y','N',NULL,NULL,'N',NULL,NULL,'N','N','N','L',2,0,'','','Разделы','Раздел','Элементы','Элемент','N',NULL,NULL),(11,'2009-08-03 07:50:40','service','s1','LIB_ESSENCE','Словарь сущности','Y',500,'#SITE_DIR#/service/index.php?ID=#IBLOCK_ID#','#SITE_DIR#/service/detail.php?ID=#ID#','#SITE_DIR#/service/list.php?SECTION_ID=#ID#',NULL,'','text',24,'Y','N',NULL,NULL,'N',NULL,NULL,'N','N','N','L',2,0,'','','Разделы','Раздел','Элементы','Элемент','N',NULL,NULL),(12,'2009-08-03 07:52:28','service','s1','LIB_DOCS','Словарь документов','Y',500,'#SITE_DIR#/service/index.php?ID=#IBLOCK_ID#','#SITE_DIR#/service/detail.php?ID=#ID#','#SITE_DIR#/service/list.php?SECTION_ID=#ID#',NULL,'','text',24,'Y','N',NULL,NULL,'N',NULL,NULL,'N','N','N','L',2,0,'','','Разделы','Раздел','Элементы','Элемент','N',NULL,NULL),(15,'2009-09-20 20:45:20','content','s1','FAQ','FAQ','Y',500,'#SITE_DIR#/help/','#SITE_DIR#/help/#ID#/','',NULL,'','text',24,'Y','N',NULL,NULL,'N',NULL,NULL,'Y','N','N','L',1,0,'','','Категории','Категория','Вопросы','Вопрос','N',NULL,NULL),(16,'2011-03-17 14:25:12','blog_post','s1','question','Вопрос','Y',500,'#SITE_DIR#/analytics/answers-and-questions/','#SITE_DIR#/analytics/answers-and-questions/#GLOB_CLASS#/#ID#/','#SITE_DIR#/analytics/answers-and-questions/#ID#/',NULL,'','text',24,'Y','N',NULL,NULL,'N',NULL,NULL,'Y','Y','N','L',2,0,'','','Разделы','Раздел','Элементы','Элемент','N','',NULL),(17,'2011-04-13 09:40:16','question','s1','answer','Ответы','Y',500,'/analytics/answers-and-questions/','/analytics/answers-and-questions/0/#PROPERTY_QUESTION_ID#/','',NULL,'','text',24,'Y','N',NULL,NULL,'N',NULL,NULL,'Y','N','N','L',1,0,'','','Разделы','Раздел','Элементы','Элемент','N','',NULL),(18,'2010-10-17 10:18:57','service','s1','karma','Спасибо и уволить','Y',500,'#SITE_DIR#/service/index.php?ID=#IBLOCK_ID#','#SITE_DIR#/service/detail.php?ID=#ID#','#SITE_DIR#/service/list.php?SECTION_ID=#ID#',NULL,'','text',24,'Y','N',NULL,NULL,'N',NULL,NULL,'N','N','N','L',2,0,'','','Разделы','Раздел','Спасибо / Уволить','Спасибо / Уволить','N','',NULL),(19,'2009-09-01 15:26:10','service','s1','view_blog_day','Просмотры блога за день','Y',500,'#SITE_DIR#/service/index.php?ID=#IBLOCK_ID#','#SITE_DIR#/service/detail.php?ID=#ID#','#SITE_DIR#/service/list.php?SECTION_ID=#ID#',NULL,'','text',24,'Y','N',NULL,NULL,'N',NULL,NULL,'N','N','N','L',2,0,'','','Разделы','Раздел','Элементы','Элемент','N',NULL,NULL),(21,'2011-03-25 09:11:12','service','s1','moods','Настроения','Y',500,'#SITE_DIR#/service/index.php?ID=#IBLOCK_ID#','#SITE_DIR#/service/detail.php?ID=#ID#','#SITE_DIR#/service/list.php?SECTION_ID=#ID#',NULL,'','text',24,'Y','N',NULL,NULL,'N',NULL,NULL,'N','N','N','L',2,0,'','','Разделы','Раздел','Настроения','Настроение','N','',NULL),(22,'2010-02-25 19:24:34','content','s1','PREVIEW_ARTICLE','анонсы материалов','Y',500,'#SITE_DIR#/content/index.php?ID=#IBLOCK_ID#','#SITE_DIR#/content/detail.php?ID=#ID#','#SITE_DIR#/content/list.php?SECTION_ID=#ID#',NULL,'','text',24,'Y','N',NULL,NULL,'N',NULL,NULL,'N','N','N','L',2,0,'','','Разделы','Раздел','Анонсы','Анонс','N',NULL,NULL),(23,'2009-08-27 09:42:22','service','s1','','Общая информация','Y',500,'','','',NULL,'','text',24,'Y','N',NULL,NULL,'N',NULL,NULL,'Y','N','N','L',1,0,'','','Разделы','Раздел','Элементы','Элемент','N',NULL,NULL),(24,'2009-12-24 14:05:27','service','s1','COMPANY','Список компаний (Кухня)','Y',500,'#SITE_DIR#/service/index.php?ID=#IBLOCK_ID#','#SITE_DIR#/service/detail.php?ID=#ID#','#SITE_DIR#/service/list.php?SECTION_ID=#ID#',NULL,'','text',24,'Y','N',NULL,NULL,'N',NULL,NULL,'N','N','N','L',2,0,'','','Разделы','Раздел','Компании','Компания','N',NULL,NULL),(25,'2009-09-01 15:27:10','service','s1','view_blog','Просмотры блога','Y',500,'','','',NULL,'','text',24,'Y','N',NULL,NULL,'N',NULL,NULL,'N','N','N','L',1,0,'','','Разделы','Раздел','Элементы','Элемент','N',NULL,NULL),(26,'2011-02-24 08:47:11','service','s1','','прогнозы закрытия','Y',500,'','','',NULL,'','text',24,'Y','N',NULL,NULL,'N',NULL,NULL,'N','N','N','L',1,0,'','','Разделы','Раздел','Элементы','Элемент','N','',NULL),(29,'2009-09-08 14:41:38','service','s1','','Инвайты','Y',500,'','','',NULL,'','text',24,'Y','N',NULL,NULL,'N',NULL,NULL,'N','N','N','L',1,0,'','','Разделы','Раздел','Элементы','Элемент','N',NULL,NULL),(30,'2010-11-13 10:28:44','service','s1','FORECAST','Прогноз по акциям эмитентов','Y',500,'#SITE_DIR#/service/index.php?ID=#IBLOCK_ID#','#SITE_DIR#/service/detail.php?ID=#ID#','#SITE_DIR#/service/list.php?SECTION_ID=#ID#',NULL,'','text',24,'Y','N',NULL,NULL,'N',NULL,NULL,'N','N','N','L',2,0,'','','Разделы','Раздел','Прогнозы','Прогноз','N','',NULL),(32,'2009-11-17 19:33:45','service','s1','MENU','Меню','Y',500,'#SITE_DIR#/content/index.php?ID=#IBLOCK_ID#','#SITE_DIR#/content/detail.php?ID=#ID#','#SITE_DIR#/content/list.php?SECTION_ID=#ID#',NULL,'','text',24,'Y','N',NULL,NULL,'N',NULL,NULL,'N','N','N','L',2,0,'','','Разделы','Раздел','Темы','Тема','N',NULL,NULL),(33,'2009-12-14 15:50:52','service','s1','subscribe','Подписка','Y',500,'#SITE_DIR#/service/index.php?ID=#IBLOCK_ID#','#SITE_DIR#/service/detail.php?ID=#ID#','#SITE_DIR#/service/list.php?SECTION_ID=#ID#',NULL,'','text',24,'Y','N',NULL,NULL,'N',NULL,NULL,'N','N','N','L',1,0,'','','Разделы','Раздел','Подписки','Подписка','N',NULL,NULL),(34,'2009-09-28 10:47:46','payment','s1','DEALERSHIP','Операции','Y',500,'#SITE_DIR#/payment/index.php?ID=#IBLOCK_ID#','#SITE_DIR#/payment/detail.php?ID=#ID#',NULL,NULL,'','text',24,'Y','N',NULL,NULL,'N',NULL,NULL,'N','N','N','L',2,0,'','',NULL,NULL,'Платежи','Платеж','N',NULL,NULL),(35,'2009-09-28 10:43:05','payment','s1','USER_ACCOUNT','Счет пользователя','Y',500,'#SITE_DIR#/payment/index.php?ID=#IBLOCK_ID#','#SITE_DIR#/payment/detail.php?ID=#ID#',NULL,NULL,'','text',24,'Y','N',NULL,NULL,'N',NULL,NULL,'N','N','N','L',2,0,'','',NULL,NULL,'Счета','Счет','N',NULL,NULL),(37,'2009-09-29 09:33:39','consultation','s1','Q_A','Вопросы и ответ','Y',500,'#SITE_DIR#/consultation/index.php?ID=#IBLOCK_ID#','#SITE_DIR#/consultation/detail.php?ID=#ID#','#SITE_DIR#/consultation/list.php?SECTION_ID=#ID#',NULL,'','text',24,'Y','N',NULL,NULL,'N',NULL,NULL,'Y','N','N','L',2,0,'','','Разделы','Раздел','Вопросы & Ответы','Вопрос & Ответ','N',NULL,NULL),(38,'2009-09-30 06:51:29','consultation','s1','COMPLAINT','Жалоба','Y',500,'#SITE_DIR#/consultation/index.php?ID=#IBLOCK_ID#','#SITE_DIR#/consultation/detail.php?ID=#ID#','#SITE_DIR#/consultation/list.php?SECTION_ID=#ID#',NULL,'','text',24,'Y','N',NULL,NULL,'N',NULL,NULL,'N','N','N','L',2,0,'','','Разделы','Раздел','Жалобы','Жалоба','N',NULL,NULL),(39,'2009-10-01 08:47:12','payment','s1','roboxchange','ROBOXChange ','Y',500,'','',NULL,NULL,'','text',24,'Y','N',NULL,NULL,'N',NULL,NULL,'N','N','N','L',2,0,'','',NULL,NULL,'Оплаты','Оплата','N',NULL,NULL),(40,'2009-10-02 07:32:34','service','s1','DENY','Отказы','Y',500,'#SITE_DIR#/service/index.php?ID=#IBLOCK_ID#','#SITE_DIR#/service/detail.php?ID=#ID#','#SITE_DIR#/service/list.php?SECTION_ID=#ID#',NULL,'','text',24,'Y','N',NULL,NULL,'N',NULL,NULL,'N','N','N','L',2,0,'','','Разделы','Раздел','Причины отказаов','Принича отказа','N',NULL,NULL),(41,'2009-10-06 08:45:14','service','s1','vote_theme','Голоса за темы','Y',500,'#SITE_DIR#/menu/','','#SITE_DIR#/menu/',NULL,'','text',24,'Y','N',NULL,NULL,'N',NULL,NULL,'Y','N','N','L',2,0,'','','Разделы','Раздел','Голоса','Голос','N',NULL,NULL),(42,'2010-08-08 13:35:11','service','s1','','Прогнозы закрытия - среднее по дням','Y',500,'','','',NULL,'','text',24,'Y','N',NULL,NULL,'N',NULL,NULL,'N','N','N','L',1,0,'','','Разделы','Раздел','Элементы','Элемент','N',NULL,NULL),(43,'2009-10-23 12:03:35','service','s1','','Договора с аналитиком - номера','Y',500,'','','',NULL,'','text',24,'Y','N',NULL,NULL,'N',NULL,NULL,'N','N','N','L',1,0,'','','Разделы','Раздел','Элементы','Элемент','N',NULL,NULL),(44,'2009-10-27 13:23:16','payment','s1','LOGS','Логи','Y',600,'#SITE_DIR#/payment/index.php?ID=#IBLOCK_ID#','#SITE_DIR#/payment/detail.php?ID=#ID#',NULL,NULL,'','text',24,'Y','N',NULL,NULL,'N',NULL,NULL,'N','N','N','L',2,0,'','',NULL,NULL,'Лог','Логи','N',NULL,NULL),(46,'2009-10-28 14:21:20','service','s1','subscribe_finanalyst','Подписка: Финансовая аналитика','Y',500,'','','',NULL,'','text',24,'Y','N',NULL,NULL,'N',NULL,NULL,'N','N','N','L',1,0,'','','Разделы','Раздел','Элементы','Элемент','N',NULL,NULL),(47,'2009-12-24 14:12:46','service','s1','STATISTIK_ANALITIK','Активность аналитиков','Y',500,'#SITE_DIR#/service/index.php?ID=#IBLOCK_ID#','#SITE_DIR#/service/detail.php?ID=#ID#','#SITE_DIR#/service/list.php?SECTION_ID=#ID#',NULL,'','text',24,'Y','N',NULL,NULL,'N',NULL,NULL,'N','N','N','L',2,0,'','','Разделы','Раздел','Активности','Активность','N',NULL,NULL),(48,'2009-11-30 11:03:50','service','s1','SPECIALIZATION','Специализация аналитиков','Y',500,'#SITE_DIR#/service/index.php?ID=#IBLOCK_ID#','#SITE_DIR#/service/detail.php?ID=#ID#','#SITE_DIR#/service/list.php?SECTION_ID=#ID#',NULL,'','text',24,'Y','N',NULL,NULL,'N',NULL,NULL,'N','N','N','L',2,0,'','','Разделы','Раздел','Элементы','Элемент','N',NULL,NULL),(49,'2009-12-24 14:44:35','question','s1','HISTORY','История вопросов (для консультаций)','Y',500,'#SITE_DIR#/question/index.php?ID=#IBLOCK_ID#','#SITE_DIR#/question/detail.php?ID=#ID#',NULL,NULL,'','text',24,'Y','N',NULL,NULL,'N',NULL,NULL,'N','N','N','L',2,0,'','',NULL,NULL,'Истории вопросов','История вопроса','N',NULL,NULL),(50,'2010-05-13 12:32:06','service','s1','post_counter_days','Счетчик читаемое/обсуждаемое по дням','Y',500,'','','',NULL,'','text',24,'Y','N',NULL,NULL,'N',NULL,NULL,'N','N','N','L',2,0,'','','Разделы','Раздел','Элементы','Элемент','N',NULL,NULL),(51,'2010-05-13 12:32:26','service','s1','post_counter_day10','Счетчик читаемое/обсуждаемое за 10 дней','Y',500,'','','',NULL,'','text',24,'Y','N',NULL,NULL,'N',NULL,NULL,'N','N','N','L',2,0,'','','Разделы','Раздел','Элементы','Элемент','N',NULL,NULL),(52,'2010-08-25 08:52:06','service','s1','CONSENSUS','Консенсус-прогнозы','Y',500,'#SITE_DIR#/service/index.php?ID=#IBLOCK_ID#','#SITE_DIR#/service/detail.php?ID=#ID#','#SITE_DIR#/service/list.php?SECTION_ID=#ID#',NULL,'','text',24,'Y','N',NULL,NULL,'N',NULL,NULL,'N','N','N','L',2,0,'','','Разделы','Раздел','Элементы','Элемент','N',NULL,NULL),(53,'2010-07-12 11:06:26','content','s1','','скайлайн','Y',500,'','','',NULL,'','text',24,'Y','N',NULL,NULL,'N',NULL,NULL,'N','N','N','L',1,0,'','/bitrix/php_interface/include/admin_skyline.php','Разделы','Раздел','Элементы','Элемент','N',NULL,NULL),(54,'2010-07-16 08:42:18','service','s1','','Подписчики','Y',500,'','','',NULL,'','text',24,'Y','N',NULL,NULL,'N',NULL,NULL,'N','N','N','L',1,0,'','','Разделы','Раздел','Элементы','Элемент','N',NULL,NULL),(55,'2010-07-21 15:21:02','service','s1','subscribecomment','Подписка на коммменты','Y',500,'','','',NULL,'','text',24,'Y','N',NULL,NULL,'N',NULL,NULL,'N','N','N','L',2,0,'','','Разделы','Раздел','Элементы','Элемент','N',NULL,NULL),(56,'2010-08-25 08:09:05','service','s1','SECTION_CONSENSUS','Статистика консенсус-прогнозов по отраслям','Y',500,'#SITE_DIR#/service/index.php?ID=#IBLOCK_ID#','#SITE_DIR#/service/detail.php?ID=#ID#','#SITE_DIR#/service/list.php?SECTION_ID=#ID#',NULL,'','text',24,'Y','N',NULL,NULL,'N',NULL,NULL,'N','N','N','L',2,0,'','','Разделы','Раздел','Элементы','Элемент','N',NULL,NULL),(57,'2010-09-21 08:45:40','service','s1','VOTE_USERS','База пользователей для прохождения тестов','Y',500,'#SITE_DIR#/service/index.php?ID=#IBLOCK_ID#','#SITE_DIR#/service/detail.php?ID=#ID#','#SITE_DIR#/service/list.php?SECTION_ID=#ID#',NULL,'','text',24,'Y','N',NULL,NULL,'N',NULL,NULL,'N','N','N','L',2,0,'','','Разделы','Раздел','Пользователи','Пользователь','N',NULL,NULL),(58,'2010-10-21 14:38:38','service','s1','PR_SUBSCRIBE','PR подписчики','Y',500,'#SITE_DIR#/service/index.php?ID=#IBLOCK_ID#','#SITE_DIR#/service/detail.php?ID=#ID#','#SITE_DIR#/service/list.php?SECTION_ID=#ID#',NULL,'','text',24,'Y','N',NULL,NULL,'N',NULL,NULL,'N','N','N','L',2,0,'','','Разделы','Раздел','Подписчки','Подписчик','N','S',NULL),(59,'2011-03-03 07:51:08','vacancy','s1','vac','Список вакансий','Y',500,'#SITE_DIR#/vacancy/index.php?ID=#IBLOCK_ID#','#SITE_DIR#/vacancy/detail.php?ID=#ID#','#SITE_DIR#/vacancy/list.php?SECTION_ID=#ID#',NULL,'','text',24,'Y','N',NULL,NULL,'N',NULL,NULL,'Y','Y','N','L',2,0,'','','Разделы','Раздел','Элементы','Элемент','N','',NULL);
75
+ /*!40000 ALTER TABLE `b_iblock` ENABLE KEYS */;
76
+ UNLOCK TABLES;
77
+ /*!40103 SET TIME_ZONE=@OLD_TIME_ZONE */;
78
+
79
+ /*!40101 SET SQL_MODE=@OLD_SQL_MODE */;
80
+ /*!40014 SET FOREIGN_KEY_CHECKS=@OLD_FOREIGN_KEY_CHECKS */;
81
+ /*!40014 SET UNIQUE_CHECKS=@OLD_UNIQUE_CHECKS */;
82
+ /*!40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */;
83
+ /*!40101 SET CHARACTER_SET_RESULTS=@OLD_CHARACTER_SET_RESULTS */;
84
+ /*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */;
85
+ /*!40111 SET SQL_NOTES=@OLD_SQL_NOTES */;
86
+
87
+ -- Dump completed on 2011-08-02 15:41:29