columnOrder() public static method

non-existent columns default to numbered entries or if no numbered entries exists any longer, to null. entries in array that could not consume any column are put after the columns.
public static columnOrder ( array $columns, array $array ) : array
$columns array
$array array
return array
Ejemplo n.º 1
0
 /**
  * @param bool $ignoreDataUpdate
  * @param array $headers
  * @param int $errorCount
  * @return array
  */
 private function getModuleTable($ignoreDataUpdate, array $headers, &$errorCount)
 {
     $errorCount = 0;
     $table = array();
     foreach ($this->getMagentoModuleList() as $name => $module) {
         $row = $this->mapModuleToRow($name, $module, $ignoreDataUpdate, $errorCount);
         if ($ignoreDataUpdate) {
             unset($row['Data']);
         }
         $table[] = ArrayFunctions::columnOrder($headers, $row);
     }
     return $table;
 }