Method | Description | |
---|---|---|
bindSession ( boolean $use_cookie = true ) : void | Bind URL to current user session | |
getFile ( ) : ElggFile | null | Returns file object | |
getURL ( ) : string | false | Returns publicly accessible URL | |
setDisposition ( string $disposition = self::ATTACHMENT ) : void | Sets content disposition | |
setExpires ( integer $expires = '+2 hours' ) : void | Sets URL expiration | |
setFile ( ElggFile $file ) : void | Set file object |
public bindSession ( boolean $use_cookie = true ) : void | ||
$use_cookie | boolean | Use cookie |
return | void |
public setDisposition ( string $disposition = self::ATTACHMENT ) : void | ||
$disposition | string | Content disposition ('inline' or 'attachment') |
return | void |
public setExpires ( integer $expires = '+2 hours' ) : void | ||
$expires | integer | String suitable for strtotime() |
return | void |