phpMyEdit - Viewing Bug Advanced Details [ Go Back ]
239 core / general feature always 2004-04-22 15:50 2004-05-03 11:44
hbernard  
 
normal  
feedback  
open  
none  
none  
Storing array of values in main class
This bug is related with 'output control' bug #127.

Goal is to have arrays of others fields values available for use in 'php' feature.

This means you would be able to concatenate fields value in one, for example.
Although their will not be any visible 'feature' without using 'php', this bug is not directly for 'php' function.
Please comment 'php' issue in the correct bug report.
0000239-sql.141.diff.txt (6 KB) 1970-01-01 01:33

Bug Notes
hbernard   
2004-04-22 15:55   
What has been already discussed is :
* have only two set of values :
- sql
- formatted values

API could be :
$this->sql_row
$this->row
michal   
2004-04-23 14:40   
implementation of this would be:

apply cellDisplay to every field before actual echoing of the value. this will return $value and (after slight modifications) also sql_value of this field. there will be no echo, so cellDisplay is not the best name.

create extra function which will apply above mentioned cellDisplay, (php), and url to each value. thus $this->row and $this->sql_row will be created.

when printing value, just echo $this->row[name] is needed.

note that $this->row will be array ('name' => 'value') so no numbers involved.
michal   
2004-05-03 11:44   
a diff against v1.141 of cvs uploaded
creates several extra functions

problems:
bad css for <a..> links (looking at the code, i wonder why it worked so far :-) )
almost_displayed >< processed - these two functions should produce the same result, so they could/should be merged.