#!/usr/bin/env php _getInstaller(); $Installer->install(); } function uninstall() { $Installer =& $this->_getInstaller(); $Installer->uninstall(); } function &_getInstaller() { require_once(dirname(__FILE__).DS.'installer'.DS.'acts_as_sluggable_installer.php'); $Installer =& new ActsAsSluggableInstaller(); return $Installer; } function connectToDatabase($database_settings) { $this->_includeDependencies(); Ak::db($database_settings[AK_ENVIRONMENT]); } function _includeDependencies() { require_once(AK_LIB_DIR.DS.'Ak.php'); require_once(AK_LIB_DIR.DS.'AkObject.php'); require_once(AK_LIB_DIR.DS.'AkInflector.php'); require_once(AK_LIB_DIR.DS.'AkPlugin.php'); require_once(AK_LIB_DIR.DS.'AkPlugin/AkPluginManager.php'); require_once(AK_LIB_DIR.DS.'AkInstaller.php'); require_once(AK_LIB_DIR.DS.'utils'.DS.'generators'.DS.'AkelosGenerator.php'); } } $Makelos = new Makelos(); $Makelos->connectToDatabase($database_settings); $Makelos->$task(@$argv); ?>