[pLog-svn] r573 - plog/trunk/class/dao

oscar at devel.plogworld.net oscar at devel.plogworld.net
Thu Dec 23 23:33:47 GMT 2004


Author: oscar
Date: 2004-12-23 23:33:47 +0000 (Thu, 23 Dec 2004)
New Revision: 573

Removed:
   plog/trunk/class/dao/listvalues.class.php
Log:
not needed anymore


Deleted: plog/trunk/class/dao/listvalues.class.php
===================================================================
--- plog/trunk/class/dao/listvalues.class.php	2004-12-23 23:32:40 UTC (rev 572)
+++ plog/trunk/class/dao/listvalues.class.php	2004-12-23 23:33:47 UTC (rev 573)
@@ -1,57 +0,0 @@
-<?php
-
-    /**
-     * @package dao
-     */
-
-
-    include_once( PLOG_CLASS_PATH."class/dao/model.class.php" );
-
-    /**
-     *  listvalues.class.php (ver 0.01)  Bradley Liang.
-	 *
-	 *  This modification to pLog (devel 0725) enables the drop-down
-	 *  menu to be used inside templates for the admin interface.
-	 *
-	 *  Example usage has been implemented in blogsettings.template
-	 *  and adminblogsettingsaction.class.php (included).
-	 *
-	 */
-    class ListValues extends Model {
-
-        function ListValues()
-        {
-             $this->Model();
-        }
-
-        /**
-         * Returns the value or values associated to the given section.
-         *
-         * @param mysection The section where we want to get the sections from.
-         * @return An array with the values, or false if error.
-         */
-        function getValues( $mysection = "themes" )
-        {
-             $query = "SELECT data FROM ".$this->getPrefix()."listings WHERE section = '".$mysection."' ORDER BY data ASC;";
-             $result = $this->Execute( $query );
-
-             if( !$result )
-             	return false;
-
-	     	$templates = array();
-	    	while( $row = $result->FetchRow())
-            	array_push($templates, $this->_fillListInfo( $row ));
-
-            return $templates;
-        }
-
-        /**
-         * Internal function.
-         * @private
-         */
-		function _fillListInfo( $query_result )
-		{
-	     	return $query_result["data"];
-		}
-    }
-?>




More information about the pLog-svn mailing list