![]() |
- Developper API
2.0.5
|
The Recipe class is a kind of DataStructure with a video attribute. Those objects are usually embedded inside Wine object. More...
Public Member Functions | |
__construct ($name, $type, $url, $video="") | |
Recipe constructor. | |
hasVideo () | |
Returns whether or not the Recipe has a video. | |
getVideo () | |
Returns the recipe's video as String (HTML content) or false if empty. | |
Static Public Member Functions | |
static | getRecipeFromSXMLElement ($node) |
Build a Recipe object from a SimpleXMLElement node. It may return false if the node doesn t contain a recipe. | |
static | isSXMLNodeProperty ($node) |
Check whether a node is acceptable to get a Recipe from. |
The Recipe class is a kind of DataStructure with a video attribute. Those objects are usually embedded inside Wine object.
__construct | ( | $ | name, |
$ | type, | ||
$ | url, | ||
$ | video = "" |
||
) |
Recipe constructor.
String | name |
String | type |
String | url |
String | video |
Definition at line 32 of file Recipe.php.
static getRecipeFromSXMLElement | ( | $ | node | ) | [static, final] |
Build a Recipe object from a SimpleXMLElement node. It may return false if the node doesn t contain a recipe.
SimpleXmlElement | node |
Definition at line 61 of file Recipe.php.
getVideo | ( | ) | [final] |
Returns the recipe's video as String (HTML content) or false if empty.
Definition at line 51 of file Recipe.php.
hasVideo | ( | ) | [final] |
Returns whether or not the Recipe has a video.
Definition at line 42 of file Recipe.php.
static isSXMLNodeProperty | ( | $ | node | ) | [static, final] |
Check whether a node is acceptable to get a Recipe from.
SimpleXmlElement | node |
Definition at line 103 of file Recipe.php.