Re: プログラムから特定のユーザに対してトピック属性を追加したい

2017年7月5日 at 9:56

お早いご教示ありがとうございます。
理解が乏しくお恥ずかしい限りです。
おかげ様で下記のような感じでトピック属性の更新ができました。ありがとうございました。

use Concrete\Core\Tree\Node\Type\Topic as TopicNode;

public function addTopic()
{
$u = new User();
$ui = UserInfo::getByID($u->getUserID());

// リセット
$ui->clearAttribute('属性ハンドル');

// セット
$tn = new TopicNode();
$ui->setAttribute('属性ハンドル', $tn->getNodeByName('トピック名'));
}

タグ: