You are here

protected function BotchaRecipebookAbstract::getJss in BOTCHA Spam Prevention 7.2

Same name and namespace in other branches
  1. 6.2 controller/botcha_recipebook.controller.inc \BotchaRecipebookAbstract::getJss()
1 call to BotchaRecipebookAbstract::getJss()
BotchaRecipebookAbstract::apply in controller/botcha_recipebook.controller.inc

File

controller/botcha_recipebook.controller.inc, line 362
Controller layer of the BotchaRecipebook objects.

Class

BotchaRecipebookAbstract
@file Controller layer of the BotchaRecipebook objects.

Code

protected function getJss() {
  $jss = array();
  foreach ($this
    ->getRecipes() as $recipe) {
    if ($recipe instanceof BotchaRecipeUsingJsAbstract) {
      $jss[] = $recipe
        ->getJsValue();
    }
  }
  return $jss;
}