Overview

Packages

  • Horde
    • Icalendar
      • UnitTests
  • Ingo
    • UnitTests
  • None

Classes

  • Horde_Core_Ui_VarRenderer_Ingo
  • Ingo
  • Ingo_Api
  • Ingo_Exception
  • Ingo_Exception_Pear
  • Ingo_LoginTasks_SystemTask_Upgrade
  • Ingo_Script
  • Ingo_Script_Imap
  • Ingo_Script_Imap_Api
  • Ingo_Script_Imap_Live
  • Ingo_Script_Maildrop
  • Ingo_Script_Maildrop_Comment
  • Ingo_Script_Maildrop_Recipe
  • Ingo_Script_Maildrop_Variable
  • Ingo_Script_Procmail
  • Ingo_Script_Procmail_Comment
  • Ingo_Script_Procmail_Recipe
  • Ingo_Script_Procmail_Variable
  • Ingo_Script_Sieve
  • Ingo_Script_Sieve_Action
  • Ingo_Script_Sieve_Action_Addflag
  • Ingo_Script_Sieve_Action_Discard
  • Ingo_Script_Sieve_Action_Fileinto
  • Ingo_Script_Sieve_Action_Flag
  • Ingo_Script_Sieve_Action_Keep
  • Ingo_Script_Sieve_Action_Notify
  • Ingo_Script_Sieve_Action_Redirect
  • Ingo_Script_Sieve_Action_Reject
  • Ingo_Script_Sieve_Action_Removeflag
  • Ingo_Script_Sieve_Action_Stop
  • Ingo_Script_Sieve_Action_Vacation
  • Ingo_Script_Sieve_Comment
  • Ingo_Script_Sieve_Else
  • Ingo_Script_Sieve_Elsif
  • Ingo_Script_Sieve_If
  • Ingo_Script_Sieve_Test
  • Ingo_Script_Sieve_Test_Address
  • Ingo_Script_Sieve_Test_Allof
  • Ingo_Script_Sieve_Test_Anyof
  • Ingo_Script_Sieve_Test_Body
  • Ingo_Script_Sieve_Test_Exists
  • Ingo_Script_Sieve_Test_False
  • Ingo_Script_Sieve_Test_Header
  • Ingo_Script_Sieve_Test_Not
  • Ingo_Script_Sieve_Test_Relational
  • Ingo_Script_Sieve_Test_Size
  • Ingo_Script_Sieve_Test_True
  • Ingo_Storage
  • Ingo_Storage_Blacklist
  • Ingo_Storage_Filters
  • Ingo_Storage_Filters_Sql
  • Ingo_Storage_Forward
  • Ingo_Storage_Mock
  • Ingo_Storage_Prefs
  • Ingo_Storage_Rule
  • Ingo_Storage_Spam
  • Ingo_Storage_Sql
  • Ingo_Storage_Vacation
  • Ingo_Storage_VacationTest
  • Ingo_Storage_Whitelist
  • Ingo_Test
  • Ingo_Transport
  • Ingo_Transport_Ldap
  • Ingo_Transport_Null
  • Ingo_Transport_Sivtest
  • Ingo_Transport_Timsieved
  • Ingo_Transport_Vfs
  • Overview
  • Package
  • Class
  • Tree
  1: <?php
  2: /**
  3:  * Ingo_Storage_Vacation is the object used to hold vacation rule
  4:  * information.
  5:  *
  6:  * See the enclosed file LICENSE for license information (ASL).  If you
  7:  * did not receive this file, see http://www.horde.org/licenses/apache.
  8:  *
  9:  * @author  Michael Slusarz <slusarz@horde.org>
 10:  * @package Ingo
 11:  */
 12: class Ingo_Storage_Vacation extends Ingo_Storage_Rule
 13: {
 14: 
 15:     /**
 16:      */
 17:     protected $_addr = array();
 18: 
 19:     /**
 20:      */
 21:     protected $_days = 7;
 22: 
 23:     /**
 24:      */
 25:     protected $_excludes = array();
 26: 
 27:     /**
 28:      */
 29:     protected $_ignorelist = true;
 30: 
 31:     /**
 32:      */
 33:     protected $_reason = '';
 34: 
 35:     /**
 36:      */
 37:     protected $_subject = '';
 38: 
 39:     /**
 40:      */
 41:     protected $_start;
 42: 
 43:     /**
 44:      */
 45:     protected $_end;
 46: 
 47:     /**
 48:      */
 49:     protected $_obtype = Ingo_Storage::ACTION_VACATION;
 50: 
 51:     /**
 52:      */
 53:     public function setVacationAddresses($data, $sort = true)
 54:     {
 55:         $this->_addr = $this->_addressList($data, $sort);
 56:     }
 57: 
 58:     /**
 59:      */
 60:     public function setVacationDays($data)
 61:     {
 62:         $this->_days = $data;
 63:     }
 64: 
 65:     /**
 66:      */
 67:     public function setVacationExcludes($data, $sort = true)
 68:     {
 69:         $this->_excludes = $this->_addressList($data, $sort);
 70:     }
 71: 
 72:     /**
 73:      */
 74:     public function setVacationIgnorelist($data)
 75:     {
 76:         $this->_ignorelist = $data;
 77:     }
 78: 
 79:     /**
 80:      */
 81:     public function setVacationReason($data)
 82:     {
 83:         $this->_reason = $data;
 84:     }
 85: 
 86:     /**
 87:      */
 88:     public function setVacationSubject($data)
 89:     {
 90:         $this->_subject = $data;
 91:     }
 92: 
 93:     /**
 94:      */
 95:     public function setVacationStart($data)
 96:     {
 97:         $this->_start = $data;
 98:     }
 99: 
100:     /**
101:      */
102:     public function setVacationEnd($data)
103:     {
104:         $this->_end = $data;
105:     }
106: 
107:     /**
108:      */
109:     public function getVacationAddresses()
110:     {
111:         try {
112:             return Horde::callHook('vacation_addresses', array(Ingo::getUser()), 'ingo');
113:         } catch (Horde_Exception_HookNotSet $e) {
114:             return $this->_addr;
115:         }
116:     }
117: 
118:     /**
119:      */
120:     public function getVacationDays()
121:     {
122:         return $this->_days;
123:     }
124: 
125:     /**
126:      */
127:     public function getVacationExcludes()
128:     {
129:         return $this->_excludes;
130:     }
131: 
132:     /**
133:      */
134:     public function getVacationIgnorelist()
135:     {
136:         return $this->_ignorelist;
137:     }
138: 
139:     /**
140:      */
141:     public function getVacationReason()
142:     {
143:         return $this->_reason;
144:     }
145: 
146:     /**
147:      */
148:     public function getVacationSubject()
149:     {
150:         return $this->_subject;
151:     }
152: 
153:     /**
154:      */
155:     public function getVacationStart()
156:     {
157:         return $this->_start;
158:     }
159: 
160:     /**
161:      */
162:     public function getVacationStartYear()
163:     {
164:         return date('Y', $this->_start);
165:     }
166: 
167:     /**
168:      */
169:     public function getVacationStartMonth()
170:     {
171:         return date('n', $this->_start);
172:     }
173: 
174:     /**
175:      */
176:     public function getVacationStartDay()
177:     {
178:         return date('j', $this->_start);
179:     }
180: 
181:     /**
182:      */
183:     public function getVacationEnd()
184:     {
185:         return $this->_end;
186:     }
187: 
188:     /**
189:      */
190:     public function getVacationEndYear()
191:     {
192:         return date('Y', $this->_end);
193:     }
194: 
195:     /**
196:      */
197:     public function getVacationEndMonth()
198:     {
199:         return date('n', $this->_end);
200:     }
201: 
202:     /**
203:      */
204:     public function getVacationEndDay()
205:     {
206:         return date('j', $this->_end);
207:     }
208: 
209: }
210: 
API documentation generated by ApiGen