e4b8046f81d05923800a4cf35d23d8dfb7be61d1
1 <?php
3 /* Sieve else tag */
4 class sieve_elsif extends sieve_if
5 {
6 var $TYPE = "elsif";
7 }
9 class sieve_else
10 {
11 var $object_id = -1;
13 function check()
14 {
15 return(array());
16 }
18 function sieve_else($data,$object_id)
19 {
20 $this->object_id = $object_id;
21 }
23 function save_object()
24 {
25 }
27 function execute()
28 {
29 $smarty = get_smarty();
30 $smarty->assign("ID", $this->object_id);
31 $object_container = $smarty->fetch(get_template_path("templates/object_container_clear.tpl",TRUE,dirname(__FILE__)));
32 $object= $smarty->fetch(get_template_path("templates/element_else.tpl",TRUE,dirname(__FILE__)));
33 $str = preg_replace("/%%OBJECT_CONTENT%%/",$object,$object_container);
34 return($str);
35 }
37 function get_sieve_script_part()
38 {
39 return(" else ");
40 }
41 }
43 ?>