Skip to content

Latest commit

 

History

History
28 lines (21 loc) · 634 Bytes

service-contract-example.md

File metadata and controls

28 lines (21 loc) · 634 Bytes

Service Contract Example

namespace Xoops\Core\Service\Contract;
interface AvatarInterface {
const MODE = \Xoops\Core\Service\Manager::MODE_EXCLUSIVE;

/**
* @param Response $response \Xoops\Core\Service\Response object
* @param mixed $userinfo XoopsUser object
*
* @return void - response->value absolute URL to avatar image
*/

public function getAvatarUrl($response, $userinfo);

/**
* @param Response $response Xoops\Core\Service\Response object
* @param mixed $userinfo XoopsUser object
*
* @return void - response->value absolute URL to edit function
*/

public function getAvatarEditUrl($response, $userinfo);

}