Beispiel #1
0
 /**
  * Gera o array com os dados de todas as tabelas
  * @return array
  */
 private function genArray()
 {
     $arrData = array();
     $arrTables = Information::getAllTables();
     foreach ($arrTables as $arrTable) {
         $table = $arrTable[0];
         $arrFields = Information::getDataTable($table);
         $pkname = $this->getArrFieldsPrimary($arrFields);
         if (!is_null($pkname)) {
             $arrData[$table]['fields'] = $arrFields;
             $arrData[$table]['pk'] = $pkname;
         }
     }
     return $arrData;
 }