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;");
16 }
17 function check()
18 {
19 return(array()) ;
20 }
23 function save_object()
24 {
26 }
28 function execute()
29 {
30 $smarty = get_smarty();
31 $smarty->assign("ID", $this->object_id);
32 $object_container = $smarty->fetch(get_template_path("templates/object_container.tpl",TRUE,dirname(__FILE__)));
33 $object = $smarty->fetch(get_template_path("templates/element_discard.tpl",TRUE,dirname(__FILE__)));
34 $str = preg_replace("/%%OBJECT_CONTENT%%/",addcslashes($object,"\\"),$object_container);
35 return($str);
36 }
37 }
39 // vim:tabstop=2:expandtab:shiftwidth=2:filetype=php:syntax:ruler:
40 ?>