public function LinkValidationApiTest::name_Link_Type in Link 7
Name Link Type.
Translates the LINK type constants to english for display and debugging of tests.
@todo What is this for? Can it be removed?
@codingStandardsIgnoreStart
File
- tests/
LinkValidationApiTest.test, line 44 - Validate the link_validate_url() validation API.
Class
- LinkValidationApiTest
- Validate the link_validate_url() validation API.
Code
public function name_Link_Type($type) {
// @codingStandardsIgnoreEnd
switch ($type) {
case LINK_FRONT:
return "Front";
case LINK_EMAIL:
return "Email";
case LINK_TEL:
return "Telephone";
case LINK_NEWS:
return "Newsgroup";
case LINK_INTERNAL:
return "Internal Link";
case LINK_EXTERNAL:
return "External Link";
case FALSE:
return "Invalid Link";
default:
return "Bad Value:" . $type;
}
}