You are here

function cmfcClassesCoreStandAlone::getMessageValue in Calendar Systems 8.2

Same name and namespace in other branches
  1. 8 calendar/lib/classesCore.class.inc.php \cmfcClassesCoreStandAlone::getMessageValue()
  2. 6.3 calendar/lib/classesCore.class.inc.php \cmfcClassesCoreStandAlone::getMessageValue()
  3. 6 calendar/lib/classesCore.class.inc.php \cmfcClassesCoreStandAlone::getMessageValue()
  4. 7.3 calendar/lib/classesCore.class.inc.php \cmfcClassesCoreStandAlone::getMessageValue()
  5. 7 calendar/lib/classesCore.class.inc.php \cmfcClassesCoreStandAlone::getMessageValue()
  6. 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;
}