Skip to content

Commit

Permalink
Add since tags
Browse files Browse the repository at this point in the history
Signed-off-by: Julius Härtl <jus@bitgrid.net>
  • Loading branch information
juliusknorr committed Apr 5, 2018
1 parent 2e60f91 commit 6ded1c4
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,12 @@

use OCP\AppFramework\Http\Template\SimpleMenuAction;
use OCP\Util;

/**
* Class LinkMenuAction
*
* @package OCP\AppFramework\Http\Template
* @since 14.0.0
*/
class ExternalShareMenuAction extends SimpleMenuAction {

/** @var string */
Expand All @@ -45,6 +50,7 @@ class ExternalShareMenuAction extends SimpleMenuAction {
* @param string $owner
* @param string $displayname
* @param string $shareName
* @since 14.0.0
*/
public function __construct(string $label, string $icon, string $owner, string $displayname, string $shareName) {
parent::__construct('save', $label, $icon);
Expand All @@ -53,6 +59,9 @@ public function __construct(string $label, string $icon, string $owner, string $
$this->shareName = $shareName;
}

/**
* @since 14.0.0
*/
public function render(): string {
return '<li>' .
'<a id="save-external-share" data-protected="false" data-owner-display-name="' . Util::sanitizeHTML($this->displayname) . '" data-owner="' . Util::sanitizeHTML($this->owner) . '" data-name="' . Util::sanitizeHTML($this->shareName) . '">' .
Expand Down
8 changes: 8 additions & 0 deletions lib/public/AppFramework/Http/Template/LinkMenuAction.php
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,12 @@
use OCP\AppFramework\Http\Template\SimpleMenuAction;
use OCP\Util;

/**
* Class LinkMenuAction
*
* @package OCP\AppFramework\Http\Template
* @since 14.0.0
*/
class LinkMenuAction extends SimpleMenuAction {

/**
Expand All @@ -34,13 +40,15 @@ class LinkMenuAction extends SimpleMenuAction {
* @param string $label
* @param string $icon
* @param string $link
* @since 14.0.0
*/
public function __construct(string $label, string $icon, string $link) {
parent::__construct('directLink-container', $label, $icon, $link);
}

/**
* @return string
* @since 14.0.0
*/
public function render(): string {
return '<li>' .
Expand Down

0 comments on commit 6ded1c4

Please sign in to comment.