Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Portfolio: Allow add like online activity - refs BT#18201
- Loading branch information
Showing
5 changed files
with
61 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
<?php | ||
/* For licensing terms, see /license.txt */ | ||
|
||
/** | ||
* Class PortfolioLink. | ||
*/ | ||
class PortfolioLink extends EvalLink | ||
{ | ||
public function __construct() | ||
{ | ||
parent::__construct(); | ||
|
||
$this->set_type(LINK_PORTFOLIO); | ||
} | ||
|
||
public function get_type_name() | ||
{ | ||
return get_lang('Portfolio'); | ||
} | ||
|
||
public function is_allowed_to_change_name() | ||
{ | ||
return false; | ||
} | ||
|
||
public function get_icon_name() | ||
{ | ||
return 'portfolio'; | ||
} | ||
|
||
protected function get_evaluation() | ||
{ | ||
$this->evaluation = parent::get_evaluation(); | ||
$this->evaluation->set_type('portfolio'); | ||
|
||
return $this->evaluation; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters