Bitrix-D7 23.9
 
Загрузка...
Поиск...
Не найдено
comment.php
1<?php
8namespace Bitrix\Blog;
9
12
29class CommentTable extends Entity\DataManager
30{
31 public static function getTableName()
32 {
33 return 'b_blog_comment';
34 }
35
36 public static function getUfId()
37 {
38 return 'BLOG_COMMENT';
39 }
40
41 public static function getMap()
42 {
43 $fieldsMap = array(
44 'ID' => array(
45 'data_type' => 'integer',
46 'primary' => true,
47 'autocomplete' => true,
48 ),
49 'BLOG_ID' => array(
50 'data_type' => 'integer'
51 ),
52 'POST_ID' => array(
53 'data_type' => 'integer'
54 ),
55 'POST' => array(
56 'data_type' => '\Bitrix\Blog\Post',
57 'reference' => array('=this.POST_ID' => 'ref.ID')
58 ),
59 'PARENT_ID' => array(
60 'data_type' => 'integer'
61 ),
62 'AUTHOR_ID' => array(
63 'data_type' => 'integer'
64 ),
65 'ICON_ID' => array(
66 'data_type' => 'integer'
67 ),
68 'AUTHOR_NAME' => array(
69 'data_type' => 'string'
70 ),
71 'AUTHOR_EMAIL' => array(
72 'data_type' => 'string'
73 ),
74 'AUTHOR_IP' => array(
75 'data_type' => 'string'
76 ),
77 'AUTHOR_IP1' => array(
78 'data_type' => 'string'
79 ),
80 'DATE_CREATE' => array(
81 'data_type' => 'datetime'
82 ),
83 'TITLE' => array(
84 'data_type' => 'string'
85 ),
86 'POST_TEXT' => array(
87 'data_type' => 'text',
88 ),
89 'PUBLISH_STATUS' => array(
90 'data_type' => 'string',
91 ),
92 'HAS_PROPS' => array(
93 'data_type' => 'string',
94 'values' => array('N','Y')
95 ),
96 'SHARE_DEST' => array(
97 'data_type' => 'string',
98 ),
99 'PATH' => array(
100 'data_type' => 'string',
101 ),
102 );
103
104 return $fieldsMap;
105 }
106
107 public static function add(array $data)
108 {
109 throw new NotImplementedException("Use CBlogComment class.");
110 }
111
112 public static function update($primary, array $data)
113 {
114 throw new NotImplementedException("Use CBlogComment class.");
115 }
116
117 public static function delete($primary)
118 {
119 throw new NotImplementedException("Use CBlogComment class.");
120 }
121}
static add(array $data)
Definition comment.php:107
static update($primary, array $data)
Definition comment.php:112