they don't use any object context.
Signed-off-by: Roland Häder <roland@mxchange.org>
16 files changed:
$responseType = self::getResponseTypeFromSystem();
// Create a new request object
$responseType = self::getResponseTypeFromSystem();
// Create a new request object
- $requestInstance = ObjectFactory::createObjectByName($this->convertToClassName($response) . 'Request');
+ $requestInstance = ObjectFactory::createObjectByName(self::convertToClassName($response) . 'Request');
// Remember request instance here
$this->setRequestInstance($requestInstance);
// Remember request instance here
$this->setRequestInstance($requestInstance);
} // END - if
// ... and a new response object
} // END - if
// ... and a new response object
- $responseClass = sprintf('%sResponse', $this->convertToClassName($response));
+ $responseClass = sprintf('%sResponse', self::convertToClassName($response));
$responseInstance = ObjectFactory::createObjectByName($responseClass, array($this));
// Remember response instance here
$responseInstance = ObjectFactory::createObjectByName($responseClass, array($this));
// Remember response instance here
} // END - if
// Get a controller resolver
} // END - if
// Get a controller resolver
- $resolverClass = $this->convertToClassName($this->getAppShortName() . '_' . $responseType . '_controller_resolver');
+ $resolverClass = self::convertToClassName($this->getAppShortName() . '_' . $responseType . '_controller_resolver');
$resolverInstance = ObjectFactory::createObjectByName($resolverClass, array($commandName, $this));
// Get a controller instance as well
$resolverInstance = ObjectFactory::createObjectByName($resolverClass, array($commandName, $this));
// Get a controller instance as well
* @param $str The string, what ever it is needs to be converted
* @return $className Generated class name
*/
* @param $str The string, what ever it is needs to be converted
* @return $className Generated class name
*/
- public function convertToClassName ($str) {
+ public static final function convertToClassName ($str) {
// Init class name
$className = '';
// Convert all dashes in underscores
// Init class name
$className = '';
// Convert all dashes in underscores
- $str = $this->convertDashesToUnderscores($str);
+ $str = self::convertDashesToUnderscores($str);
// Now use that underscores to get classname parts for hungarian style
foreach (explode('_', $str) as $strPart) {
// Now use that underscores to get classname parts for hungarian style
foreach (explode('_', $str) as $strPart) {
* @param $str The string with maybe dashes inside
* @return $str The converted string with no dashed, but underscores
*/
* @param $str The string with maybe dashes inside
* @return $str The converted string with no dashed, but underscores
*/
- public final function convertDashesToUnderscores ($str) {
+ public static final function convertDashesToUnderscores ($str) {
// Convert them all
$str = str_replace('-', '_', $str);
// Convert them all
$str = str_replace('-', '_', $str);
//* DEBUG: */ self::createDebugInstance(__CLASS__)->debugOutput($fieldName.':<pre>'.print_r($fieldArray, TRUE).'</pre>');
// Convert dashes to underscore
//* DEBUG: */ self::createDebugInstance(__CLASS__)->debugOutput($fieldName.':<pre>'.print_r($fieldArray, TRUE).'</pre>');
// Convert dashes to underscore
- $fieldName2 = $this->convertDashesToUnderscores($fieldName);
+ $fieldName2 = self::convertDashesToUnderscores($fieldName);
// Does the field exist?
if ($this->isFieldSet($fieldName)) {
// Does the field exist?
if ($this->isFieldSet($fieldName)) {
//* NOISY-DEBUG: */ self::createDebugInstance(__CLASS__)->debugOutput('[' . $this->__toString() . ':' . __LINE__ . '] fieldName=' . $fieldName . ',fieldArray=<pre>'.print_r($fieldArray, TRUE).'</pre>');
// Convert dashes to underscore
//* NOISY-DEBUG: */ self::createDebugInstance(__CLASS__)->debugOutput('[' . $this->__toString() . ':' . __LINE__ . '] fieldName=' . $fieldName . ',fieldArray=<pre>'.print_r($fieldArray, TRUE).'</pre>');
// Convert dashes to underscore
- $fieldName = $this->convertDashesToUnderscores($fieldName);
+ $fieldName = self::convertDashesToUnderscores($fieldName);
// Determine it
$isSet = isset($fieldArray[$fieldName]);
// Determine it
$isSet = isset($fieldArray[$fieldName]);
$applicationInstance = $registryInstance->getInstance('application');
// Default action is the one from configuration
$applicationInstance = $registryInstance->getInstance('application');
// Default action is the one from configuration
- $this->actionName = $this->convertDashesToUnderscores($applicationInstance->getAppShortName()) . '_login_' . $this->getConfigInstance()->getConfigEntry('login_default_action');
+ $this->actionName = self::convertDashesToUnderscores($applicationInstance->getAppShortName()) . '_login_' . $this->getConfigInstance()->getConfigEntry('login_default_action');
// Get "action" from request
$actReq = $requestInstance->getRequestElement('action');
// Get "action" from request
$actReq = $requestInstance->getRequestElement('action');
// Do we have a "action" parameter set?
if ((is_string($actReq)) && (!empty($actReq))) {
// Then use it with prefix
// Do we have a "action" parameter set?
if ((is_string($actReq)) && (!empty($actReq))) {
// Then use it with prefix
- $this->actionName = $this->convertDashesToUnderscores($applicationInstance->getAppShortName()) . '_login_' . $actReq;
+ $this->actionName = self::convertDashesToUnderscores($applicationInstance->getAppShortName()) . '_login_' . $actReq;
} // END - if
// Get application instance
} // END - if
// Get application instance
assert((strpos($criteriaKey, 'my-') === FALSE) && (strpos($criteriaKey, 'my_') === FALSE));
// Convert dashes to underscore
assert((strpos($criteriaKey, 'my-') === FALSE) && (strpos($criteriaKey, 'my_') === FALSE));
// Convert dashes to underscore
- $criteriaKey = $this->convertDashesToUnderscores($criteriaKey);
+ $criteriaKey = self::convertDashesToUnderscores($criteriaKey);
// "Walk" through all criterias
foreach ($this->getGenericArray('criteria') as $criteriaType => $dummy) {
// "Walk" through all criterias
foreach ($this->getGenericArray('criteria') as $criteriaType => $dummy) {
assert((strpos($criteriaKey, 'my-') === FALSE) && (strpos($criteriaKey, 'my_') === FALSE) && (!is_bool($criteriaValue)));
// Convert dashes to underscore
assert((strpos($criteriaKey, 'my-') === FALSE) && (strpos($criteriaKey, 'my_') === FALSE) && (!is_bool($criteriaValue)));
// Convert dashes to underscore
- $criteriaKey = $this->convertDashesToUnderscores($criteriaKey);
+ $criteriaKey = self::convertDashesToUnderscores($criteriaKey);
// Debug message
//* NOISY-DEBUG: */ self::createDebugInstance(__CLASS__)->debugOutput(strtoupper($criteriaType) . '(' . $this->__toString() . ')-CRITERIA[' . __METHOD__ . ':' . __LINE__ . ']: criteriaKey=' . $criteriaKey . ',criteriaValue=' . $criteriaValue);
// Debug message
//* NOISY-DEBUG: */ self::createDebugInstance(__CLASS__)->debugOutput(strtoupper($criteriaType) . '(' . $this->__toString() . ')-CRITERIA[' . __METHOD__ . ':' . __LINE__ . ']: criteriaKey=' . $criteriaKey . ',criteriaValue=' . $criteriaValue);
//* NOISY-DEBUG: */ self::createDebugInstance(__CLASS__)->debugOutput(strtoupper($criteriaType) . '(' . $this->__toString() . ')-CRITERIA[' . __METHOD__ . ':' . __LINE__ . ']: criteriaKey=' . $criteriaKey . ',criteriaValue=' . $criteriaValue);
// Add it
//* NOISY-DEBUG: */ self::createDebugInstance(__CLASS__)->debugOutput(strtoupper($criteriaType) . '(' . $this->__toString() . ')-CRITERIA[' . __METHOD__ . ':' . __LINE__ . ']: criteriaKey=' . $criteriaKey . ',criteriaValue=' . $criteriaValue);
// Add it
- $this->pushValueToGenericArrayElement('criteria', 'choice', 'entries', $this->convertDashesToUnderscores($criteriaKey), (string) $criteriaValue);
+ $this->pushValueToGenericArrayElement('criteria', 'choice', 'entries', self::convertDashesToUnderscores($criteriaKey), (string) $criteriaValue);
assert((strpos($criteriaKey, 'my-') === FALSE) && (strpos($criteriaKey, 'my_') === FALSE));
// Convert dashes to underscore
assert((strpos($criteriaKey, 'my-') === FALSE) && (strpos($criteriaKey, 'my_') === FALSE));
// Convert dashes to underscore
- $criteriaKey = $this->convertDashesToUnderscores($criteriaKey);
+ $criteriaKey = self::convertDashesToUnderscores($criteriaKey);
// Debug message
//* NOISY-DEBUG: */ self::createDebugInstance(__CLASS__)->debugOutput(strtoupper($criteriaType) . '-CRITERIA[' . __METHOD__ . ':' . __LINE__ . ']: criteriaKey=' . $criteriaKey . ',criteria()=' . $this->countGenericArrayGroup('criteria', $criteriaType)));
// Debug message
//* NOISY-DEBUG: */ self::createDebugInstance(__CLASS__)->debugOutput(strtoupper($criteriaType) . '-CRITERIA[' . __METHOD__ . ':' . __LINE__ . ']: criteriaKey=' . $criteriaKey . ',criteria()=' . $this->countGenericArrayGroup('criteria', $criteriaType)));
assert((strpos($key, 'my-') === FALSE) && (strpos($key, 'my_') === FALSE));
// Convert dashes to underscore
assert((strpos($key, 'my-') === FALSE) && (strpos($key, 'my_') === FALSE));
// Convert dashes to underscore
- $key = $this->convertDashesToUnderscores($key);
+ $key = self::convertDashesToUnderscores($key);
// Then walk through all search criteria
foreach ($this->getGenericArrayKey('criteria', $criteriaType, 'entries') as $criteriaKey => $criteriaValue) {
// Then walk through all search criteria
foreach ($this->getGenericArrayKey('criteria', $criteriaType, 'entries') as $criteriaKey => $criteriaValue) {
assert((strpos($criteriaKey, 'my-') === FALSE) && (strpos($criteriaKey, 'my_') === FALSE) && (!is_bool($criteriaValue)));
// Convert dashes to underscore
assert((strpos($criteriaKey, 'my-') === FALSE) && (strpos($criteriaKey, 'my_') === FALSE) && (!is_bool($criteriaValue)));
// Convert dashes to underscore
- $criteriaKey = $this->convertDashesToUnderscores($criteriaKey);
+ $criteriaKey = self::convertDashesToUnderscores($criteriaKey);
// Is the element found and does it match?
if (($key == $criteriaKey) && ($criteriaValue == $entry)) {
// Is the element found and does it match?
if (($key == $criteriaKey) && ($criteriaValue == $entry)) {
assert(!is_array($criteriaValue));
// Convert dashes to underscore
assert(!is_array($criteriaValue));
// Convert dashes to underscore
- $criteriaKey = $this->convertDashesToUnderscores($criteriaKey);
+ $criteriaKey = self::convertDashesToUnderscores($criteriaKey);
// Is the value in array or is $onlyKeys empty?
if ((isset($onlyKeys[$criteriaKey])) || (count($onlyKeys) == 0)) {
// Is the value in array or is $onlyKeys empty?
if ((isset($onlyKeys[$criteriaKey])) || (count($onlyKeys) == 0)) {
assert(self::isFeatureAvailable($featureName));
// Array for call-back
assert(self::isFeatureAvailable($featureName));
// Array for call-back
- $callable = array(self::$enabledFeatures[$featureName]['instance'], $featureMethod);
+ $callable = array(self::$enabledFeatures[$featureName]['instance'], 'featureMethod' . self::convertToClassName($featureMethod));
// So is the feature's method callable?
if (!is_callable($callable)) {
// So is the feature's method callable?
if (!is_callable($callable)) {
//* DEBUG: */ self::createDebugInstance(__CLASS__)->debugOutput($fieldName.'='.$fieldValue);
// Now filter it through the value through the filter method
//* DEBUG: */ self::createDebugInstance(__CLASS__)->debugOutput($fieldName.'='.$fieldValue);
// Now filter it through the value through the filter method
- $filteredValue = call_user_func_array(array($this, 'doFilter' . $this->convertToClassName($filterMethod)), array($fieldValue));
+ $filteredValue = call_user_func_array(array($this, 'doFilter' . self::convertToClassName($filterMethod)), array($fieldValue));
// Assign it with a template variable
$this->getTemplateInstance()->assignVariable('block_' . $fieldName, $filteredValue);
// Assign it with a template variable
$this->getTemplateInstance()->assignVariable('block_' . $fieldName, $filteredValue);
$headerValue = NULL;
// Construct the name
$headerValue = NULL;
// Construct the name
- $name = 'HTTP_' . strtoupper($this->convertDashesToUnderscores($headerName));
+ $name = 'HTTP_' . strtoupper(self::convertDashesToUnderscores($headerName));
// Does this header exist?
if (isset($_SERVER[$name])) {
// Does this header exist?
if (isset($_SERVER[$name])) {
} // END - if
// Create class name
} // END - if
// Create class name
- $className = $this->getCapitalizedClassPrefix() . $this->convertToClassName($actionName) . 'Action';
+ $className = $this->getCapitalizedClassPrefix() . self::convertToClassName($actionName) . 'Action';
// Now, let us create the full name of the action class
$this->setClassName($className);
// Now, let us create the full name of the action class
$this->setClassName($className);
$actionInstance = NULL;
// Create action class name
$actionInstance = NULL;
// Create action class name
- $className = $this->getCapitalizedClassPrefix() . $this->convertToClassName($this->getActionName()) . 'Action';
+ $className = $this->getCapitalizedClassPrefix() . self::convertToClassName($this->getActionName()) . 'Action';
// ... and set it
$this->setClassName($className);
// ... and set it
$this->setClassName($className);
$className = $this->getClassPrefix();
// And capitalize it
$className = $this->getClassPrefix();
// And capitalize it
- $className = $this->convertToClassName($className);
+ $className = self::convertToClassName($className);
// Return it
return $className;
// Return it
return $className;
$commandInstance = NULL;
// Create class name
$commandInstance = NULL;
// Create class name
- $className = $this->getCapitalizedClassPrefix() . $this->convertToClassName($commandName) . 'Command';
+ $className = $this->getCapitalizedClassPrefix() . self::convertToClassName($commandName) . 'Command';
// Create command class name
$this->setClassName($className);
// Create command class name
$this->setClassName($className);
} // END - if
// Create the full class name
} // END - if
// Create the full class name
- $className = $this->getCapitalizedClassPrefix() . $this->convertToClassName($commandName) . 'Command';
+ $className = $this->getCapitalizedClassPrefix() . self::convertToClassName($commandName) . 'Command';
// Now, let us create the full name of the command class
$this->setClassName($className);
// Now, let us create the full name of the command class
$this->setClassName($className);
//* DEBUG: */ self::createDebugInstance(__CLASS__)->debugOutput('BEFORE: controller=' . $controllerName);
if ($controllerName != $defaultController) {
// Create controller class name
//* DEBUG: */ self::createDebugInstance(__CLASS__)->debugOutput('BEFORE: controller=' . $controllerName);
if ($controllerName != $defaultController) {
// Create controller class name
- $className = $this->getCapitalizedClassPrefix() . $this->convertToClassName($controllerName) . 'Controller';
+ $className = $this->getCapitalizedClassPrefix() . self::convertToClassName($controllerName) . 'Controller';
// ... and set it
$this->setClassName($className);
// ... and set it
$this->setClassName($className);
} // END - if
// Create class name
} // END - if
// Create class name
- $className = $this->getCapitalizedClassPrefix() . $this->convertToClassName($controllerName) . 'Controller';
+ $className = $this->getCapitalizedClassPrefix() . self::convertToClassName($controllerName) . 'Controller';
// Now, let us create the full name of the controller class
$this->setClassName($className);
// Now, let us create the full name of the controller class
$this->setClassName($className);
*/
private function getVariableIndex ($variableName, $variableGroup = NULL) {
// Replace all dashes to underscores to match variables with configuration entries
*/
private function getVariableIndex ($variableName, $variableGroup = NULL) {
// Replace all dashes to underscores to match variables with configuration entries
- $variableName = trim($this->convertDashesToUnderscores($variableName));
+ $variableName = trim(self::convertDashesToUnderscores($variableName));
// First everything is not found
$found = FALSE;
// First everything is not found
$found = FALSE;
*/
protected function readVariable ($variableName, $variableGroup = NULL) {
// Replace all dashes to underscores to match variables with configuration entries
*/
protected function readVariable ($variableName, $variableGroup = NULL) {
// Replace all dashes to underscores to match variables with configuration entries
- $variableName = trim($this->convertDashesToUnderscores($variableName));
+ $variableName = trim(self::convertDashesToUnderscores($variableName));
// First everything is not found
$content = NULL;
// First everything is not found
$content = NULL;
*/
public function addGroupVariable ($variableName, $value) {
// Replace all dashes to underscores to match variables with configuration entries
*/
public function addGroupVariable ($variableName, $value) {
// Replace all dashes to underscores to match variables with configuration entries
- $variableName = trim($this->convertDashesToUnderscores($variableName));
+ $variableName = trim(self::convertDashesToUnderscores($variableName));
// Debug message
//* DEBUG: */ self::createDebugInstance(__CLASS__)->debugOutput(__METHOD__.': group=' . $this->currGroup . ', variableName=' . $variableName . ', value=' . $value);
// Debug message
//* DEBUG: */ self::createDebugInstance(__CLASS__)->debugOutput(__METHOD__.': group=' . $this->currGroup . ', variableName=' . $variableName . ', value=' . $value);
*/
private function modifyVariable ($variableName, $value) {
// Replace all dashes to underscores to match variables with configuration entries
*/
private function modifyVariable ($variableName, $value) {
// Replace all dashes to underscores to match variables with configuration entries
- $variableName = trim($this->convertDashesToUnderscores($variableName));
+ $variableName = trim(self::convertDashesToUnderscores($variableName));
// Get index for variable
$index = $this->getVariableIndex($variableName);
// Get index for variable
$index = $this->getVariableIndex($variableName);
*/
protected function setVariable ($variableGroup, $variableName, $value) {
// Replace all dashes to underscores to match variables with configuration entries
*/
protected function setVariable ($variableGroup, $variableName, $value) {
// Replace all dashes to underscores to match variables with configuration entries
- $variableName = trim($this->convertDashesToUnderscores($variableName));
+ $variableName = trim(self::convertDashesToUnderscores($variableName));
// Get index for variable
$index = $this->getVariableIndex($variableName);
// Get index for variable
$index = $this->getVariableIndex($variableName);
*/
private function generateVariableArray ($variableName, $value) {
// Replace all dashes to underscores to match variables with configuration entries
*/
private function generateVariableArray ($variableName, $value) {
// Replace all dashes to underscores to match variables with configuration entries
- $variableName = trim($this->convertDashesToUnderscores($variableName));
+ $variableName = trim(self::convertDashesToUnderscores($variableName));
// Generate the temporary array
$varData = array(
// Generate the temporary array
$varData = array(
*/
private function assignTemplateVariable ($variableName, $var) {
// Replace all dashes to underscores to match variables with configuration entries
*/
private function assignTemplateVariable ($variableName, $var) {
// Replace all dashes to underscores to match variables with configuration entries
- $variableName = trim($this->convertDashesToUnderscores($variableName));
+ $variableName = trim(self::convertDashesToUnderscores($variableName));
// Debug message
//* DEBUG: */ self::createDebugInstance(__CLASS__)->debugOutput('BASE-TEMPLATE[' . __METHOD__ . ':' . __LINE__ . ']: variableName=' . $variableName . ',variableName=' . $variableName);
// Debug message
//* DEBUG: */ self::createDebugInstance(__CLASS__)->debugOutput('BASE-TEMPLATE[' . __METHOD__ . ':' . __LINE__ . ']: variableName=' . $variableName . ',variableName=' . $variableName);
// Search for all variables
foreach ($varMatches[1] as $key => $var) {
// Replace all dashes to underscores to match variables with configuration entries
// Search for all variables
foreach ($varMatches[1] as $key => $var) {
// Replace all dashes to underscores to match variables with configuration entries
- $var = trim($this->convertDashesToUnderscores($var));
+ $var = trim(self::convertDashesToUnderscores($var));
// Debug message
self::createDebugInstance(__CLASS__)->debugOutput('BASE-TEMPLATE[' . __METHOD__ . ':' . __LINE__ . ']:key=' . $key . ',var=' . $var);
// Debug message
self::createDebugInstance(__CLASS__)->debugOutput('BASE-TEMPLATE[' . __METHOD__ . ':' . __LINE__ . ']:key=' . $key . ',var=' . $var);
*/
public final function assignVariable ($variableName, $value) {
// Replace all dashes to underscores to match variables with configuration entries
*/
public final function assignVariable ($variableName, $value) {
// Replace all dashes to underscores to match variables with configuration entries
- $variableName = trim($this->convertDashesToUnderscores($variableName));
+ $variableName = trim(self::convertDashesToUnderscores($variableName));
// Empty variable found?
if (empty($variableName)) {
// Empty variable found?
if (empty($variableName)) {
*/
public function assignConfigVariable ($variableName) {
// Replace all dashes to underscores to match variables with configuration entries
*/
public function assignConfigVariable ($variableName) {
// Replace all dashes to underscores to match variables with configuration entries
- $variableName = trim($this->convertDashesToUnderscores($variableName));
+ $variableName = trim(self::convertDashesToUnderscores($variableName));
// Sweet and simple...
//* DEBUG: */ self::createDebugInstance(__CLASS__)->debugOutput('BASE-TEMPLATE[' . __METHOD__ . ':' . __LINE__ . ']: variableName=' . $variableName . ',getConfigEntry()=' . $this->getConfigInstance()->getConfigEntry($variableName));
// Sweet and simple...
//* DEBUG: */ self::createDebugInstance(__CLASS__)->debugOutput('BASE-TEMPLATE[' . __METHOD__ . ':' . __LINE__ . ']: variableName=' . $variableName . ',getConfigEntry()=' . $this->getConfigInstance()->getConfigEntry($variableName));
// Is this view helper loaded?
if (!isset($this->helpers[$helperName])) {
// Create a class name
// Is this view helper loaded?
if (!isset($this->helpers[$helperName])) {
// Create a class name
- $className = $this->convertToClassName($helperName) . 'ViewHelper';
+ $className = self::convertToClassName($helperName) . 'ViewHelper';
// Generate new instance
$this->helpers[$helperName] = ObjectFactory::createObjectByName($className);
// Generate new instance
$this->helpers[$helperName] = ObjectFactory::createObjectByName($className);
//* DEBUG: */ echo "START: >".$element."<<br />\n";
if (in_array($element, $this->mainNodes)) {
// Okay, main node found!
//* DEBUG: */ echo "START: >".$element."<<br />\n";
if (in_array($element, $this->mainNodes)) {
// Okay, main node found!
- $methodName = 'setImage' . $this->convertToClassName($element);
+ $methodName = 'setImage' . self::convertToClassName($element);
} elseif (in_array($element, $this->subNodes)) {
// Sub node found
} elseif (in_array($element, $this->subNodes)) {
// Sub node found
- $methodName = 'setImageProperty' . $this->convertToClassName($element);
+ $methodName = 'setImageProperty' . self::convertToClassName($element);
} elseif ($element != 'image') {
// Invalid node name found
throw new InvalidXmlNodeException(array($this, $element, $attributes), XmlParser::EXCEPTION_XML_NODE_UNKNOWN);
} elseif ($element != 'image') {
// Invalid node name found
throw new InvalidXmlNodeException(array($this, $element, $attributes), XmlParser::EXCEPTION_XML_NODE_UNKNOWN);
}
// Construct method name
}
// Construct method name
- $methodName = 'finish' . $this->convertToClassName($nodeName);
+ $methodName = 'finish' . self::convertToClassName($nodeName);
// Call the corresponding method
call_user_func_array(array($this->getImageInstance(), $methodName), array());
// Call the corresponding method
call_user_func_array(array($this->getImageInstance(), $methodName), array());
$imageType = $this->compileRawCode($imageType);
// Now make a class name of it
$imageType = $this->compileRawCode($imageType);
// Now make a class name of it
- $className = $this->convertToClassName($imageType.'_image');
+ $className = self::convertToClassName($imageType.'_image');
// And try to initiate it
$this->setImageInstance(ObjectFactory::createObjectByName($className, array($this)));
// And try to initiate it
$this->setImageInstance(ObjectFactory::createObjectByName($className, array($this)));
//* DEBUG: */ echo "START: >".$element."<<br />\n";
if (in_array($element, $this->getMainNodes())) {
// Okay, main node found!
//* DEBUG: */ echo "START: >".$element."<<br />\n";
if (in_array($element, $this->getMainNodes())) {
// Okay, main node found!
- $methodName = 'setEmail' . $this->convertToClassName($element);
+ $methodName = 'setEmail' . self::convertToClassName($element);
} elseif (in_array($element, $this->getSubNodes())) {
// Sub node found
} elseif (in_array($element, $this->getSubNodes())) {
// Sub node found
- $methodName = 'setEmailProperty' . $this->convertToClassName($element);
+ $methodName = 'setEmailProperty' . self::convertToClassName($element);
} elseif ($element != 'text-mail') {
// Invalid node name found
throw new InvalidXmlNodeException(array($this, $element, $attributes), XmlParser::EXCEPTION_XML_NODE_UNKNOWN);
} elseif ($element != 'text-mail') {
// Invalid node name found
throw new InvalidXmlNodeException(array($this, $element, $attributes), XmlParser::EXCEPTION_XML_NODE_UNKNOWN);
}
// Construct method name
}
// Construct method name
- $methodName = 'finish' . $this->convertToClassName($nodeName);
+ $methodName = 'finish' . self::convertToClassName($nodeName);
// Call the corresponding method
call_user_func_array(array($this, $methodName), array());
// Call the corresponding method
call_user_func_array(array($this, $methodName), array());
//* DEBUG: */ echo "START: >".$element."<<br />\n";
if (in_array($element, $this->getMainNodes())) {
// Okay, main node found!
//* DEBUG: */ echo "START: >".$element."<<br />\n";
if (in_array($element, $this->getMainNodes())) {
// Okay, main node found!
- $methodName = 'start' . $this->convertToClassName($element);
+ $methodName = 'start' . self::convertToClassName($element);
// Set it
$this->setCurrMainNode($element);
} elseif (in_array($element, $this->getSubNodes())) {
// Sub node found
// Set it
$this->setCurrMainNode($element);
} elseif (in_array($element, $this->getSubNodes())) {
// Sub node found
- $methodName = 'start' . $this->convertToClassName($element);
+ $methodName = 'start' . self::convertToClassName($element);
} elseif ($element != 'menu') {
// Invalid node name found
throw new InvalidXmlNodeException(array($this, $element, $attributes), XmlParser::EXCEPTION_XML_NODE_UNKNOWN);
} elseif ($element != 'menu') {
// Invalid node name found
throw new InvalidXmlNodeException(array($this, $element, $attributes), XmlParser::EXCEPTION_XML_NODE_UNKNOWN);
} // END - if
// Construct method name
} // END - if
// Construct method name
- $methodName = 'finish' . $this->convertToClassName($nodeName);
+ $methodName = 'finish' . self::convertToClassName($nodeName);
// Call the corresponding method
//* DEBUG: */ echo "call: ".$methodName."<br />\n";
// Call the corresponding method
//* DEBUG: */ echo "call: ".$methodName."<br />\n";
*/
public function getConfigEntry ($configKey) {
// Convert dashes to underscore
*/
public function getConfigEntry ($configKey) {
// Convert dashes to underscore
- $configKey = $this->convertDashesToUnderscores($configKey);
+ $configKey = self::convertDashesToUnderscores($configKey);
// Is a valid configuration key provided?
if (empty($configKey)) {
// Is a valid configuration key provided?
if (empty($configKey)) {
*/
public final function setConfigEntry ($configKey, $configValue) {
// Cast to string
*/
public final function setConfigEntry ($configKey, $configValue) {
// Cast to string
- $configKey = $this->convertDashesToUnderscores($configKey);
+ $configKey = self::convertDashesToUnderscores($configKey);
// Is a valid configuration key key provided?
if ((empty($configKey)) || (!is_string($configKey))) {
// Is a valid configuration key key provided?
if ((empty($configKey)) || (!is_string($configKey))) {
*/
public final function unsetConfigEntry ($configKey) {
// Convert dashes to underscore
*/
public final function unsetConfigEntry ($configKey) {
// Convert dashes to underscore
- $configKey = $this->convertDashesToUnderscores($configKey);
+ $configKey = self::convertDashesToUnderscores($configKey);
// Is the configuration key there?
if (!$this->isConfigurationEntrySet($configKey)) {
// Is the configuration key there?
if (!$this->isConfigurationEntrySet($configKey)) {