1 <?php
3 class sieve_discard
4 {
5 var $data = array();
6 var $object_id = -1;
8 function sieve_discard($data,$object_id)
9 {
10 $this->object_id = $object_id;
11 }
13 function get_sieve_script_part()
14 {
15 return("discard;\n");
16 }
18 function save_object()
19 {
21 }
23 function execute()
24 {
25 $smarty = get_smarty();
26 $smarty->assign("ID", $this->object_id);
27 $object_container = $smarty->fetch(get_template_path("templates/object_container.tpl",TRUE,dirname(__FILE__)));
28 $object = $smarty->fetch(get_template_path("templates/element_discard.tpl",TRUE,dirname(__FILE__)));
29 $str = preg_replace("/%%OBJECT_CONTENT%%/",$object,$object_container);
30 return($str);
31 }
32 }
34 // vim:tabstop=2:expandtab:shiftwidth=2:filetype=php:syntax:ruler:
35 ?>