components/Interpreter.php
protected function pushSecondaryKeys($data, $form)
    {
        if (isset($data[$form]) && is_array($data[$form])) {
            foreach ($data[$form] as $secondaryKey => $values) {
                $data[$form][$secondaryKey][$this->relSecondaryKey] = $secondaryKey;
            }
        }

        return $data;
    }
protected function pushSecondaryKeys($data, $form)
    {
        if (isset($data[$form]) && is_array($data[$form])) {
            foreach ($data[$form] as $secondaryKey => $values) {
                $data[$form][$secondaryKey][$this->relSecondaryKey] = $secondaryKey;
            }
        }

        return $data;
    }
protected function pushSecondaryKeys ( $ data , $ form ) { if ( isset ( $ data [ $ form ] ) && is_array ( $ data [ $ form ] ) ) { foreach ( $ data [ $ form ] as $ secondaryKey => $ values ) { $ data [ $ form ] [ $ secondaryKey ] [ $ this -> relSecondaryKey ] = $ secondaryKey ; } } return $ data ; }
Pushes secondary keys to given data
@param array $data
@param string $form
Pushes secondary keys to given data