Exemplo n.º 1
0
    /**
     * get a new class instance
     *
     * @return base_install_Manager
     */
    public static function get()
    {
        if (self::$_instance === null) {
            self::$_instance = new self();
        }

        return self::$_instance;
    }
Exemplo n.º 2
0
<?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);
Exemplo n.º 3
0
 /**
  * @param OutputDevice $od
  * @param base_install_Manager $manager
  */
 private function _copyJS(OutputDevice $od, base_install_Manager $manager)
 {
     base_install_Message::printOut('---- Create JS ----', $od);
     $manager->copyJS($od);
     base_install_Message::printOut('---- JS created ----', $od);
     $od->addContent('----------------------------------------------------------------------------<br />');
 }