Exemplo n.º 1
0
    /**
     * Constructor
     *
     * @param   object  An optional KConfig object with configuration options
     */
    public function __construct(KConfig $config) 
    {
        parent::__construct($config);

        //Don't walk the incoming data array or object
        $this->_walk = false;
    }
Exemplo n.º 2
0
	/**
	 * Constructor
	 *
	 * @param 	object	An optional KConfig object with configuration options
	 */
	public function __construct(KConfig $config) 
	{
		parent::__construct($config);

		$this->_length    = $config->length;
		$this->_separator = $config->separator;
	}
Exemplo n.º 3
0
 /**
  * Constructor
  *
  * @param   object  An optional KConfig object with configuration options
  */
 public function __construct(KConfig $config)
 {
     parent::__construct($config);
     
     // List of user-defined tags
     if(isset($config->tag_list)) {
         $this->_tagsArray = array_map('strtolower', (array) $config->tag_list);
     }
     
     // List of user-defined attributes
     if(isset($config->attribute_list)) {
         $this->_attrArray = array_map('strtolower', (array) $config->attribute_list);
     }
     
     // WhiteList method = 0, BlackList method = 1
     if(isset($config->tag_method)) {
         $this->_tagsMethod = $config->tag_method;
     }
     
     // WhiteList method = 0, BlackList method = 1
     if(isset($config->attribute_method)) {
         $this->_attrMethod = $config->attribute_method;
     }
     
     //If false, only auto clean essentials, if true allow clean blacklisted tags/attr
     if(isset($config->xss_auto)) {
         $this->_xssAuto = $config->xss_auto;
     }
 }
Exemplo n.º 4
0
	public function __construct(KConfig $config)
	{
		parent::__construct($config);

		$this->addFilter(KFactory::get('com://admin/files.filter.folder.name'), KCommand::PRIORITY_HIGH);
		$this->addFilter(KFactory::get('com://admin/files.filter.folder.exists'), KCommand::PRIORITY_HIGH);
	}
Exemplo n.º 5
0
 /**
  * Constructor
  *
  * @param  object  An optional KConfig object with configuration options
  */
 public function __construct(KConfig $config)
 {
     parent::__construct($config);
       
     $this->_encdoing = $config->encoding;
     $this->_config   = KConfig::toData($config->config);
 }
Exemplo n.º 6
0
 /**
  * Constructor
  *
  * @param   object  An optional KConfig object with configuration options
  */
 public function __construct(KConfig $config)
 {
     parent::__construct($config);
     // List of user-defined tags
     if (isset($config->char_list)) {
         $this->_charList = $config->char_list;
     }
 }
 public function __construct(KConfig $config)
 {
     parent::__construct($config);
     $this->addFilter($this->getService('com://admin/files.filter.file.name'), KCommand::PRIORITY_HIGH);
     $this->addFilter($this->getService('com://admin/files.filter.file.extension'));
     $this->addFilter($this->getService('com://admin/files.filter.file.mimetype'));
     $this->addFilter($this->getService('com://admin/files.filter.file.size'));
 }
Exemplo n.º 8
0
 /**
  * Constructor
  *
  * @param  object  An optional KConfig object with configuration options
  */
 public function __construct(KConfig $config)
 {
     parent::__construct($config);
     if (isset($config->diagnose)) {
         $this->_diagnose = $config->diagnose;
     }
     if (isset($config->encoding)) {
         $this->_encdoing = $config->encoding;
     }
     if (isset($config->config)) {
         //$this->_config = array_merge($this->_config, $config['config']);
     }
 }
Exemplo n.º 9
0
 public function __construct(KConfig $config)
 {
     parent::__construct($config);
     $this->_config = $config;
 }
Exemplo n.º 10
0
 public function __construct(KConfig $config)
 {
     parent::__construct($config);
     $this->addFilter($this->getService('com://admin/files.filter.folder.name'), KCommand::PRIORITY_HIGH);
 }