public function setTables() { $errors = $this->getErrors(); $this->setTablesNames(); if (empty($errors) && count($this->_tables_names) > 0) { foreach ($this->_tables_names as $key => $value) { $table = new InfoTable($this->_dbname, $value, self::$_exceptions); $errors = $table->getErrors(); if (empty($errors)) { $this->_tables[$value] = $table; } else { $this->setErrors("setTables", "Failed to create class InfoDb for database " . $this->_dbname . " (Code. 4)"); return false; } } return true; } else { $this->setErrors("setTables", "Failed to create class InfoDb for database " . $this->_dbname . " (Code. 3)"); return false; } }
/** * This method creates an InfoTable widget which * is used to display information regarding the * uploaded file. */ function set_file_info_table($fileInfo) { $it = new InfoTable("File Upload Summary", 400); $lines = file($fileInfo['tmp_name']); $it->add_row("Filename", $fileInfo['name']); if (FT_DEBUG) { $it->add_row("Temporary Filename", $fileInfo['tmp_name']); } $it->add_row("File Size", filesize($fileInfo['tmp_name'])); $it->add_row("Lines", count($lines)); unset($lines); $this->__fileInfoTable =& $it; }