[Cs-project-svn_notify] SF.net SVN: cs-project: [652] trunk/lib/tagClass.php
Brought to you by:
crazedsanity
From: <cra...@us...> - 2007-11-21 16:51:44
|
Revision: 652 http://cs-project.svn.sourceforge.net/cs-project/?rev=652&view=rev Author: crazedsanity Date: 2007-11-21 08:51:23 -0800 (Wed, 21 Nov 2007) Log Message: ----------- Tags returned in a complex array with better ordering. /lib/tagClass.php: * get_tag_list(): -- primary ordering by modifier; secondarily by lower(name) -- data retrieved by cs_phpDB::farray_fieldnames() instead of cs_phpDB::farray_nvp() (the returned array is more complex). Modified Paths: -------------- trunk/lib/tagClass.php Modified: trunk/lib/tagClass.php =================================================================== --- trunk/lib/tagClass.php 2007-11-21 16:45:44 UTC (rev 651) +++ trunk/lib/tagClass.php 2007-11-21 16:51:23 UTC (rev 652) @@ -4,11 +4,11 @@ * * SVN INFORMATION::: * ------------------ - * SVN Signature::::::: $Id$ - * Last Author::::::::: $Author$ - * Current Revision:::: $Revision$ - * Repository Location: $HeadURL$ - * Last Updated:::::::: $Date$ + * SVN Signature::::::: $Id:tagClass.php 626 2007-11-20 16:54:11Z crazedsanity $ + * Last Author::::::::: $Author:crazedsanity $ + * Current Revision:::: $Revision:626 $ + * Repository Location: $HeadURL:https://cs-project.svn.sourceforge.net/svnroot/cs-project/trunk/lib/tagClass.php $ + * Last Updated:::::::: $Date:2007-11-20 10:54:11 -0600 (Tue, 20 Nov 2007) $ * * * Class for tagging items, so they can be viewed in a different way: this way, for items pertaining to @@ -54,7 +54,7 @@ * @return (exception) database error or no rows. */ public function get_tag_list() { - $sql = "SELECT * FROM tag_name_table ORDER BY lower(name)"; + $sql = "SELECT * FROM tag_name_table ORDER BY modifier, lower(name)"; $numrows = $this->db->exec($sql); $dberror = $this->db->errorMsg(); @@ -67,7 +67,7 @@ } else { //good to go! - $data = $this->db->farray_nvp("tag_name_id", "name"); + $data = $this->db->farray_fieldnames("tag_name_id", NULL, 0); return($data); } }//end get_tag_list() This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |