+ $del = DB_DataObject::factory('core_template');
+ $del->whereAddIn('!id', $ids, 'int');
+ $del->whereAddIn('view_name', $this->modules(), 'string');
+ $del->whereAddIn('filetype' , array( 'php', 'html' ), 'string');
+ $delids = $del->fetchAll('id');
+ if ($delids) {
+ DB_DataObject::factory('core_template')->query(
+ 'update core_template set is_deleted = 1 where id in('. implode(',', $delids). ')'
+ );
+ }