From ed8166e15646ce5a93e02a55858463ac6d3fc9ef Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=A9bastien=20Lucas?= Date: Sun, 10 Mar 2013 08:48:49 +0100 Subject: [PATCH] Code cleanup --- customcolumn.php | 7 ------- 1 file changed, 7 deletions(-) diff --git a/customcolumn.php b/customcolumn.php index 4218040..f4f207d 100644 --- a/customcolumn.php +++ b/customcolumn.php @@ -74,7 +74,6 @@ class CustomColumn extends Base { } public static function getCustomById ($customId, $id) { - $test = 'select id, value as name from ' . self::getTableName ($customId) . ' where id = ?'; $result = parent::getDb ()->prepare('select id, value as name from ' . self::getTableName ($customId) . ' where id = ?'); $result->execute (array ($id)); if ($post = $result->fetchObject ()) { @@ -84,12 +83,6 @@ class CustomColumn extends Base { } public static function getAllCustoms($customId) { - $test = str_format ("{0} - {1} - {2}", self::getTableName ($customId), self::getTableLinkName ($customId), self::getTableLinkColumn ($customId)); - $test = str_format ('select {0}.id as id, {0}.value as name, count(*) as count -from {0}, {1} -where {0}.id = {1}.{2} -group by {0}.id, {0}.value -order by {0}.value', self::getTableName ($customId), self::getTableLinkName ($customId), self::getTableLinkColumn ($customId)); $result = parent::getDb ()->query(str_format ('select {0}.id as id, {0}.value as name, count(*) as count from {0}, {1} where {0}.id = {1}.{2}