예제 #1
0
 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);
 }
예제 #2
0
 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;
 }
예제 #3
0
 public function removeField($fieldName)
 {
     Nextgen_Utils::removeElementFromArrayByKey($fieldName, $this->fields);
 }