HaruOutline::setDestination()
(PECL haru >= 0.0.1)
Set the destination for the outline
说明
HaruOutline::setDestination(object $destination): bool
Sets a destination object which becomes a target to jump to when the outline is clicked.
参数
- $destination
A valid HaruDestination instance.
返回值
Returns TRUE
on success.
错误/异常
发生错误时抛出HaruException异常。