Example #1
0
 /**
  * Constructor
  *
  * @param   ObjectConfig $config Configuration options
  */
 public function __construct(ObjectConfig $config)
 {
     parent::__construct($config);
     // List of user-defined tags
     if (isset($config->char_list)) {
         $this->_charList = $config->char_list;
     }
 }
Example #2
0
 /**
  * Constructor
  *
  * @param   ObjectConfig $config Configuration options
  */
 public function __construct(ObjectConfig $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;
     }
 }
Example #3
0
 /**
  * Initializes the config for the object
  *
  * Called from {@link __construct()} as a first step of object instantiation.
  *
  * @param   object  An optional ObjectConfig object with configuration options
  * @return  void
  */
 protected function _initialize(ObjectConfig $config)
 {
     $config->append(array('encoding' => 'utf8', 'options' => array('clean' => true, 'drop-proprietary-attributes' => true, 'output-html' => true, 'show-body-only' => true, 'bare' => true, 'wrap' => 0, 'word-2000' => true)));
     parent::_initialize($config);
 }
Example #4
0
 /**
  * @param \Symfony\Component\DependencyInjection\Container $container
  */
 public function __construct(\Symfony\Component\DependencyInjection\Container $container)
 {
     parent::__construct($container);
     $this->dateFormat = $this->container->getParameter('pedro_teixeira_grid.date.date_format');
     $this->setPlaceholder(strtoupper($this->dateFormat));
 }
Example #5
0
 /**
  * Constructor.
  *
  * @param ObjectConfig $config	An optional ObjectConfig object with configuration options.
  */
 public function __construct(ObjectConfig $config)
 {
     parent::__construct($config);
     //Create the queue
     $this->_queue = $this->getObject('lib:object.queue');
 }
Example #6
0
 /**
  * Initializes the options for the object
  *
  * Called from {@link __construct()} as a first step of object instantiation.
  *
  * @param 	object 	An optional ObjectConfig object with configuration options
  * @return void
  */
 protected function _initialize(ObjectConfig $config)
 {
     $config->append(array('separator' => '-', 'length' => 100));
     parent::_initialize($config);
 }
Example #7
0
 /**
  * Initializes the options for the object
  *
  * Called from {@link __construct()} as a first step of object instantiation.
  *
  * @param  ObjectConfig $config An optional ObjectConfig object with configuration options
  * @return void
  */
 protected function _initialize(ObjectConfig $config)
 {
     $config->append(array('max' => PHP_INT_MAX, 'min' => ~PHP_INT_MAX));
     parent::_initialize($config);
 }