static function isRequiredPhone(&$DataProvider, $Key, $NoneKey = 'CheckLib_RequiredPhone_None', $TooLongKey = 'CheckLib_RequiredPhone_TooLong', $FormatKey = 'CheckLib_RequiredPhone_Format') { $ReturnValue = true; $Value = $DataProvider->get($Key); if (strlen($Value) > 0) { $ReturnValue = CheckLib::isOptionalPhone($DataProvider, $Key, $TooLongKey, $FormatKey); } else { $ReturnValue = false; $DataProvider->setError($Key, $NoneKey); } return $ReturnValue; }