PageRenderTime 54ms CodeModel.GetById 23ms RepoModel.GetById 0ms 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. * @category Zend
  24. * @package Zend_Service_WindowsAzure
  25. * @subpackage Diagnostics
  26. * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
  27. * @license http://framework.zend.com/license/new-bsd New BSD License
  28. *
  29. * @property int BufferQuotaInMB Buffer quota in MB
  30. * @property int ScheduledTransferPeriodInMinutes Scheduled transfer period in minutes
  31. * @property string ScheduledTransferLogLevelFilter Scheduled transfer log level filter
  32. * @property array Subscriptions Subscriptions
  33. */
  34. class Zend_Service_WindowsAzure_Diagnostics_ConfigurationWindowsEventLog
  35. extends Zend_Service_WindowsAzure_Diagnostics_ConfigurationObjectBaseAbstract
  36. {
  37. /**
  38. * Constructor
  39. *
  40. * @param int $bufferQuotaInMB Buffer quota in MB
  41. * @param int $scheduledTransferPeriodInMinutes Scheduled transfer period in minutes
  42. * @param string $scheduledTransferLogLevelFilter Scheduled transfer log level filter
  43. */
  44. public function __construct($bufferQuotaInMB = 0, $scheduledTransferPeriodInMinutes = 0, $scheduledTransferLogLevelFilter = Zend_Service_WindowsAzure_Diagnostics_LogLevel::UNDEFINED)
  45. {
  46. $this->_data = array(
  47. 'bufferquotainmb' => $bufferQuotaInMB,
  48. 'scheduledtransferperiodinminutes' => $scheduledTransferPeriodInMinutes,
  49. 'scheduledtransferloglevelfilter' => $scheduledTransferLogLevelFilter,
  50. 'subscriptions' => array()
  51. );
  52. }
  53. /**
  54. * Add subscription
  55. *
  56. * @param string $filter Event log filter
  57. */
  58. public function addSubscription($filter)
  59. {
  60. $this->_data['subscriptions'][$filter] = $filter;
  61. }
  62. /**
  63. * Remove subscription
  64. *
  65. * @param string $filter Event log filter
  66. */
  67. public function removeSubscription($filter)
  68. {
  69. if (isset($this->_data['subscriptions'][$filter])) {
  70. unset($this->_data['subscriptions'][$filter]);
  71. }
  72. }
  73. }