for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
/**
* @link https://github.com/yiimaker/yii2-social-share
* @copyright Copyright (c) 2017 Yii Maker
* @license BSD 3-Clause License
*/
namespace ymaker\social\share\drivers;
use ymaker\social\share\base\DriverAbstract;
* DriverAbstract for Vkontakte.
* @link https://vk.com
*
* @author Vladimir Kuprienko <[email protected]>
* @since 1.0
class Vkontakte extends DriverAbstract
{
* @inheritdoc
protected function processShareData()
$this->url = static::encodeData($this->url);
$this->title = static::encodeData($this->title);
$this->description = static::encodeData($this->description);
$this->imageUrl = static::encodeData($this->imageUrl);
}
protected function buildLink()
return 'http://vk.com/share.php?'
. 'url={url}'
. '&title={title}'
. '&description={description}'
. '&image={imageUrl}';