<?php
/*
* Copyright (c) 2009-2010 ATMAIL. All rights reserved
* See http://atmail.com/license.php for license agreement
*/

/**
 * Defines filters and validators for the Calendar controller
 */
class Atmail_Filter_Input_Controller_Calendar extends Atmail_Filter_Input
{
    private $_filters = array(
    
        // Filters for creategroup action       
        'modifyevent' => array(
            'SUMMARY'       => array('HTMLPurifier', 'StripTags', array('HtmlEntities', array('quotestyle' => ENT_QUOTES, 'encoding' => 'UTF-8'))),
            'DESCRIPTION'   => array('HTMLPurifier', 'StripTags', array('HtmlEntities', array('quotestyle' => ENT_QUOTES, 'encoding' => 'UTF-8'))),
            'LOCATION'		=> array('HTMLPurifier', 'StripTags', array('HtmlEntities', array('quotestyle' => ENT_QUOTES, 'encoding' => 'UTF-8'))),
        ),            
    );
   
    private $_validators = array(
    );

    
    public function __construct($action, $params)
    {
        $filters    = (isset($this->_filters[$action]))? $this->_filters[$action] : array();
        $validators = (isset($this->_validators[$action]))? $this->_validators[$action] : array();
        parent::__construct($filters, $validators, $params);
        
    }
}
