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\AbstractDriver;
* Driver for Ok.ru
*
* @link https://ok.ru
* @author Petro Sokolnykov <[email protected]>
* @since 2.0
class Odnoklassniki extends AbstractDriver
{
* @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 'https://connect.ok.ru/offer'
. '?url={url}'
. '&title={title}'
. '&description={description}'
. '&imageUrl={imageUrl}';