Exemplo n.º 1
0
 /**
  * @param string $sKey
  * @param string $sValue
  *
  * @return string
  */
 protected function specConver($sKey, $sValue)
 {
     $mResult = $sValue;
     $sEnumName = $this->xmlPathToEnumName($sKey);
     if (null !== $sEnumName) {
         $mResult = EnumConvert::FromXml($sValue, $sEnumName);
     }
     return $this->specValidate($sKey, $mResult);
 }
Exemplo n.º 2
0
 /**
  * @param string $sValue
  * @param string $sEnumName
  *
  * @return string
  */
 protected function specConver($sValue, $sEnumName)
 {
     if (null !== $sEnumName) {
         $mResult = EnumConvert::FromXml($sValue, $sEnumName);
     }
     return $this->specValidate($mResult, $sEnumName);
 }