Diff
333
345
345
modules.php
  |
182 | 182 | | return true; |
| |
183 | 183 | | } |
| |
184 | 184 | | |
  |
| 185 | + | function install() { |
| |
| 186 | + | global $osC_Database; |
| |
| 187 | + | |
| |
| 188 | + | $Qinstall = $osC_Database->query('insert into :table_templates_boxes (title, code, author_name, author_www, modules_group) values (:title, :code, :author_name, :author_www, :modules_group)'); |
| |
| 189 | + | $Qinstall->bindTable(':table_templates_boxes', TABLE_TEMPLATES_BOXES); |
| |
| 190 | + | $Qinstall->bindValue(':title', $this->_title); |
| |
| 191 | + | $Qinstall->bindValue(':code', $this->_code); |
| |
| 192 | + | $Qinstall->bindValue(':author_name', $this->_author_name); |
| |
| 193 | + | $Qinstall->bindValue(':author_www', $this->_author_www); |
| |
| 194 | + | $Qinstall->bindValue(':modules_group', $this->_group); |
| |
| 195 | + | $Qinstall->execute(); |
| |
| 196 | + | } |
| |
| 197 | + | |
  |
185 | 198 | | function remove() { |
| |
186 | 199 | | global $osC_Database; |
| |
187 | 200 | | |
|