Changeset 133

Show
Ignore:
Timestamp:
06/08/08 02:22:05 (2 months ago)
Author:
felix
Message:

container field placeholder replacement. Usage: $edit->nest($field_id,$grid)

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/rapyd/components/dataform.php

    r83 r133  
    347347  // -------------------------------------------------------------------- 
    348348 
    349   function save_button($config=null) 
     349  public function save_button($config=null) 
    350350  { 
    351351    $caption = (isset($config['caption'])) ? $config['caption'] : rpd::lang('btn.save'); 
     
    361361  } 
    362362 
     363  // -------------------------------------------------------------------- 
     364 
     365  public function nest($field_id,$content) 
     366  { 
     367    $nesting_point = 'id="'.$field_id.'">'; 
     368    $this->output = str_replace($nesting_point,$nesting_point.$content,$this->output); 
     369  } 
    363370}