Signed-off-by: Roland Haeder <roland@mxchange.org>
*
* @param ProfileListItem $item
*/
- function onStartProfileListItemProfile($item)
+ function onStartProfileListItemProfile(ProfileListItem $item)
{
$this->showProfileOptions($item->out, $item->profile->getProfile());
return true;
return $ts;
}
+ /**
+ * Getter for Profile instance
+ *
+ * @return $profile Profile instance
+ */
+ public function getProfile () {
+ assert($this->profile_id > 0);
+ $profile = new Profile();
+ $profile->id = $this->profile_id;
+ return $profile;
+ }
+
/**
* End a search subscription!
*