summaryrefslogtreecommitdiffstats
path: root/lib/public
diff options
context:
space:
mode:
authorJulius Härtl <jus@bitgrid.net>2018-04-05 13:18:17 +0200
committerJulius Härtl <jus@bitgrid.net>2018-04-05 13:18:17 +0200
commit6ded1c46b711d52bc5f075b235987b43afd1fc02 (patch)
treee048f67197a143cfb29652dd3088506845612eb2 /lib/public
parent2e60f91ab159e51b8b39788077178cf96e8cfa0f (diff)
downloadnextcloud-server-6ded1c46b711d52bc5f075b235987b43afd1fc02.tar.gz
nextcloud-server-6ded1c46b711d52bc5f075b235987b43afd1fc02.zip
Add since tags
Signed-off-by: Julius Härtl <jus@bitgrid.net>
Diffstat (limited to 'lib/public')
-rw-r--r--lib/public/AppFramework/Http/Template/ExternalShareMenuAction.php11
-rw-r--r--lib/public/AppFramework/Http/Template/LinkMenuAction.php8
2 files changed, 18 insertions, 1 deletions
diff --git a/lib/public/AppFramework/Http/Template/ExternalShareMenuAction.php b/lib/public/AppFramework/Http/Template/ExternalShareMenuAction.php
index d22565e8178..4d455a9a755 100644
--- a/lib/public/AppFramework/Http/Template/ExternalShareMenuAction.php
+++ b/lib/public/AppFramework/Http/Template/ExternalShareMenuAction.php
@@ -25,7 +25,12 @@ namespace OCP\AppFramework\Http\Template;
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 */
@@ -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);
@@ -53,6 +59,9 @@ class ExternalShareMenuAction extends SimpleMenuAction {
$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) . '">' .
diff --git a/lib/public/AppFramework/Http/Template/LinkMenuAction.php b/lib/public/AppFramework/Http/Template/LinkMenuAction.php
index f0ffd1cc131..c2b432f7d2a 100644
--- a/lib/public/AppFramework/Http/Template/LinkMenuAction.php
+++ b/lib/public/AppFramework/Http/Template/LinkMenuAction.php
@@ -26,6 +26,12 @@ namespace OCP\AppFramework\Http\Template;
use OCP\AppFramework\Http\Template\SimpleMenuAction;
use OCP\Util;
+/**
+ * Class LinkMenuAction
+ *
+ * @package OCP\AppFramework\Http\Template
+ * @since 14.0.0
+ */
class LinkMenuAction extends SimpleMenuAction {
/**
@@ -34,6 +40,7 @@ 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);
@@ -41,6 +48,7 @@ class LinkMenuAction extends SimpleMenuAction {
/**
* @return string
+ * @since 14.0.0
*/
public function render(): string {
return '<li>' .