[Share 2.0] Update share class
More getters and setters are required to properly create shares
This commit is contained in:
parent
6c77d1734e
commit
4f2e84a0ec
|
@ -101,7 +101,7 @@ interface IShare {
|
||||||
* @param \DateTime $expireDate
|
* @param \DateTime $expireDate
|
||||||
* @return Share The modified object
|
* @return Share The modified object
|
||||||
*/
|
*/
|
||||||
public function setExpirationDate(\DateTime $expireDate);
|
public function setExpirationDate($expireDate);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Get the share expiration date
|
* Get the share expiration date
|
||||||
|
@ -110,6 +110,14 @@ interface IShare {
|
||||||
*/
|
*/
|
||||||
public function getExpirationDate();
|
public function getExpirationDate();
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Set the sharer of the path
|
||||||
|
*
|
||||||
|
* @param IUser|string $sharedBy
|
||||||
|
* @return Share The modified object
|
||||||
|
*/
|
||||||
|
public function setSharedBy($sharedBy);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Get share sharer
|
* Get share sharer
|
||||||
*
|
*
|
||||||
|
@ -117,6 +125,15 @@ interface IShare {
|
||||||
*/
|
*/
|
||||||
public function getSharedBy();
|
public function getSharedBy();
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Set the original share owner (who owns the path)
|
||||||
|
*
|
||||||
|
* @param IUser|string
|
||||||
|
*
|
||||||
|
* @return Share The modified object
|
||||||
|
*/
|
||||||
|
public function setShareOwner($shareOwner);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Get the original share owner (who owns the path)
|
* Get the original share owner (who owns the path)
|
||||||
*
|
*
|
||||||
|
@ -140,6 +157,14 @@ interface IShare {
|
||||||
*/
|
*/
|
||||||
public function getPassword();
|
public function getPassword();
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Set the token
|
||||||
|
*
|
||||||
|
* @param string $token
|
||||||
|
* @return Share The modified object
|
||||||
|
*/
|
||||||
|
public function setToken($token);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Get the token
|
* Get the token
|
||||||
*
|
*
|
||||||
|
@ -154,6 +179,14 @@ interface IShare {
|
||||||
*/
|
*/
|
||||||
public function getParent();
|
public function getParent();
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Set the target of this share
|
||||||
|
*
|
||||||
|
* @param string $target
|
||||||
|
* @return Share The modified object
|
||||||
|
*/
|
||||||
|
public function setTarget($target);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Get the target of this share
|
* Get the target of this share
|
||||||
*
|
*
|
||||||
|
|
|
@ -163,7 +163,7 @@ class Share implements IShare {
|
||||||
* @param \DateTime $expireDate
|
* @param \DateTime $expireDate
|
||||||
* @return Share The modified object
|
* @return Share The modified object
|
||||||
*/
|
*/
|
||||||
public function setExpirationDate(\DateTime $expireDate) {
|
public function setExpirationDate($expireDate) {
|
||||||
//TODO checks
|
//TODO checks
|
||||||
|
|
||||||
$this->expireDate = $expireDate;
|
$this->expireDate = $expireDate;
|
||||||
|
|
Loading…
Reference in New Issue