src/Observers/AbstractColumnCollectorObserver.php
/**
     * Process the observer's business logic.
     *
     * @return void
     */
Process the observer's business logic.
@return void
Process the observer ' s business logic . @return void
protected function process() : void
    {
        if ($this->useMainRowOnly()) {
            $storeViewCode = $this->getValue(ColumnKeys::STORE_VIEW_CODE, StoreViewCodes::DEF);
            if ($storeViewCode !== StoreViewCodes::DEF) {
                return;
            }
        }
        $columnNames = $this->getLoader()->load($this->getSubject()->getConfiguration());
        foreach ($columnNames as $columnName) {
            $this->values[$columnName][$this->getPrimaryKey()] = $this->getValue($columnName);
        }
    }
protected function process ( ) : void { if ( $ this -> useMainRowOnly ( ) ) { $ storeViewCode = $ this -> getValue ( ColumnKeys :: STORE_VIEW_CODE , StoreViewCodes :: DEF ) ; if ( $ storeViewCode !== StoreViewCodes :: DEF ) { return ; } } $ columnNames = $ this -> getLoader ( ) -> load ( $ this -> getSubject ( ) -> getConfiguration ( ) ) ; foreach ( $ columnNames as $ columnName ) { $ this -> values [ $ columnName ] [ $ this -> getPrimaryKey ( ) ] = $ this -> getValue ( $ columnName ) ; } }
Process the observer's business logic.
Process the observer ' s business logic .
// query whether or not we've // to parse the main row only // load the store view code to figure out if we're on a main row or not // query whether or not we're in the // main row, if not stop processing // load the names of the columns we want to collect the values for // collect the values using the column name and the primary // key name as indexes to allow fast access to the values