src/FlexiPeeHP/FlexiBeeRW.php
public function controlMandatoryColumns($data = null)
    {
        if (is_null($data)) {
            $data = $this->getData();
        }
        $missingMandatoryColumns = [];
        if (!empty($data) && count($data)) {
            $fbColumns = $this->getColumnsInfo();
            if (count($fbColumns)) {
                foreach ($fbColumns as $columnName => $columnInfo) {
                    $mandatory = ($columnInfo['mandatory'] == 'true');
                    if ($mandatory && !array_key_exists($columnName, $data)) {
                        $missingMandatoryColumns[$columnName] = $columnInfo['name'];
                    }
                }
            }
        }
        return $missingMandatoryColumns;
    }
public function controlMandatoryColumns($data = null)
    {
        if (is_null($data)) {
            $data = $this->getData();
        }
        $missingMandatoryColumns = [];
        if (!empty($data) && count($data)) {
            $fbColumns = $this->getColumnsInfo();
            if (count($fbColumns)) {
                foreach ($fbColumns as $columnName => $columnInfo) {
                    $mandatory = ($columnInfo['mandatory'] == 'true');
                    if ($mandatory && !array_key_exists($columnName, $data)) {
                        $missingMandatoryColumns[$columnName] = $columnInfo['name'];
                    }
                }
            }
        }
        return $missingMandatoryColumns;
    }
public function controlMandatoryColumns ( $ data = null ) { if ( is_null ( $ data ) ) { $ data = $ this -> getData ( ) ; } $ missingMandatoryColumns = [ ] ; if ( ! empty ( $ data ) && count ( $ data ) ) { $ fbColumns = $ this -> getColumnsInfo ( ) ; if ( count ( $ fbColumns ) ) { foreach ( $ fbColumns as $ columnName => $ columnInfo ) { $ mandatory = ( $ columnInfo [ 'mandatory' ] == 'true' ) ; if ( $ mandatory && ! array_key_exists ( $ columnName , $ data ) ) { $ missingMandatoryColumns [ $ columnName ] = $ columnInfo [ 'name' ] ; } } } } return $ missingMandatoryColumns ; }
Control data for mandatory columns presence.

@deprecated since version 1.8.7

@param array $data

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