Code

Updated filtering again
[gosa.git] / include / sieve / class_sieveElement_Stop.inc
1 <?php
3 /* This class handles the stop statement */
4 class sieve_stop 
5 {
6   var $object_id = -1;
8   function sieve_stop($data,$object_id)
9   {
10     $this->object_id = $object_id;
11   }
13   function save_object()
14   {
15   }
17   function check()
18   {
19     return(array());
20   }
22   function execute()
23   {
24     $smarty = get_smarty();
25     $smarty->assign("ID", $this->object_id);
26     $object_container = $smarty->fetch(get_template_path("templates/object_container.tpl",TRUE,dirname(__FILE__)));
27     $object= $smarty->fetch(get_template_path("templates/element_stop.tpl",TRUE,dirname(__FILE__)));
28     $str = preg_replace("/%%OBJECT_CONTENT%%/",addcslashes($object,"\\"),$object_container);
29     return($str);
30   }
32   function get_sieve_script_part()
33   {
34     return("stop; \n");
35   } 
36 }
38 // vim:tabstop=2:expandtab:shiftwidth=2:filetype=php:syntax:ruler:
39 ?>