summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTom Haste <tomhaste@gmail.com>2008-09-30 08:38:12 +0000
committerTom Haste <tomhaste@gmail.com>2008-09-30 08:38:12 +0000
commitb9eef461c78be5133bbfcd75ec172ebb8c8ed8b1 (patch)
tree48013e836f6eefedcdd8f83bb24cdeca45d84c4e
parentd452b9c9bcc5610fccb7a416d50b37ce05d94dfa (diff)
Exchange patch to allow rating in the api. Thanks mcalamelli
SVN revision: 36347
-rw-r--r--exchange/lib/model/doctrine/Application.class.php1
-rw-r--r--exchange/lib/model/doctrine/Madule.class.php1
-rw-r--r--exchange/lib/model/doctrine/Theme.class.php1
3 files changed, 3 insertions, 0 deletions
diff --git a/exchange/lib/model/doctrine/Application.class.php b/exchange/lib/model/doctrine/Application.class.php
index 97178ba..650fb43 100644
--- a/exchange/lib/model/doctrine/Application.class.php
+++ b/exchange/lib/model/doctrine/Application.class.php
@@ -78,6 +78,7 @@ class Application extends BaseApplication
78 $output .= '<url>'.htmlspecialchars($this->getSourceUrl()).'</url>'; 78 $output .= '<url>'.htmlspecialchars($this->getSourceUrl()).'</url>';
79 $output .= '<thumbnail>'.htmlspecialchars(Tools::get('url').$this->getUrlPath().'smallthumb.png').'</thumbnail>'; 79 $output .= '<thumbnail>'.htmlspecialchars(Tools::get('url').$this->getUrlPath().'smallthumb.png').'</thumbnail>';
80 $output .= '<screenshot>'.htmlspecialchars(Tools::get('url').$this->getUrlPath().'screenshot.png').'</screenshot>'; 80 $output .= '<screenshot>'.htmlspecialchars(Tools::get('url').$this->getUrlPath().'screenshot.png').'</screenshot>';
81 $output .= '<rating>'.$this->getRating().'</rating>';
81 $output .= '<user_id>'.$this->getUserId().'</user_id>'; 82 $output .= '<user_id>'.$this->getUserId().'</user_id>';
82 $output .= '<created_at>'.$this->getCreatedAt().'</created_at>'; 83 $output .= '<created_at>'.$this->getCreatedAt().'</created_at>';
83 $output .= '<updated_at>'.$this->getUpdatedAt().'</updated_at>'; 84 $output .= '<updated_at>'.$this->getUpdatedAt().'</updated_at>';
diff --git a/exchange/lib/model/doctrine/Madule.class.php b/exchange/lib/model/doctrine/Madule.class.php
index 8f805ca..eee3746 100644
--- a/exchange/lib/model/doctrine/Madule.class.php
+++ b/exchange/lib/model/doctrine/Madule.class.php
@@ -78,6 +78,7 @@ class Madule extends BaseMadule
78 $output .= '<url>'.htmlspecialchars($this->getSourceUrl()).'</url>'; 78 $output .= '<url>'.htmlspecialchars($this->getSourceUrl()).'</url>';
79 $output .= '<thumbnail>'.htmlspecialchars(Tools::get('url').$this->getUrlPath().'smallthumb.png').'</thumbnail>'; 79 $output .= '<thumbnail>'.htmlspecialchars(Tools::get('url').$this->getUrlPath().'smallthumb.png').'</thumbnail>';
80 $output .= '<screenshot>'.htmlspecialchars(Tools::get('url').$this->getUrlPath().'screenshot.png').'</screenshot>'; 80 $output .= '<screenshot>'.htmlspecialchars(Tools::get('url').$this->getUrlPath().'screenshot.png').'</screenshot>';
81 $output .= '<rating>'.$this->getRating().'</rating>';
81 $output .= '<application_id>'.$this->getApplicationId().'</application_id>'; 82 $output .= '<application_id>'.$this->getApplicationId().'</application_id>';
82 $output .= '<user_id>'.$this->getUserId().'</user_id>'; 83 $output .= '<user_id>'.$this->getUserId().'</user_id>';
83 $output .= '<created_at>'.$this->getCreatedAt().'</created_at>'; 84 $output .= '<created_at>'.$this->getCreatedAt().'</created_at>';
diff --git a/exchange/lib/model/doctrine/Theme.class.php b/exchange/lib/model/doctrine/Theme.class.php
index 81d3c17..f874cd5 100644
--- a/exchange/lib/model/doctrine/Theme.class.php
+++ b/exchange/lib/model/doctrine/Theme.class.php
@@ -56,6 +56,7 @@ class Theme extends BaseTheme
56 $output .= '<url>'.htmlspecialchars(Tools::get('url').'/theme/get/'.$this->getId()).'</url>'; 56 $output .= '<url>'.htmlspecialchars(Tools::get('url').'/theme/get/'.$this->getId()).'</url>';
57 $output .= '<thumbnail>'.htmlspecialchars(Tools::get('url').$this->getUrlPath().'smallthumb.png').'</thumbnail>'; 57 $output .= '<thumbnail>'.htmlspecialchars(Tools::get('url').$this->getUrlPath().'smallthumb.png').'</thumbnail>';
58 $output .= '<screenshot>'.htmlspecialchars(Tools::get('url').$this->getUrlPath().'screenshot.png').'</screenshot>'; 58 $output .= '<screenshot>'.htmlspecialchars(Tools::get('url').$this->getUrlPath().'screenshot.png').'</screenshot>';
59 $output .= '<rating>'.$this->getRating().'</rating>';
59 $output .= '<user_id>'.$this->getUserId().'</user_id>'; 60 $output .= '<user_id>'.$this->getUserId().'</user_id>';
60 $output .= '<created_at>'.$this->getCreatedAt().'</created_at>'; 61 $output .= '<created_at>'.$this->getCreatedAt().'</created_at>';
61 $output .= '<updated_at>'.$this->getUpdatedAt().'</updated_at>'; 62 $output .= '<updated_at>'.$this->getUpdatedAt().'</updated_at>';