src/FlexiPeeHP/FlexiBeeRW.php
public function controlReadOnlyColumns($data = null)
    {
        if (is_null($data)) {
            $data = $this->getData();
        }

        $readonlyColumns = [];

        $fbColumns = $this->getColumnsInfo();
        if (!empty($fbColumns) && count($fbColumns)) {
            foreach ($fbColumns as $columnName => $columnInfo) {
                $writable = ($columnInfo['isWritable'] == 'true');
                if (!$writable && !array_key_exists($columnName, $data)) {
                    $readonlyColumns[$columnName] = $columnInfo['name'];
                }
            }
        }
        return $readonlyColumns;
    }
public function controlReadOnlyColumns($data = null)
    {
        if (is_null($data)) {
            $data = $this->getData();
        }

        $readonlyColumns = [];

        $fbColumns = $this->getColumnsInfo();
        if (!empty($fbColumns) && count($fbColumns)) {
            foreach ($fbColumns as $columnName => $columnInfo) {
                $writable = ($columnInfo['isWritable'] == 'true');
                if (!$writable && !array_key_exists($columnName, $data)) {
                    $readonlyColumns[$columnName] = $columnInfo['name'];
                }
            }
        }
        return $readonlyColumns;
    }
public function controlReadOnlyColumns ( $ data = null ) { if ( is_null ( $ data ) ) { $ data = $ this -> getData ( ) ; } $ readonlyColumns = [ ] ; $ fbColumns = $ this -> getColumnsInfo ( ) ; if ( ! empty ( $ fbColumns ) && count ( $ fbColumns ) ) { foreach ( $ fbColumns as $ columnName => $ columnInfo ) { $ writable = ( $ columnInfo [ 'isWritable' ] == 'true' ) ; if ( ! $ writable && ! array_key_exists ( $ columnName , $ data ) ) { $ readonlyColumns [ $ columnName ] = $ columnInfo [ 'name' ] ; } } } return $ readonlyColumns ; }
Control data for readonly columns presence.

@param array $data

@return array List of ReadOnly columns. Empty if all is ok
Control data for readonly columns presence .