Class Mage_XmlConnect_Model_Theme

Description

Magento

NOTICE OF LICENSE

This source file is subject to the Open Software License (OSL 3.0) that is bundled with this package in the file LICENSE.txt. It is also available through the world-wide-web at this URL: http://opensource.org/licenses/osl-3.0.php If you did not receive a copy of the license and are unable to obtain it through the world-wide-web, please send an email to [email protected] so we can send you a copy immediately.

DISCLAIMER

Do not edit or add to this file if you wish to upgrade Magento to newer versions in the future. If you wish to customize Magento for your needs please refer to http://www.magentocommerce.com for more information.

Located in /XmlConnect/Model/Theme.php (line 27)


	
			
Variable Summary
mixed $_conf
mixed $_file
mixed $_xml
Method Summary
void __construct (string $file)
array getFormData ()
string getLabel ()
string getName ()
void importAndSaveData (array $data)
void _buildRecursive (SimpleXMLElement $parent, array $data)
array _flatArray (array $subtree, [string $prefix = null])
array _validateFormInput (array $data, [array $xml = NULL])
array _xmlToArray (array $xml)
Variables
mixed $_conf (line 31)
  • access: protected
mixed $_file (line 29)
  • access: protected
mixed $_xml (line 30)
  • access: protected
Methods
Constructor __construct (line 40)

Load Theme xml from $file

  • throws: Mage_Core_Exception
  • access: public
void __construct (string $file)
  • string $file
getFormData (line 109)

Load data (flat array) for Varien_Data_Form

  • access: public
array getFormData ()
getLabel (line 99)

Getter for theme Label

  • access: public
string getLabel ()
getName (line 89)

Getter for theme name

  • access: public
string getName ()
importAndSaveData (line 195)

Import data into theme form $data array, and save XML to file

  • access: public
void importAndSaveData (array $data)
  • array $data
_buildRecursive (line 178)

Build XML object recursively from $data array

  • access: protected
void _buildRecursive (SimpleXMLElement $parent, array $data)
  • SimpleXMLElement $parent
  • array $data
_flatArray (line 121)

Load data (flat array) for Varien_Data_Form

  • access: protected
array _flatArray (array $subtree, [string $prefix = null])
  • array $subtree
  • string $prefix
_validateFormInput (line 147)

Validate input Array, recursive

  • access: protected
array _validateFormInput (array $data, [array $xml = NULL])
  • array $data
  • array $xml
_xmlToArray (line 71)

Get theme xml as array

  • access: protected
array _xmlToArray (array $xml)
  • array $xml

Documentation generated on Fri, 11 Feb 2011 17:14:44 +0200 by phpDocumentor 1.4.3