getResultDataCollection() as $step) { $loopResultRow = new LoopResultRow($step); $loopResultRow ->set("RECIPE_ID", $step->getId()) ->set("STEP", $step->getContentId()) ->set("DESCRIPTION", $step->getTitle()) ; $loopResult->addRow($loopResultRow); } return $loopResult; } /** * @inheritdoc */ protected function getArgDefinitions() { return new ArgumentCollection( Argument::createIntListTypeArgument('recipe_id') ); } /** * @inheritdoc */ public function buildModelCriteria() { $steps = RecipeStepsQuery::create(); if (null != $id = $this->getRecipeId()) { $steps->filterById($id); } return $steps; } }