1
0

Added Download counter

This commit is contained in:
2014-07-19 19:35:53 +02:00
parent 10ac7f4ec1
commit 49b7368f44
4 changed files with 46 additions and 2 deletions

View File

@@ -176,6 +176,20 @@ class Program extends CActiveRecord
return '/programs/view/' . $this->Name;
}
/**
* @return string
*/
public function getDownloadLink() {
return '/programs/download/' . $this->Name;
}
/**
* @return string
*/
public function getDirectDownloadLink() {
return '/data/programs/' . $this->Name . '.zip' ;
}
/**
* @return string[]
*/