/**
* @inheritdoc
*/
public function getDataCellValue($model, $key, $index)
{
$settings = null;
if ($this->component === null) {
return $this->_result(Cms::BOOL_N);
}
if ($model instanceof CmsSite) {
$settings = \skeeks\cms\models\CmsComponentSettings::fetchByComponentSiteCode($this->component, $model->code);
}
if ($model instanceof User) {
$settings = \skeeks\cms\models\CmsComponentSettings::fetchByComponentUserId($this->component, $model->id);
}
if ($settings) {
return $this->_result(Cms::BOOL_Y);
}
return $this->_result(Cms::BOOL_N);
}