/** * @param OutputDevice $od */ public function execute(OutputDevice $od) { $manager = base_install_Manager::get(); if (!$this->_validateCMD()) { $this->_executeAll($od, $manager); return; } switch ($this->cmd) { case self::COPY_FILES: $this->_copyCSS($od, $manager); $this->_copyJS($od, $manager); $this->_copyPages($od, $manager); break; case self::CREATE_USER: $this->_createAdmin($od, $manager); break; case self::DELETE_CACHE: $this->_deleteCache($od); break; case self::IMPORT_DATA: $this->_createBaseObjectData($od, $manager); break; case self::IMPORT_FIELDINFO: $this->_createFieldinfo($od, $manager); break; case self::IMPORT_TMS: $this->_createTMS($od, $manager); break; case self::INSTALL_DB: $this->_createDB($od); break; case self::INSTALL_TABLES: $this->_createTables($od, $manager); break; } }
<?php /** * Created by PhpStorm. * User: Alex * Date: 11.01.2015 * Time: 10:26 */ $manager = base_install_Manager::get(); /** --------------- table navigationCategory ---------------*/ $table = new base_install_table_BaseObject('employee'); $col = new base_install_Column('firstName'); $col->setType(base_install_Column::VARCHAR)->setLength(400); $table->addColumn($col); $col = new base_install_Column('lastName'); $col->setType(base_install_Column::VARCHAR)->setLength(400); $table->addColumn($col); $col = new base_install_Column('graduation'); $col->setType(base_install_Column::VARCHAR)->setLength(400); $table->addColumn($col); $col = new base_install_Column('position'); $col->setType(base_install_Column::VARCHAR)->setLength(400); $table->addColumn($col); $col = new base_install_Column('email'); $col->setType(base_install_Column::VARCHAR)->setLength(400);