PHP Class MageConfigSync\Magento

Datei anzeigen Open project: punkstar/mageconfigsync Class Usage Examples

Protected Properties

Property Type Description
$_magentoRootDir

Public Methods

Method Description
__construct ( string $directory )
findMagentoRootDir ( string $start_directory ) : string Given a start directory, work upwards and attempt to identify the Magento root directory. Throws an exception if it can't be found.
getDatabaseReadAdapter ( ) : Varien_Db_Adapter_Interface
getDatabaseWriteConnection ( ) : Varien_Db_Adapter_Interface
getMagentoEnvironment ( ) : Mage_Core_Model_App
getTableName ( string $name ) : string

Method Details

__construct() public method

public __construct ( string $directory )
$directory string

findMagentoRootDir() public method

Given a start directory, work upwards and attempt to identify the Magento root directory. Throws an exception if it can't be found.
public findMagentoRootDir ( string $start_directory ) : string
$start_directory string
return string

getDatabaseReadAdapter() public method

public getDatabaseReadAdapter ( ) : Varien_Db_Adapter_Interface
return Varien_Db_Adapter_Interface

getDatabaseWriteConnection() public method

public getDatabaseWriteConnection ( ) : Varien_Db_Adapter_Interface
return Varien_Db_Adapter_Interface

getMagentoEnvironment() public method

public getMagentoEnvironment ( ) : Mage_Core_Model_App
return Mage_Core_Model_App

getTableName() public method

public getTableName ( string $name ) : string
$name string
return string

Property Details

$_magentoRootDir protected_oe property

protected $_magentoRootDir