src/PeskyCMF/Scaffold/ScaffoldSectionConfig.php
protected function isValidComplexValueViewerName($name) {
        if ($this->allowComplexValueViewerNames && AbstractValueViewer::isComplexViewerName($name)) {
            list($colName, ) = AbstractValueViewer::splitComplexViewerName($name);
            if ($this->getTable()->getTableStructure()->hasColumn($colName)) {
                $type = $this->getTable()->getTableStructure()->getColumn($colName)->getType();
                return in_array($type, [Column::TYPE_JSON, Column::TYPE_JSONB], true);
            }
        }
        return false;
    }
protected function isValidComplexValueViewerName($name) {
        if ($this->allowComplexValueViewerNames && AbstractValueViewer::isComplexViewerName($name)) {
            list($colName, ) = AbstractValueViewer::splitComplexViewerName($name);
            if ($this->getTable()->getTableStructure()->hasColumn($colName)) {
                $type = $this->getTable()->getTableStructure()->getColumn($colName)->getType();
                return in_array($type, [Column::TYPE_JSON, Column::TYPE_JSONB], true);
            }
        }
        return false;
    }
protected function isValidComplexValueViewerName ( $ name ) { if ( $ this -> allowComplexValueViewerNames && AbstractValueViewer :: isComplexViewerName ( $ name ) ) { list ( $ colName , ) = AbstractValueViewer :: splitComplexViewerName ( $ name ) ; if ( $ this -> getTable ( ) -> getTableStructure ( ) -> hasColumn ( $ colName ) ) { $ type = $ this -> getTable ( ) -> getTableStructure ( ) -> getColumn ( $ colName ) -> getType ( ) ; return in_array ( $ type , [ Column :: TYPE_JSON , Column :: TYPE_JSONB ] , true ) ; } } return false ; }
Check if $name is complex column name like "column_name:key_name"
@param string $name
@return bool
Check if $name is complex column name like column_name : key_name