Exemplo n.º 1
0
	/**
     * 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);
   	}
Exemplo n.º 2
0
	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);
	}
Exemplo n.º 3
0
 	/**
     * 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);
    }
Exemplo n.º 4
0
 /**
  * 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);
 }