add method RecipeModel::getSteps()

This commit is contained in:
Thomas Rubini 2023-01-26 17:34:54 +01:00
parent 7006ee6896
commit b664a38a66
No known key found for this signature in database
GPG Key ID: C7D287C8C1CAC373

View File

@ -147,6 +147,10 @@ final class RecipeModel
return $this->A_APPRS;
}
public function getSteps(){
return explode("\n\n", str_replace("\r", "", $this->S_RECIPE));
}
//TODO: return array object
public static function searchRecipesByName($S_query)
{