Exemplo n.º 1
0
 function Recipe() {
     parent::__construct();
     $this->instructions->tag->tagtype = 'span';
     $this->ingredients->tag->tagtype = 'span';
     $this->setinstructionsAttributes('instructions');
     $this->setingredientsAttributes('ingredients');
 }
Exemplo n.º 2
0
 public function __construct()
 {
     parent::__construct();
     $keys = ['cookTime', 'cookingMethod', 'prepTime', 'recipeInstructions', 'recipeYield', 'totalTime', 'recipeCategories', 'recipeCuisines', 'recipeIngredients'];
     foreach ($keys as $key) {
         $this->properties[$key] = null;
     }
 }