protected function changeEntitiesBecauseOfRenamedFields(array $renamedFieldsMapping, array $potentialNewFields, array $potentialDeletedFields) { foreach ($renamedFieldsMapping as $key => $value) { Nextgen_Utils::removeElementFromArray($key, $potentialDeletedFields); Nextgen_Utils::removeElementFromArray($value, $potentialNewFields); } return array($potentialNewFields, $potentialDeletedFields); }
public function renameTable($oldTableName, $newTableName) { $this->getTable($oldTableName)->setName($newTableName); // changing the key in the internal variable: // removing the element and inserting it back with a new key $tempTable = $this->getTable($oldTableName); Nextgen_Utils::removeElementFromArray($tempTable, $this->tables); $this->tables[$newTableName] = $tempTable; }
public function removeField($fieldName) { Nextgen_Utils::removeElementFromArrayByKey($fieldName, $this->fields); }