Hi all,
I am currently trying to implement a feature that allow users to jump to recently used tables. I have partially implemented this feature in my repo [0] under the branch "browsemode" and want to ask for opinions.
1. Users can interact with a table in several ways: browse, structure, SQL, etc. Are all of these actions should be counted as "accessing a table"? 2. If yes, I am thinking of adding code in several places: sql.php, tbl_structure.php, tbl_sql.php, etc. (every possible values for $GLOBALS['cfg']['LeftDefaultTabTable']) in order to remember the accessed table. Is there any better way than this? (since I'm still not very deep with phpMyAdmin code) 3. If no, what actions should be considered as "accessing a table"?
NB: With my branch, you can see up to 5 recently used tables, by clicking table's icon (left of table's name) in the navigation frame. (LeftDefaultTabTables must be configured to the default value, "tbl_structure.php")
[0] http://repo.or.cz/w/phpmyadmin/arisferyanto.git
-- Aris Feryanto http://arispma.wordpress.com/
Le 2011-05-01 12:32, Aris Feryanto a écrit :
Hi all,
I am currently trying to implement a feature that allow users to jump to recently used tables. I have partially implemented this feature in my repo [0] under the branch "browsemode" and want to ask for opinions.
- Users can interact with a table in several ways: browse,
structure, SQL, etc. Are all of these actions should be counted as "accessing a table"?
Yes but with SQL I would not go so far as count as "accessed" all tables mentionned in a multi-table query.
2. If yes, I am thinking of adding code in
several places: sql.php, tbl_structure.php, tbl_sql.php, etc. (every possible values for $GLOBALS['cfg']['LeftDefaultTabTable']) in order to remember the accessed table. Is there any better way than this? (since I'm still not very deep with phpMyAdmin code)
Maybe I am oversimplifying things, but it appears to me that when a table name is displayed at the top (div id="serverinfo") it would be a good single point to call the "remembering" function.
3. If no, what
actions should be considered as "accessing a table"?
NB: With my branch, you can see up to 5 recently used tables, by clicking table's icon (left of table's name) in the navigation frame. (LeftDefaultTabTables must be configured to the default value, "tbl_structure.php")
[0] http://repo.or.cz/w/phpmyadmin/arisferyanto.git
-- Aris Feryanto http://arispma.wordpress.com/
WhatsUp Gold - Download Free Network Management Software
The most intuitive, comprehensive, and cost-effective network management toolset available today. Delivers lowest initial acquisition cost and overall TCO of any competing solution. http://p.sf.net/sfu/whatsupgold-sd
_______________________________________________ Phpmyadmin-devel mailing list Phpmyadmin-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/phpmyadmin-devel
Maybe I am oversimplifying things, but it appears to me that when a table name is displayed at the top (div id="serverinfo") it would be a good single point to call the "remembering" function.
Thanks, Marc. This should be a good point to remember accessed tables. I've implemented this on my "browsemode" branch.
Next: remember the recently accessed tables in PMA database (if configured).
-- Aris Feryanto
Maybe I am oversimplifying things, but it appears to me that when a table name is displayed at the top (div id="serverinfo") it would be a good single point to call the "remembering" function.
Thanks, Marc. This should be a good point to remember accessed tables. I've implemented this in my browsemode branch. Next: remember accessed tables in PMA database (if configured), so it will show up next time the user re-open phpmyadmin.
-- Aris Feryanto