private static function _getAimeos() { if (!isset(self::$_aimeos)) { require_once 'Aimeos.php'; spl_autoload_register('Aimeos::autoload'); $extdir = dirname(dirname(dirname(dirname(__FILE__)))); self::$_aimeos = new Aimeos(array($extdir), false); } return self::$_aimeos; }