/** * 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; }
/** * 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; } }
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); }
/** * 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')); }
/** * Initializes the options for the object * * Called from {@link __construct()} as a first step of object instantiation. * * @param object An optional KConfig object with configuration options * @return void */ protected function _initialize(KConfig $config) { $config->append(array( 'separator' => '-', 'length' => 100 )); parent::_initialize($config); }
protected function _initialize(KConfig $config) { $component_config = KFactory::get('com://admin/files.database.row.config'); $config->append(array( 'maximum_size' => $component_config->upload_maxsize )); parent::_initialize($config); }
/** * 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']); } }
/** * Initializes the config for the object * * Called from {@link __construct()} as a first step of object instantiation. * * @param object An optional KConfig object with configuration options * @return void */ protected function _initialize(KConfig $config) { $config->append(array( 'encoding' => 'utf8', 'config' => array( 'clean' => true, 'drop-proprietary-attributes' => true, 'output-html' => true, 'show-body-only' => true, 'bare' => true, 'wrap' => 0, 'word-2000' => true, ) )); parent::_initialize($config); }
public function __construct(KConfig $config) { parent::__construct($config); $this->addFilter($this->getService('com://admin/files.filter.folder.name'), KCommand::PRIORITY_HIGH); }
/** * Initializes the options for the object * * Called from {@link __construct()} as a first step of object instantiation. * * @param KObjectConfig $config An optional ObjectConfig object with configuration options * @return void */ protected function _initialize(KObjectConfig $config) { $config->append(array('max' => PHP_INT_MAX, 'min' => ~PHP_INT_MAX)); parent::_initialize($config); }