[pLog-svn] r1736 - plog/branches/plog-1.1-ben/class/dao
ork at devel.plogworld.net
ork at devel.plogworld.net
Tue Apr 5 13:20:00 GMT 2005
Author: ork
Date: 2005-04-05 13:19:59 +0000 (Tue, 05 Apr 2005)
New Revision: 1736
Modified:
plog/branches/plog-1.1-ben/class/dao/mylinkscategories.class.php
plog/branches/plog-1.1-ben/class/dao/searchengine.class.php
plog/branches/plog-1.1-ben/class/dao/users.class.php
Log:
removed more ->_db->Execute() calls
Modified: plog/branches/plog-1.1-ben/class/dao/mylinkscategories.class.php
===================================================================
--- plog/branches/plog-1.1-ben/class/dao/mylinkscategories.class.php 2005-04-05 13:16:00 UTC (rev 1735)
+++ plog/branches/plog-1.1-ben/class/dao/mylinkscategories.class.php 2005-04-05 13:19:59 UTC (rev 1736)
@@ -237,8 +237,7 @@
$query = "UPDATE ".$this->getPrefix()."mylinks_categories
SET last_modification = NOW()
WHERE id = '".Db::qstr( $categoryId )."'";
- $this->_db->debug=false;
- $result = $this->_db->Execute( $query );
+ $result = $this->Execute( $query );
return $result;
}
@@ -251,8 +250,7 @@
$query = "UPDATE ".$this->getPrefix()."mylinks_categories
SET last_modification = '".Db::qstr( $lastModification )."'
WHERE id = '".Db::qstr( $categoryId )."'";
- $this->_db->debug=false;
- $result = $this->_db->Execute( $query );
+ $result = $this->Execute( $query );
return $result;
}
Modified: plog/branches/plog-1.1-ben/class/dao/searchengine.class.php
===================================================================
--- plog/branches/plog-1.1-ben/class/dao/searchengine.class.php 2005-04-05 13:16:00 UTC (rev 1735)
+++ plog/branches/plog-1.1-ben/class/dao/searchengine.class.php 2005-04-05 13:19:59 UTC (rev 1736)
@@ -220,7 +220,7 @@
{
// build the search query
$searchQuery = $this->_generateSearchArticlesQuery( $blogId, $query, $minRelevance = 0, $maxResults = 0, $status = POST_STATUS_PUBLISHED, $userId = -1, $date = 0 );
- $result = $this->_db->Execute( $query );
+ $result = $this->Execute( $query );
// return an empty array if nothing available
if( !$result )
@@ -363,7 +363,7 @@
*/
function _getQueryResults ( $query, $queryType )
{
- $result = $this->_db->Execute( $query );
+ $result = $this->Execute( $query );
// return an empty array if nothing available
if( !$result )
Modified: plog/branches/plog-1.1-ben/class/dao/users.class.php
===================================================================
--- plog/branches/plog-1.1-ben/class/dao/users.class.php 2005-04-05 13:16:00 UTC (rev 1735)
+++ plog/branches/plog-1.1-ben/class/dao/users.class.php 2005-04-05 13:19:59 UTC (rev 1736)
@@ -444,7 +444,7 @@
// check if the user is the owner of any blog
$owner = "SELECT id FROM ".$this->getPrefix()."blogs WHERE owner_id = ".$userid.";";
- $result = $this->_db->Execute( $owner );
+ $result = $this->Execute( $owner );
if(!$result)
return $blogId;
@@ -465,7 +465,7 @@
FROM ".$this->getPrefix()."users
WHERE email = '".Db::qstr($email)."'";
- $result = $this->_db->Execute($query);
+ $result = $this->Execute($query);
if($result && $result->RecordCount() >= 1)
return true;
More information about the pLog-svn
mailing list