Microsoft_Log
[ class tree: Microsoft_Log ] [ index: Microsoft_Log ] [ all elements ]

Source for file Abstract.php

Documentation is available at Abstract.php

  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   Microsoft
  16.  * @package    Microsoft_Log
  17.  * @subpackage Writer
  18.  * @copyright  Copyright (c) 2005-2010 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.  * @see Microsoft_AutoLoader
  25.  */
  26. require_once dirname(__FILE__'/../../AutoLoader.php';
  27.  
  28. /**
  29.  * @category   Microsoft
  30.  * @package    Microsoft_Log
  31.  * @subpackage Writer
  32.  * @copyright  Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
  33.  * @license    http://framework.zend.com/license/new-bsd     New BSD License
  34.  * @version    $Id$
  35.  */
  36.     implements Microsoft_Log_Filter_InterfaceMicrosoft_Log_FactoryInterface
  37. {
  38.     /**
  39.      * Validate and optionally convert the config to array
  40.      * 
  41.      * @param  array $config 
  42.      * @return array 
  43.      * @throws Microsoft_Log_Exception
  44.      */
  45.     static protected function _parseConfig($config)
  46.     {
  47.         if (!is_array($config)) {
  48.             require_once 'Microsoft/Log/Exception.php';
  49.             throw new Microsoft_Log_Exception('Configuration must be an array');
  50.         }
  51.  
  52.         return $config;
  53.     }
  54. }

Documentation generated on Wed, 18 May 2011 12:06:03 +0200 by phpDocumentor 1.4.3