PageRenderTime 173ms CodeModel.GetById 91ms app.highlight 2ms RepoModel.GetById 78ms app.codeStats 0ms

/library/Zend/Service/WindowsAzure/Diagnostics/ConfigurationWindowsEventLog.php

https://bitbucket.org/hieronim1981/tunethemusic
PHP | 76 lines | 24 code | 3 blank | 49 comment | 1 complexity | 6f783f8a22042faeab146e0a3dc8ad8f MD5 | raw file
 1<?php
 2/**
 3 * Zend Framework
 4 *
 5 * LICENSE
 6 *
 7 * This source file is subject to the new BSD license that is bundled
 8 * with this package in the file LICENSE.txt.
 9 * It is also available through the world-wide-web at this URL:
10 * http://framework.zend.com/license/new-bsd
11 * If you did not receive a copy of the license and are unable to
12 * obtain it through the world-wide-web, please send an email
13 * to license@zend.com so we can send you a copy immediately.
14 *
15 * @category   Zend
16 * @package    Zend_Service_WindowsAzure
17 * @subpackage Diagnostics
18 * @copyright  Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
19 * @license    http://framework.zend.com/license/new-bsd     New BSD License
20 * @version    $Id$
21 */
22
23/**
24 * @category   Zend
25 * @package    Zend_Service_WindowsAzure
26 * @subpackage Diagnostics
27 * @copyright  Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
28 * @license    http://framework.zend.com/license/new-bsd     New BSD License
29 *
30 * @property	int		BufferQuotaInMB						Buffer quota in MB
31 * @property	int		ScheduledTransferPeriodInMinutes	Scheduled transfer period in minutes
32 * @property	string	ScheduledTransferLogLevelFilter		Scheduled transfer log level filter
33 * @property	array	Subscriptions						Subscriptions
34 */
35class Zend_Service_WindowsAzure_Diagnostics_ConfigurationWindowsEventLog
36	extends Zend_Service_WindowsAzure_Diagnostics_ConfigurationObjectBaseAbstract
37{
38    /**
39     * Constructor
40     * 
41	 * @param	int		$bufferQuotaInMB					Buffer quota in MB
42	 * @param	int		$scheduledTransferPeriodInMinutes	Scheduled transfer period in minutes
43	 * @param	string	$scheduledTransferLogLevelFilter	Scheduled transfer log level filter
44	 */
45    public function __construct($bufferQuotaInMB = 0, $scheduledTransferPeriodInMinutes = 0, $scheduledTransferLogLevelFilter = Zend_Service_WindowsAzure_Diagnostics_LogLevel::UNDEFINED) 
46    {	        
47        $this->_data = array(
48            'bufferquotainmb'        			=> $bufferQuotaInMB,
49            'scheduledtransferperiodinminutes' 	=> $scheduledTransferPeriodInMinutes,
50            'scheduledtransferloglevelfilter'	=> $scheduledTransferLogLevelFilter,
51        	'subscriptions'						=> array()
52        );
53    }
54    
55	/**
56	 * Add subscription
57	 * 
58 	 * @param	string	$filter	Event log filter
59	 */
60    public function addSubscription($filter)
61    {
62    	$this->_data['subscriptions'][$filter] = $filter;
63    }
64    
65	/**
66	 * Remove subscription
67	 * 
68 	 * @param	string	$filter	Event log filter
69	 */
70    public function removeSubscription($filter)
71    {
72    	if (isset($this->_data['subscriptions'][$filter])) {
73    		unset($this->_data['subscriptions'][$filter]);
74    	}
75    }
76}