/**
  * 
  * @param code_writer $ 
  * @return void 
  * @access protected 
  */
 function generate_constructor(&$code)
 {
     parent::generate_constructor($code);
     if (array_key_exists('hide', $this->attributes)) {
         $code->write_php($this->get_component_ref_code() . '->visible = false;');
     }
 }
 /**
  * 
  * @param code $ _writer
  * @return void 
  * @access protected 
  */
 function generate_constructor(&$code)
 {
     parent::generate_constructor($code);
     if (array_key_exists('items', $this->attributes)) {
         $code->write_php($this->get_component_ref_code() . '->items = \'' . $this->attributes['items'] . '\';');
         unset($this->attributes['items']);
     }
     if (array_key_exists('pages_per_section', $this->attributes)) {
         $code->write_php($this->get_component_ref_code() . '->pages_per_section = \'' . $this->attributes['pages_per_section'] . '\';');
         unset($this->attributes['pages_per_section']);
     }
 }
	function generate_constructor(&$code)
	{
		parent :: generate_constructor($code);
	} 
 /**
 * Writes the compiled template constructor from the runtime component,
 * assigning the attributes found at compile time to the runtime component
 * via a serialized string
 *
 * @param code $ _writer
 * @return void
 * @access protected
 */
 function generate_constructor(&$code)
 {
   parent::generate_constructor($code);
   $code->write_php($this->get_component_ref_code() . '->attributes = ' . var_export($this->attributes, true) . ';');
 }
 /**
  * Writes the compiled template constructor from the runtime component,
  * assigning the attributes found at compile time to the runtime component
  * via a serialized string
  * 
  * @param code $ _writer
  * @return void 
  * @access protected 
  */
 function generate_constructor(&$code)
 {
     parent::generate_constructor($code);
     $code->write_php($this->get_component_ref_code() . '->attributes = ' . var_export($this->attributes, true) . ';');
     //$code->write_php($this->get_component_ref_code() . '->attributes = unserialize("' . addslashes(serialize($this->attributes)) . '");');
 }