Added Download counter
This commit is contained in:
@@ -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[]
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user