function cmfcClassesCoreStandAlone::getMessageValue in Calendar Systems 8.2
Same name and namespace in other branches
- 8 calendar/lib/classesCore.class.inc.php \cmfcClassesCoreStandAlone::getMessageValue()
- 6.3 calendar/lib/classesCore.class.inc.php \cmfcClassesCoreStandAlone::getMessageValue()
- 6 calendar/lib/classesCore.class.inc.php \cmfcClassesCoreStandAlone::getMessageValue()
- 7.3 calendar/lib/classesCore.class.inc.php \cmfcClassesCoreStandAlone::getMessageValue()
- 7 calendar/lib/classesCore.class.inc.php \cmfcClassesCoreStandAlone::getMessageValue()
- 7.2 calendar/lib/classesCore.class.inc.php \cmfcClassesCoreStandAlone::getMessageValue()
File
- calendar/
lib/ classesCore.class.inc.php, line 211
Class
- cmfcClassesCoreStandAlone
- all cmf classes inherit from this class
Code
function getMessageValue($msgCode, $parameters = null) {
if (isset($this->_messagesValue[$msgCode])) {
$message = $this->_messagesValue[$msgCode];
}
else {
$message = $this->_messagesValue[$this->_defaultError];
}
if (is_array($parameters)) {
$message = sprintf($message, $parameters);
}
return $message;
}