for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace humhub\modules\pinterest\models;
use Yii;
/**
* ConfigureForm defines the configurable fields.
*/
class ConfigureForm extends \yii\base\Model
{
public $serverUrl;
* @inheritdoc
public function rules()
return [
['serverUrl', 'string'],
];
}
public function attributeLabels()
'serverUrl' => Yii::t('PinterestModule.base', 'Pinterest URL:'),
public function attributeHints()
'serverUrl' => Yii::t('PinterestModule.base', 'e.g. https://pinterest.com/{username}'),
public function loadSettings()
$this->serverUrl = Yii::$app->getModule('pinterest')->settings->get('serverUrl');
return true;
public function save()
Yii::$app->getModule('pinterest')->settings->set('serverUrl', $this->serverUrl);