Application
[ class tree: Application ] [ index: Application ] [ all elements ]

Class: Application_Cli

Source Location: /models/Application/Cli.php

Class Overview

Application_Bootstrap_Base
   |
   --Application_Cli

Command line interface for Mai. (Mai Manager)


Author(s):

  • Wouter Bulten (wouterbulten@mai-ai.org)

Copyright:

  • Copyright (C) 2009 Mai (Me Artificial Intelligence)

Methods


Inherited Methods

Class: Application_Bootstrap_Base

Application_Bootstrap_Base::__construct()
Private constructor to prevent creation of this object.
Application_Bootstrap_Base::initAutoLoader()
Setup auto loading of classes.
Application_Bootstrap_Base::initBaseDbConnection()
Connect to base db.
Application_Bootstrap_Base::initGlobalConfig()
Loads the global.ini file and saves it to the registry.
Application_Bootstrap_Base::initIncludePaths()
Set include paths.
Application_Bootstrap_Base::initUserDbConnection()
Connect to user db.
Application_Bootstrap_Base::returnDbConfig()
Loads the db.ini file.
Application_Bootstrap_Base::returnDoctrineCliConfigBase()
Loads the doctrine-cli.ini file and outputs an array with config variables for the base db.
Application_Bootstrap_Base::returnDoctrineCliConfigUser()
Loads the doctrine-cli.ini file and outputs an array with config variables for the user db.
Application_Bootstrap_Base::run()
Starts up the bootstrap.
Application_Bootstrap_Base::__clone()
Cloning of a bootstrap class is not allowed.

Class Details

[line 43]
Command line interface for Mai. (Mai Manager)



Tags:

author:  Wouter Bulten (wouterbulten@mai-ai.org)
copyright:  Copyright (C) 2009 Mai (Me Artificial Intelligence)
link:  http://www.launchpad.net/mai
license:  GNU General Public License version 3 (GPLv3)


[ Top ]


Class Methods


static method askToConfirm [line 115]

static void askToConfirm( [$message $message = "\n\nDo you wish to continue? (y\n) "])

Ask the user to confirm.



Tags:

access:  private


Parameters:

$message   $message  

[ Top ]

static method askToContinue [line 136]

static void askToContinue( )

Ask the user to continue



Tags:

access:  private


[ Top ]

static method createConfig [line 279]

static void createConfig( )

Create a config file for Mai



Tags:

access:  private


[ Top ]

static method output [line 160]

static void output( $message $message)

Output a message.



Tags:

access:  private


Parameters:

$message   $message  

[ Top ]

static method run [line 56]

static void run( $arguments 0)

Starts up the bootstrap.



Tags:

access:  public


Overrides Application_Bootstrap_Base::run() (Starts up the bootstrap.)

Parameters:

$arguments   0  

[ Top ]

static method runBackupDb [line 607]

static void runBackupDb( )

Backup the Mai database



Tags:

access:  private


[ Top ]

static method runInstall [line 438]

static void runInstall( )

Install Mai



Tags:

access:  private


[ Top ]

static method testBaseDb [line 375]

static Boolean testBaseDb( )

Test the connection with the base db.



Tags:

access:  private


[ Top ]

static method testDatabaseDrivers [line 178]

static Boolean testDatabaseDrivers( )

Look for a loaded database extension.



Tags:

access:  private


[ Top ]

static method testPhpVersion [line 169]

static Boolean testPhpVersion( )

Test the PHP version.



Tags:

access:  private


[ Top ]

static method testUserDb [line 406]

static Boolean testUserDb( )

Test the connection with the user db.



Tags:

access:  private


[ Top ]

constructor __construct [line 49]

void __construct( )

Private constructor to prevent creation of this object.



Tags:

access:  private


Overrides Application_Bootstrap_Base::__construct() (Private constructor to prevent creation of this object.)

[ Top ]


Documentation generated on Mon, 27 Jul 2009 19:51:55 +0200 by phpDocumentor 1.4.1