You are here

function BotchaRecipeObscureUrl::getFieldName in BOTCHA Spam Prevention 7.2

Same name and namespace in other branches
  1. 6.2 controller/botcha_recipe.controller.inc \BotchaRecipeObscureUrl::getFieldName()
  2. 6.3 controller/recipe/botcha.recipe.controller.inc \BotchaRecipeObscureUrl::getFieldName()
  3. 7.3 controller/recipe/botcha.recipe.controller.inc \BotchaRecipeObscureUrl::getFieldName()

Overrides BotchaRecipe::getFieldName

File

controller/botcha_recipe.controller.inc, line 756
Controller layer of the BotchaRecipe objects.

Class

BotchaRecipeObscureUrl

Code

function getFieldName($delta) {
  switch ($delta) {
    case 2:
      return substr($this
        ->getProperty($this->seed, 'getSeed'), 1, 4) . '_name';
      break;
    case 1:
      return parent::getFieldName($delta);
      break;
    case 0:
    default:

      // @todo BotchaRecipeObscureUrl getFieldName Remove hardcode.
      return 'botcha';
      break;
  }
}