You are here

protected function BotchaRecipeObscureUrl::getFieldName in BOTCHA Spam Prevention 7.3

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.2 controller/botcha_recipe.controller.inc \BotchaRecipeObscureUrl::getFieldName()

Overrides BotchaRecipe::getFieldName

File

controller/recipe/botcha.recipe.controller.inc, line 829
Controller layer of the BotchaRecipe objects.

Class

BotchaRecipeObscureUrl

Code

protected 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 Remove hardcode.
      // @see?
      return 'botcha';
      break;
  }
}