You are here

public function BotchaRecipebook::getForms in BOTCHA Spam Prevention 7.3

Same name and namespace in other branches
  1. 6.3 controller/recipebook/botcha.recipebook.controller.inc \BotchaRecipebook::getForms()

@todo BotchaRecipebook getForms Description.

Return value

BotchaForm

File

controller/recipebook/botcha.recipebook.controller.inc, line 194
Controller layer of the BotchaRecipebook objects.

Class

BotchaRecipebook

Code

public function getForms() {
  if (!isset($this->forms)) {
    $fs = BotchaModel::getRecipebooksForms(array(
      'mode' => 'form',
      'recipebooks' => $this->id,
    ));
    foreach ($fs as $form_id) {
      $this
        ->setForm($form_id);
    }
  }
  return (array) $this->forms;
}