PHP Class Treynolds_Qconfig_Helper_Data

Inheritance: extends Mage_Core_Helper_Abstract
ファイルを表示 Open project: tim-reynolds/magento-qconfig

Public Methods

Method Description
getQuickSearchResults ( $qsearch, $current, $website, $store ) : array

Protected Methods

Method Description
devGetNavRecords ( $qsearch, $sections, $configRoot, $levelClause ) : array
getGroupAndFieldRecordsByLabel ( $qsearch, $current, $sections, $levelClause ) : array
getGroupAndFieldRecordsByValue ( $qsearch, $current, $configRoot ) : array
getLevelClause ( $website, $store ) : string Need to check the "show_in_X" tags in system.xml files
getModuleSpecificRecords ( $module, $current, $levelClause ) : array This function will load a module's system.xml file and find all fields in it. Does not actually do string searching, just finds everything defined.
getNavEdgeCases ( ) : array
getNavRecords ( $qsearch, $sections, $configRoot, $levelClause ) : array
getSections ( $current, $website, $store ) : Mage_Core_Model_Config_Element
translateSections ( &$sections ) Translate $sections

Method Details

devGetNavRecords() protected method

protected devGetNavRecords ( $qsearch, $sections, $configRoot, $levelClause ) : array
$qsearch string
$sections Mage_Core_Model_Config_Element
$configRoot Varien_Simplexml_Element
$levelClause string
return array

getGroupAndFieldRecordsByLabel() protected method

protected getGroupAndFieldRecordsByLabel ( $qsearch, $current, $sections, $levelClause ) : array
$qsearch string
$current string
$sections Mage_Core_Model_Config_Element
$levelClause string
return array

getGroupAndFieldRecordsByValue() protected method

protected getGroupAndFieldRecordsByValue ( $qsearch, $current, $configRoot ) : array
$qsearch string
$current string
$configRoot Varien_Simplexml_Element
return array

getLevelClause() protected method

Need to check the "show_in_X" tags in system.xml files
protected getLevelClause ( $website, $store ) : string
$website string
$store string
return string

getModuleSpecificRecords() protected method

This function will load a module's system.xml file and find all fields in it. Does not actually do string searching, just finds everything defined.
protected getModuleSpecificRecords ( $module, $current, $levelClause ) : array
$module string
$current string
$levelClause string
return array

getNavEdgeCases() protected method

protected getNavEdgeCases ( ) : array
return array where the key is a string to match qsearch and the value is an array of xpath clauses

getNavRecords() protected method

protected getNavRecords ( $qsearch, $sections, $configRoot, $levelClause ) : array
$qsearch string
$sections Mage_Core_Model_Config_Element
$configRoot Varien_Simplexml_Element
$levelClause string
return array

getQuickSearchResults() public method

public getQuickSearchResults ( $qsearch, $current, $website, $store ) : array
$qsearch string Query String
$current string The current section of config you are viewing
$website string The current website you are under. Can be null or empty string
$store string The store view you are under. Can be null or empty string
return array with keys (nav, group, field), each of which is an array of strings

getSections() protected method

protected getSections ( $current, $website, $store ) : Mage_Core_Model_Config_Element
$current string
$website string
$store string
return Mage_Core_Model_Config_Element

translateSections() protected method

Translate $sections
protected translateSections ( &$sections )
$sections